Commit e3dc1da8 by qiaoyanqi

如果是审批界面还是能编辑

parent 6c9b1e3f
......@@ -70,7 +70,8 @@ export default {
loadFinishFun(bill) {
console.log('billState', bill.getMasterData().getValue('billState'))
const workflowState = bill.getMasterData().getValue('billState')
if (this.state != 'readOnly' && [90,92].includes(workflowState)) {
let readArr = this.templateName.endsWith('_A')?[92]:[90,92];//如果是审批界面话,90能编辑
if (this.state != 'readOnly' && readArr.includes(workflowState)) {
this.state = 'readOnly';
this.init = false;
this.$nextTick(() => {
......
......@@ -95,7 +95,8 @@ export default {
loadFinishFun(bill) {
this.curBill = bill;
const billState = bill.getMasterData().getValue('billState')
if (this.state != 'readOnly' && [90,92].includes(billState)) {
let readArr = this.templateName.endsWith('_A')?[92]:[90,92];//如果是审批界面话,90能编辑
if (this.state != 'readOnly' && readArr.includes(billState)) {
this.state = 'readOnly' ;
this.init = false;
this.$nextTick(() => {
......
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