Commit d81b7798 by 袁成

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

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