Commit 1cd74a5f by 袁成

fix: 根据工作流状态设置单据是否只读

parent 95340a40
...@@ -47,6 +47,14 @@ export default { ...@@ -47,6 +47,14 @@ export default {
this.templateName = newVal; this.templateName = newVal;
}, },
}, },
state: {
handler() {
this.init = false
this.$nextTick(() => {
this.init = true
})
}
}
}, },
methods: { methods: {
changeData(billId) { changeData(billId) {
...@@ -57,6 +65,11 @@ export default { ...@@ -57,6 +65,11 @@ export default {
}); });
}, },
loadFinishFun(bill) { loadFinishFun(bill) {
console.log('billState', bill.getMasterData().getValue('billState'))
const workflowState = bill.getMasterData().getValue('billState')
if ([90,91,92].includes(workflowState)) {
this.state = 'readOnly'
}
let that = this; let that = this;
setTimeout(() => { setTimeout(() => {
that.billClass = bill; that.billClass = bill;
......
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