fix: 付款管理审批通过改为表格遮罩防重复点击

This commit is contained in:
刘泉佳
2026-10-19 19:55:24 +08:00
parent ccaf944782
commit 555189177c
+5 -6
View File
@@ -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) {