Commit f052bbe7 by qiaoyanqi

90 92 状态的单据只读

parent 0c23ee37
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
loadFinishFun(bill) { loadFinishFun(bill) {
console.log('billState', bill.getMasterData().getValue('billState')) console.log('billState', bill.getMasterData().getValue('billState'))
const workflowState = bill.getMasterData().getValue('billState') const workflowState = bill.getMasterData().getValue('billState')
if ([92].includes(workflowState)) { if ([90,92].includes(workflowState)) {
this.state = 'readOnly' this.state = 'readOnly'
} }
let that = this; let that = this;
......
...@@ -94,7 +94,11 @@ export default { ...@@ -94,7 +94,11 @@ export default {
} }
}, },
loadFinishFun(bill) { loadFinishFun(bill) {
this.curBill = bill this.curBill = bill;
const billState = bill.getMasterData().getValue('billState')
if ([90,92].includes(billState)) {
this.state = 'readOnly'
}
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