From b077ba5be450374f0cbf279d6c0af14dc42f8cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B3=89=E4=BD=B3?= <1107186916@qq.com> Date: Sun, 11 Oct 2026 14:35:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=A1=E6=89=B9=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=94=B9=E7=94=A8=E5=90=8E=E7=AB=AF=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=96=87=E6=A1=88=EF=BC=8C=E9=87=91=E8=9D=B6=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=90=8C=E6=AD=A5=E5=A4=B1=E8=B4=A5=E5=BC=B9=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/payment/invoice-application.vue | 9 +++++++-- src/views/payment/invoice-receipt.vue | 9 +++++++-- src/views/payment/payment-application.vue | 9 +++++++-- src/views/settlement/formal-settlement.vue | 9 +++++++-- 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/src/views/payment/invoice-application.vue b/src/views/payment/invoice-application.vue index 186f7c8..3e16563 100644 --- a/src/views/payment/invoice-application.vue +++ b/src/views/payment/invoice-application.vue @@ -377,8 +377,13 @@ export default { }, async handleApprove(row) { await this.$confirm('确认审批通过该开票申请?', '提示', { type: 'warning' }); - await api.approve({ id: row.id }); - this.$message.success('审批通过'); + const res = await api.approve({ id: row.id }); + // data=false 表示审批已通过但自动同步金蝶失败,msg 带具体原因 + if (res.data.data === false) { + this.$message.warning(res.data.msg); + } else { + this.$message.success(res.data.msg || '审批通过'); + } this.loadTable(); }, async handleReturn(row) { diff --git a/src/views/payment/invoice-receipt.vue b/src/views/payment/invoice-receipt.vue index d84cb58..4f75bb0 100644 --- a/src/views/payment/invoice-receipt.vue +++ b/src/views/payment/invoice-receipt.vue @@ -342,8 +342,13 @@ export default { }, async handleApprove(row) { await this.$confirm('确认审批通过该收票登记?', '提示', { type: 'warning' }); - await api.approve({ id: row.id }); - this.$message.success('审批通过'); + const res = await api.approve({ id: row.id }); + // data=false 表示审批已通过但自动同步金蝶失败,msg 带具体原因 + if (res.data.data === false) { + this.$message.warning(res.data.msg); + } else { + this.$message.success(res.data.msg || '审批通过'); + } this.loadTable(); }, async handleReturn(row) { diff --git a/src/views/payment/payment-application.vue b/src/views/payment/payment-application.vue index 94b65ad..d592238 100644 --- a/src/views/payment/payment-application.vue +++ b/src/views/payment/payment-application.vue @@ -387,8 +387,13 @@ export default { this.loadTable(); }, async handleApprove(row) { - await api.approve({ id: row.id }); - this.$message.success('审批通过'); + const res = await api.approve({ id: row.id }); + // data=false 表示审批已通过但自动同步金蝶失败,msg 带具体原因 + if (res.data.data === false) { + this.$message.warning(res.data.msg); + } else { + this.$message.success(res.data.msg || '审批通过'); + } this.loadTable(); }, handleMkAudit(row) { diff --git a/src/views/settlement/formal-settlement.vue b/src/views/settlement/formal-settlement.vue index 6177649..3330254 100644 --- a/src/views/settlement/formal-settlement.vue +++ b/src/views/settlement/formal-settlement.vue @@ -387,8 +387,13 @@ export default { '提示', { type: 'warning' } ); - await api.approve({ id: row.id }); - this.$message.success('审批通过'); + const res = await api.approve({ id: row.id }); + // data=false 表示审批已通过但自动同步金蝶失败,msg 带具体原因 + if (res.data.data === false) { + this.$message.warning(res.data.msg); + } else { + this.$message.success(res.data.msg || '审批通过'); + } this.loadTable(); }, async handleReturn(row) {