Merge branch 'feature/payment-apply-bfi-autoSync' into feature/bfi-api-rate

This commit is contained in:
刘泉佳
2026-10-12 10:54:57 +08:00
4 changed files with 28 additions and 8 deletions
+7 -2
View File
@@ -385,8 +385,13 @@ export default {
}, },
async handleApprove(row) { async handleApprove(row) {
await this.$confirm('确认审批通过该开票申请?', '提示', { type: 'warning' }); await this.$confirm('确认审批通过该开票申请?', '提示', { type: 'warning' });
await api.approve({ id: row.id }); const res = await api.approve({ id: row.id });
this.$message.success('审批通过'); // data=false 表示审批已通过但自动同步金蝶失败,msg 带具体原因
if (res.data.data === false) {
this.$message.warning(res.data.msg);
} else {
this.$message.success(res.data.msg || '审批通过');
}
this.loadTable(); this.loadTable();
}, },
async handleReturn(row) { async handleReturn(row) {
+7 -2
View File
@@ -342,8 +342,13 @@ export default {
}, },
async handleApprove(row) { async handleApprove(row) {
await this.$confirm('确认审批通过该收票登记?', '提示', { type: 'warning' }); await this.$confirm('确认审批通过该收票登记?', '提示', { type: 'warning' });
await api.approve({ id: row.id }); const res = await api.approve({ id: row.id });
this.$message.success('审批通过'); // data=false 表示审批已通过但自动同步金蝶失败,msg 带具体原因
if (res.data.data === false) {
this.$message.warning(res.data.msg);
} else {
this.$message.success(res.data.msg || '审批通过');
}
this.loadTable(); this.loadTable();
}, },
async handleReturn(row) { async handleReturn(row) {
+7 -2
View File
@@ -395,8 +395,13 @@ export default {
this.loadTable(); this.loadTable();
}, },
async handleApprove(row) { async handleApprove(row) {
await api.approve({ id: row.id }); const res = await api.approve({ id: row.id });
this.$message.success('审批通过'); // data=false 表示审批已通过但自动同步金蝶失败,msg 带具体原因
if (res.data.data === false) {
this.$message.warning(res.data.msg);
} else {
this.$message.success(res.data.msg || '审批通过');
}
this.loadTable(); this.loadTable();
}, },
handleMkAudit(row) { handleMkAudit(row) {
+7 -2
View File
@@ -387,8 +387,13 @@ export default {
'提示', '提示',
{ type: 'warning' } { type: 'warning' }
); );
await api.approve({ id: row.id }); const res = await api.approve({ id: row.id });
this.$message.success('审批通过'); // data=false 表示审批已通过但自动同步金蝶失败,msg 带具体原因
if (res.data.data === false) {
this.$message.warning(res.data.msg);
} else {
this.$message.success(res.data.msg || '审批通过');
}
this.loadTable(); this.loadTable();
}, },
async handleReturn(row) { async handleReturn(row) {