diff --git a/src/views/index/invoicingNotify.vue b/src/views/index/invoicingNotify.vue index f499799e..69c64710 100644 --- a/src/views/index/invoicingNotify.vue +++ b/src/views/index/invoicingNotify.vue @@ -170,8 +170,9 @@ export default { let res = await this.getJumpHandler(); if(res?.data?.jump) { Dialog.alert({ - message: '您有没有完成的培训,请在中道调度APP上完成培训,再进行发票上传', + message: '您有暂未完成的培训,请在中道调度APP上完成培训,再进行发票上传', confirmButtonText: '去培训', + confirmButtonColor: '#0E76F4', showCancelButton: false, }).then(async() => { this.goPage('newTrainingList', { supplierId : this.supplierId }) diff --git a/src/views/index/uploadInvoice.vue b/src/views/index/uploadInvoice.vue index b3813ec0..ad32391b 100644 --- a/src/views/index/uploadInvoice.vue +++ b/src/views/index/uploadInvoice.vue @@ -62,7 +62,7 @@
保存
- +
上传发票 @@ -83,6 +83,7 @@ data(){ return { list: [], + fileObj: '', invoiceMoneyTotal: 0, tableData: [], activeObj: {}, @@ -235,18 +236,12 @@ }); }, async beforeRead (file) { - /*let res = await this.getJumpHandler(); - if(res?.data?.jump) { - this.$message.warning("您有没有完成的培训,请在中道调度APP上完成培训,再进行发票上传") - return false - }*/ const FileExt = file.name.replace(/.+\./, ""); if (['jpg', 'png', 'jpeg', 'pdf', 'ofd'].indexOf(FileExt.toLowerCase()) === -1) { this.$toast('请上传后缀名为jpg、jpeg、png、pdf、ofd的文件!') - return false; + return false } this.$set(this.activeObj, 'fileType', FileExt) - return true }, async afterRead (file) { try {