:fix: 客商审核通过后推送金蝶失败原因以警告提示展示
This commit is contained in:
@@ -5178,17 +5178,20 @@ export default {
|
|||||||
this.$message.error('获取审核跳转地址失败');
|
this.$message.error('获取审核跳转地址失败');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleApprove(row) {
|
async handleApprove(row) {
|
||||||
this.$confirm('是否确认审核通过?', '提示', {
|
await this.$confirm('是否确认审核通过?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
})
|
});
|
||||||
.then(() => approve(row.id))
|
const res = await approve(row.id);
|
||||||
.then(() => {
|
// data=false 表示审核已通过但推送金蝶失败,msg 带具体原因
|
||||||
this.onLoad(this.page);
|
if (res.data.data === false) {
|
||||||
this.$message({ type: 'success', message: '审核通过!' });
|
this.$message.warning(res.data.msg);
|
||||||
});
|
} else {
|
||||||
|
this.$message.success(res.data.msg || '审核通过!');
|
||||||
|
}
|
||||||
|
this.onLoad(this.page);
|
||||||
},
|
},
|
||||||
async handleSyncKingdee(row) {
|
async handleSyncKingdee(row) {
|
||||||
if (this.kingdeeSyncingId) return;
|
if (this.kingdeeSyncingId) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user