Commit 89f2b293 by Joey

feat(@gms/gms-plugin-billexpand): 路由模式下新建单据报错时关闭单据

parent 22e70ecb
......@@ -79,8 +79,14 @@ export default {
this.init = true;
});
},
loadFinishFun(bill) {
console.log('billState', bill.getMasterData().getValue('billState'))
loadFinishFun(bill, err) {
if (err) {
this.$Message.error(err)
setTimeout(() => {
this.close()
}, 0);
return
}
const workflowState = bill.getMasterData().getValue('billState')
let readArr = this.templateName.endsWith('_A')?[92]:[90,92];//如果是审批界面话,90能编辑
if (this.state != 'readOnly' && readArr.includes(workflowState)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment