update 征求意见流程

This commit is contained in:
赵霄
2023-11-20 09:45:53 +08:00
parent bdb1f33b32
commit cde2a036d9
2 changed files with 8 additions and 5 deletions
+1
View File
@@ -30,6 +30,7 @@ export const WorkCenterMixin = {
if (!this.$route.query.processInstanceId) {
// 说明是在新发起一个节点,初始化发起人员信息
this.personnelInfoData[0].linkUserIds = Vue.ls.get(USER_INFO).id
this.personnelInfoData[0].linkUserIds_dictText = Vue.ls.get(USER_INFO).realname + '(' + Vue.ls.get(USER_INFO).username + ')'
this.personnelInfoData[0].userList = Vue.ls.get(USER_INFO).realname + '(' + Vue.ls.get(USER_INFO).username + ')'
}
if (callback) {
@@ -760,17 +760,14 @@ export default {
}
},
created () {
// 有流程id或者草稿id点进来的
if (this.$route.query.processInstanceId || this.$route.query.draftId) {
this.currentNode = this.$route.query.nodeId
this.initProcessDetailData()
} else {
this.currentNode = ConsultationProcess.initiate.value
}
// 获取人员信息数据
this.getPersonInfoStructure(ProcessKey.CONSULTATION.value, () => {
this.initPersonInfoData(this.currentNode.indexOf(ConsultationProcess.initiate.value) === 0)
this.initPersonInfoData(!this.currentNode || this.currentNode.indexOf(ConsultationProcess.initiate.value) === 0)
})
// 找不到这个节点默认使用审批节点页面及按钮,发起除外
this.nodeEnumsKey = this.currentNode ? ConsultationProcess.keyOfValue(this.currentNode) || 'regulatoryEngineerApproval' : 'initiate'
@@ -1027,7 +1024,12 @@ export default {
return
}
this.loading = true
const func = !!this.currentNode ? submitConsultationProcess : initiateConsultationProcess
let func
if (!this.currentNode || (this.currentNode.indexOf(ConsultationProcess.initiate.value) === 0 && !this.$route.query.processInstanceId)) {
func = initiateConsultationProcess
} else {
func = submitConsultationProcess
}
func(formData).then(res => {
if (res.success) {
this.$message.success(res.message)