update 征求意见流程

This commit is contained in:
赵霄
2023-11-20 09:33:17 +08:00
parent 00390ab502
commit bdb1f33b32
@@ -760,19 +760,21 @@ export default {
} }
}, },
created () { created () {
// 获取人员信息数据
this.getPersonInfoStructure(ProcessKey.CONSULTATION.value, () => {
this.initPersonInfoData(this.currentNode.indexOf(ConsultationProcess.initiate.value) === 0)
})
// 有流程id或者草稿id点进来的 // 有流程id或者草稿id点进来的
if (this.$route.query.processInstanceId || this.$route.query.draftId) { if (this.$route.query.processInstanceId || this.$route.query.draftId) {
this.currentNode = this.$route.query.nodeId this.currentNode = this.$route.query.nodeId
this.initProcessDetailData() this.initProcessDetailData()
} else {
this.currentNode = ConsultationProcess.initiate.value
} }
// 获取人员信息数据
this.getPersonInfoStructure(ProcessKey.CONSULTATION.value, () => {
this.initPersonInfoData(this.currentNode.indexOf(ConsultationProcess.initiate.value) === 0)
})
// 找不到这个节点默认使用审批节点页面及按钮,发起除外 // 找不到这个节点默认使用审批节点页面及按钮,发起除外
this.nodeEnumsKey = this.currentNode ? ConsultationProcess.keyOfValue(this.currentNode) || 'regulatoryEngineerApproval' : 'initiate' this.nodeEnumsKey = this.currentNode ? ConsultationProcess.keyOfValue(this.currentNode) || 'regulatoryEngineerApproval' : 'initiate'
this.btnList = ConsultationProcess[this.nodeEnumsKey].btn this.btnList = ConsultationProcess[this.nodeEnumsKey].btn
}, },
methods: { methods: {
initProcessDetailData () { initProcessDetailData () {