Commit 280eb4b3 by 袁成

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

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