收票管理/开票管理/正式结算单/预结算单/结算调整通过按钮增加表格遮罩防重复点击 #7

Merged
b2894lxlx merged 7 commits from feature/20261019-bfi-all-web into master 2026-10-27 15:29:12 +08:00
Showing only changes of commit 89bbc43f12 - Show all commits
+11 -3
View File
@@ -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('请输入驳回原因', '审批驳回');