Commit 9ff2970e by 乔延琦

Merge branch 'develop-yuancheng' into 'develop'

Develop yuancheng

See merge request GFP/RBC/rbc-frontend!69
parents 15148a6f cee10672
...@@ -121,13 +121,13 @@ export default { ...@@ -121,13 +121,13 @@ export default {
ACTIONS[item].title.indexOf('[') ACTIONS[item].title.indexOf('[')
) )
btnConfg.billStateDisable = this.getBillStateDisable( btnConfg.billStateDisable = this.getBillStateDisable(
ACTIONS[item].btnDisable ACTIONS[item].btnDisable, item
) )
btnConfg.buttonDefine.name = this.define.config.action + item btnConfg.buttonDefine.name = this.define.config.action + item
return btnConfg return btnConfg
}) })
}, },
getBillStateDisable(val) { getBillStateDisable(val, btnItem) {
if (!val) return false if (!val) return false
let approveState = null let approveState = null
if (this.workflowState === 0) { if (this.workflowState === 0) {
...@@ -136,6 +136,10 @@ export default { ...@@ -136,6 +136,10 @@ export default {
approveState = this.workflowState approveState = this.workflowState
} }
let disableState = val.split(';') let disableState = val.split(';')
// 配置工作流已提交未审批90状态下可用
if (btnItem && btnItem.isApprove) {
disableState = disableState.filter(item => item !== '90')
}
const getBillState = () => { const getBillState = () => {
if (this.tmpBill.state === '') { if (this.tmpBill.state === '') {
return disableState.includes('billEdit') return disableState.includes('billEdit')
......
...@@ -1451,25 +1451,6 @@ export default { ...@@ -1451,25 +1451,6 @@ export default {
"title": "缓存单据数据[cacheSaveAction]", "title": "缓存单据数据[cacheSaveAction]",
"value": "cacheSaveAction", "value": "cacheSaveAction",
}, },
// {
// "discard": false,
// "path": "单据/保存报销单",
// "extends": {
// "param": [{
// "clearable": true,
// "ref": "gams2.bill",
// "type": "select",
// "title": "执行动作",
// "key": "actions",
// "innerRef": "actions"
// }
// ]
// },
// "description": "",
// "title": "保存(报销单)[saveActionBXD]",
// "value": "saveActionBXD",
// "btnDisable": "billReadOnly;90;91;92"
// },
{ {
"discard": false, "discard": false,
"path": "资产/通用", "path": "资产/通用",
...@@ -1604,13 +1585,17 @@ export default { ...@@ -1604,13 +1585,17 @@ export default {
"path": "资产/通用", "path": "资产/通用",
"extends": { "extends": {
"param": [ "param": [
{
"type": "Boolean",
"title": "审批可用",
"key": "isApprove"
}
] ]
}, },
"description": "", "description": "",
"title": "财务_保存[CW_saveAction]", "title": "财务_保存[CW_saveAction]",
"value": "CW_saveAction", "value": "CW_saveAction",
"btnDisable": "billReadOnly;92" "btnDisable": "billReadOnly;90;92"
}, },
{ {
"discard": false, "discard": false,
......
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