[update] 企标复审流程联调

This commit is contained in:
lideqin
2023-12-07 18:29:00 +08:00
parent d16c62e430
commit c90c363ba0
5 changed files with 24 additions and 18 deletions
@@ -264,7 +264,7 @@ export default {
this.model = res.result
this.$nextTick(() => {
// 初始化流程信息
this.processInfoForm.setFieldsValue(pick(this.model[0], 'prcName', 'dueTime', 'prcMes'))
this.processInfoForm.setFieldsValue(pick(this.model.common, 'prcName', 'dueTime', 'prcMes'))
// 初始化流程审批信息,草稿进来的才回显审批信息
if (type === 'draft') {
this.approvalInfoForm.setFieldsValue(pick(this.model.common, 'commitText', 'commitFile'))
@@ -81,7 +81,7 @@
<!-- 人员信息 -->
<div v-show="switchValue === 'user'" class="detail-page-scroll-content p-0">
<process-detail-list :processKey="ProcessKey.ES_RECHECK.value">
<personnel-info slot="personnelInfo" ref="personnelInfo" :data="personnelInfoData" :currentNode="currentNode + ''"></personnel-info>
<personnel-info slot="personnelInfo" ref="personnelInfo" :data="personnelInfoData" :currentNode="currentNodeName"></personnel-info>
</process-detail-list>
</div>
<!-- 操作按钮 -->
@@ -164,7 +164,7 @@ export default {
},
mounted () {
// 初始化节点
const nodeId = this.$route.query.taskName
const nodeId = this.$route.query.nodeId
if (nodeId) {
if (nodeId === EsRecheckNodes.standardizationSelectContact.value) {
// 标准化工程师选择联络人
@@ -199,8 +199,9 @@ export default {
this.initPersonInfoData(false)
}
}
// 如果是正在手动发起流程,人员信息的节点1不显示
if (!this.$route.query.taskId && !this.$route.query.draftId) {
// 如果没有processInstanceId说明流程还没发起过
if (!this.$route.query.processInstanceId) {
// 不显示第一个节点人员信息
this.personnelInfoData.shift()
// 说明是在新发起一个节点,初始化发起人员信息
this.personnelInfoData[0].linkUserIds = Vue.ls.get(USER_INFO).id
@@ -313,12 +314,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()
}
})
// enStandardRecheckIsShowFirstPerson({ id: this.model.data.id }).then(res => {
// if (res.success && !res.result) {
// // 不显示第一个节点人员信息
// this.personnelInfoData.shift()
// }
// })
} else {
this.$message.warning(res.message)
}
@@ -178,9 +178,7 @@ export default {
// 拿到外面传进来的数据初始化
initData (data) {
// 给表单赋值
this.$nextTick(() => {
this.formInline = Object.assign({}, data)
})
this.formInline = Object.assign({}, data)
},
// 外层要获取数据
getData () {
@@ -305,7 +305,7 @@ export default {
}
const param = {}
param.userId = value
param.taskId = this.$route.query.taskId
param.taskId = this.currentTurnTo.taskId
func(param).then(res => {
if (res.success) {
this.$message.success(res.message)