Commit d81b7798 by 袁成

fix:单据待审批可编辑配置

parent 280eb4b3
......@@ -70,7 +70,7 @@ export default {
loadFinishFun(bill) {
console.log('billState', bill.getMasterData().getValue('billState'))
const workflowState = bill.getMasterData().getValue('billState')
if ([90,92].includes(workflowState)) {
if ([92].includes(workflowState)) {
this.state = 'readOnly'
}
let that = this;
......
......@@ -974,6 +974,12 @@ export default {
"type": "field",
"title": "字段taskId",
"key": "taskId"
},
{
"isRequired": true,
"type": "Boolean",
"title": "可编辑",
"key": "canEdit"
}
]
},
......@@ -1563,7 +1569,7 @@ export default {
"description": "",
"title": "财务_保存[CW_saveAction]",
"value": "CW_saveAction",
"btnDisable": "billReadOnly;90;92"
"btnDisable": "billReadOnly;92"
},
{
"discard": false,
......
......@@ -6,6 +6,7 @@ export default {
context.dom.$Message.info("请配置跳转页面的参数");
return;
}
const billState = param.canEdit? '': 'readOnly'
GMS.queryObject = {//上张下张用
currentDataQueryConditionSet: context.currentDataQueryConditionSet,
index: context.selects[0]._index||(context.selects[0]._serialIndex)*1-1,
......@@ -26,7 +27,7 @@ export default {
{
templateName: templateName,
id: billId,
state:'readOnly'
state: billState
},
{
openWay: "FUNCTAB",
......@@ -37,7 +38,7 @@ export default {
GMS.$hideContainer.addComponent(typesBill, {}, function(c) {
c.templateName = templateName;
c.billId = billId;
c.state = "readOnly";
c.state = billState;
c.init = true;
c.modal_visible = true;
});
......
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