Commit 685915ce by qiaoyanqi

代码提交

parent 42a9b5b8
......@@ -56,7 +56,6 @@ export default {
this.init = false;
this.$nextTick(() => {
this.init = true;
// this.type = 'load'
});
});
GMS.vbus.$on("workflow-state-change", (val) => {
......@@ -79,7 +78,7 @@ export default {
return
}
const tem = this.curBill && this.curBill.getBuillData() || {}
if (compareData(GMS.oldBillDataMap[this.curTagId], tem)) cb(true)
if (compareData(GMS.oldBillDataMap[this.curTagId], tem) || this.state == 'readOnly') cb(true)
else {
this.$Modal.confirm({
title: "信息提示",
......@@ -96,9 +95,13 @@ export default {
loadFinishFun(bill) {
this.curBill = bill;
const billState = bill.getMasterData().getValue('billState')
if ([90,92].includes(billState)) {
this.state = 'readOnly'
}
if (this.state != 'readOnly' && [90,92].includes(billState)) {
this.state = 'readOnly' ;
this.init = false;
this.$nextTick(() => {
this.init = true;
});
}
setTimeout(() => {
GMS.oldBillData = bill.getBuillData();
if (!GMS.oldBillDataMap) GMS.oldBillDataMap = {}
......
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