From 9b644568549832a715ab256ddbe1c60cb4e4343f Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Tue, 26 Aug 2025 16:33:57 +0800 Subject: [PATCH] =?UTF-8?q?story#7062,=E4=BE=9B=E5=BA=94=E5=95=86=E5=9F=B9?= =?UTF-8?q?=E8=AE=AD=E5=92=8C=E8=B4=A2=E5=8A=A1=E5=8F=91=E7=A5=A8=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=8C=E4=B8=8A=E4=BC=A0=E5=8F=91=E7=A5=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E6=9F=A5=E6=89=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/invoicingNotify.vue | 3 ++- src/views/index/uploadInvoice.vue | 11 +++-------- 2 files changed, 5 insertions(+), 9 deletions(-) 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 {