Commit 280eb4b3 by 袁成

fix: 缓存单据数据按钮禁用

parent 5ba2ce63
......@@ -66,15 +66,19 @@ export default {
}
}else{
if(msg[0]== 1 ){
GAMS.Common.messagePrompt(msg[1]);
GAMS.Common.messagePrompt(msg[1]);
this.bill.setControlsSate(param["_control_name_"], 'enable',true)
}else{
GMS.$hideContainer.$Modal.confirm({
title: '信息提示',
content: msg[1],
onOk: () => {
this.bill.setControlsSate(param["_control_name_"], 'enable',true)
GMS.vbus.$emit('cacheEcho', buidData);//正常情况回去给子表赋值
},
onCancel: () => {}
onCancel: () => {
this.bill.setControlsSate(param["_control_name_"], 'enable',true)
}
});
}
}
......@@ -82,7 +86,8 @@ export default {
}).catch(resp=>{
// bill.setControlsSate(param["_control_name_"], 'enable',true);
console.error("cacheSaveAction:接口调用失败 resp:"+ resp)
GAMS.Common.messagePrompt('单据保存失败..');
this.bill.setControlsSate(param["_control_name_"], 'enable',true)
GAMS.Common.messagePrompt('单据保存失败。');
})
}
}
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