From 450288106321e9f9a1c872487bd9794bae7ce704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B3=89=E4=BD=B3?= <1107186916@qq.com> Date: Wed, 28 Oct 2026 16:11:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=98=E6=AC=BE=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E9=80=9A=E8=BF=87=E5=89=8D=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/payment/payment-application.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/views/payment/payment-application.vue b/src/views/payment/payment-application.vue index 45b8fe6..ad7d57b 100644 --- a/src/views/payment/payment-application.vue +++ b/src/views/payment/payment-application.vue @@ -328,15 +328,17 @@ export default { this.refreshChange(); }, async handleApprove(row) { - // 防止重复点击:请求进行中忽略后续点击 + // 防止重复点击:请求进行中忽略后续点击,避免重复审批和重复提示 if (this.approveLoading) return; this.approveLoading = true; - const loading = this.$loading({ - lock: true, - text: '审批处理中,请稍候…', - background: 'rgba(255, 255, 255, 0.6)', - }); + let loading = null; try { + await this.$confirm('确认审批通过该付款申请?', '提示', { type: 'warning' }); + loading = this.$loading({ + lock: true, + text: '审批处理中,请稍候…', + background: 'rgba(255, 255, 255, 0.6)', + }); const res = await api.approve({ id: row.id }); // data=false 表示审批已通过但自动同步金蝶失败,msg 带具体原因 if (res.data.data === false) { @@ -346,7 +348,7 @@ export default { } this.refreshChange(); } finally { - loading.close(); + loading?.close(); this.approveLoading = false; } },