[update] 修改企标复审流程

This commit is contained in:
lideqin
2023-11-29 11:23:41 +08:00
parent 935262ce2a
commit 4d0ae289a2
2 changed files with 21 additions and 1 deletions
@@ -132,7 +132,8 @@ import {
enStandardRecheckTurnTo,
enStandardRecheckAgree,
enStandardRecheckReject,
enStandardRecheckGetDataDraft
enStandardRecheckGetDataDraft,
enStandardRecheckIsShowFirstPerson
} from '@/api/workCenter'
import ContactInitBaseInfo from './modules/ContactInitBaseInfo'
import StandardizationInitBaseInfo from './modules/StandardizationInitBaseInfo'
@@ -140,6 +141,8 @@ import DrafterEnterOptionBaseInfo from './modules/DrafterEnterOptionBaseInfo'
import RecheckApproveBaseInfo from './modules/RecheckApproveBaseInfo'
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
import { ProcessKey, EsRecheckNodes } from '@/enums/commonEnums'
import Vue from 'vue'
import { USER_INFO } from '../../../store/mutation-types'
export default {
name: 'EnterpriseStandardRecheckFlow',
@@ -196,6 +199,14 @@ export default {
this.initPersonInfoData(false)
}
}
// 如果是正在手动发起流程,人员信息的节点1不显示
if (!this.$route.query.taskId && !this.$route.query.draftId) {
this.personnelInfoData.shift()
// 说明是在新发起一个节点,初始化发起人员信息
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 (this.$route.query.taskId && !this.$route.query.draftId) {
// 有流程id说明是从流程中心来的,需要初始化数据
@@ -302,6 +313,12 @@ export default {
this.$refs.baseInfoRef.initData(this.model.data)
}
})
enStandardRecheckIsShowFirstPerson({ id: this.model.data.id }).then(res => {
if (res.success && !res.result) {
// 不显示第一个节点人员信息
this.personnelInfoData.shift()
}
})
} else {
this.$message.warning(res.message)
}