From 555189177c08596b2db0756c5b93e37c5c0bbead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B3=89=E4=BD=B3?= <1107186916@qq.com> Date: Mon, 19 Oct 2026 19:55:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=98=E6=AC=BE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E9=80=9A=E8=BF=87=E6=94=B9=E4=B8=BA=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E9=81=AE=E7=BD=A9=E9=98=B2=E9=87=8D=E5=A4=8D=E7=82=B9?= =?UTF-8?q?=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/payment/payment-application.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/payment/payment-application.vue b/src/views/payment/payment-application.vue index baf454c..f96925d 100644 --- a/src/views/payment/payment-application.vue +++ b/src/views/payment/payment-application.vue @@ -163,7 +163,6 @@ export default { rows: [], selection: [], loading: false, - approveLoading: false, syncLoading: false, resultSyncing: false, query: {}, @@ -328,9 +327,9 @@ export default { this.refreshChange(); }, async handleApprove(row) { - // 防止重复点击:请求进行中忽略后续点击 - if (this.approveLoading) return; - this.approveLoading = true; + // 防止重复点击:请求期间表格遮罩,后续点击直接忽略 + if (this.loading) return; + this.loading = true; try { const res = await api.approve({ id: row.id }); // data=false 表示审批已通过但自动同步金蝶失败,msg 带具体原因 @@ -339,9 +338,9 @@ export default { } else { this.$message.success(res.data.msg || '审批通过'); } - this.refreshChange(); + await this.onLoad(this.page); } finally { - this.approveLoading = false; + this.loading = false; } }, handleMkAudit(row) {