update 标准法规入库/变更流程

This commit is contained in:
赵霄
2023-11-13 11:47:45 +08:00
parent d4fee73872
commit 9316566c91
4 changed files with 17 additions and 12 deletions
@@ -502,7 +502,11 @@ export default {
// 处理业务基本信息部分的数据
const formList = Object.values(this.formList).reduce((acc, cur) => acc.concat(cur), [])
this.formInline = Object.assign({ ...this.formInline }, { ...businessData })
this.formInline.standard_number_temp = this.formInline.standard_number
const nodeId = this.$route.query.nodeId
// 如果是审批节点或者是入库流程的变更节点,处理回显的标准号
if (nodeId === FGEntryChangeProcessNode.approve.value || (nodeId === FGEntryChangeProcessNode.initiate.value && this.formInline.operateType === OperationType.CHANGE.value)) {
this.formInline.standard_number_temp = this.formInline.standard_number
}
const treeMultipleField = formList.filter(tt => tt.fieldShowType === FieldType.TREE.value)
treeMultipleField.forEach(field => {
const valueArr = []
@@ -524,13 +528,13 @@ export default {
})
})
// 获取按钮清单
const btnList = FGEntryChangeProcessNode.propertyOfValue('btn', this.$route.query.taskName)
const btnList = FGEntryChangeProcessNode.propertyOfValue('btn', this.$route.query.nodeId)
if (btnList && btnList.length > 0) {
this.btnList = btnList
} else {
this.btnList = FGEntryChangeProcessNode.approve.btn
}
this.disabled = FGEntryChangeProcessNode.propertyOfValue('disabled', this.$route.query.taskName) || false
this.disabled = FGEntryChangeProcessNode.propertyOfValue('disabled', this.$route.query.nodeId) || false
} else {
this.$message.warning(res.message)
this.loading = false