From 89bbc43f1201cb4758e821856fb400d3ba02db50 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 20:08:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B1=87=E7=A5=A8=E4=BB=98=E6=AC=BE?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E9=80=9A=E8=BF=87=E5=A2=9E=E5=8A=A0=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=E5=BC=B9=E7=AA=97=E4=B8=8E=E8=A1=A8=E6=A0=BC=E9=81=AE?= =?UTF-8?q?=E7=BD=A9=E9=98=B2=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/payment/bill-payment.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/views/payment/bill-payment.vue b/src/views/payment/bill-payment.vue index defddf9..962dab8 100644 --- a/src/views/payment/bill-payment.vue +++ b/src/views/payment/bill-payment.vue @@ -156,9 +156,17 @@ export default { }); }, async handleApprove(row) { - await api.approve({ id: row.id }); - this.$message.success('审批通过'); - this.loadTable(); + await this.$confirm('确认审批通过该汇票付款?', '提示', { type: 'warning' }); + // 防止重复点击:请求期间表格遮罩,后续点击直接忽略 + if (this.loading) return; + this.loading = true; + try { + await api.approve({ id: row.id }); + this.$message.success('审批通过'); + await this.loadTable(); + } finally { + this.loading = false; + } }, async handleReturn(row) { const { value } = await this.$prompt('请输入驳回原因', '审批驳回');