Commit 685915ce by qiaoyanqi

代码提交

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