[update] 年度制修订标准化发起流程修改

This commit is contained in:
lideqin
2023-12-18 16:24:13 +08:00
parent cb9fac6f21
commit 39fd5eebd0
5 changed files with 30 additions and 6 deletions
@@ -55,7 +55,7 @@
<!-- 业务基本信息 -->
<div class="process-part-title">{{ $t('basicServiceInformation') }}</div>
<!-- 节点1标准工程师发起的基本信息表单 -->
<engineer-init-base-info v-if="[1, 3].includes(currentNode)" ref="baseInfoRef" :currentNode="currentNode"></engineer-init-base-info>
<engineer-init-base-info v-if="[1, 3, 10].includes(currentNode)" ref="baseInfoRef" :currentNode="currentNode"></engineer-init-base-info>
<!-- 节点2部所联络人选取审批人 -->
<contact-select-approver-base-info v-else-if="[2, 5].includes(currentNode)" ref="baseInfoRef" :currentNode="currentNode" @batchReject="handleBatchReject"></contact-select-approver-base-info>
<!-- 节点3主起草单位主管级领导审批下发 -->
@@ -93,7 +93,7 @@
<!-- 操作按钮 -->
<div class="detail-page-bottom-operate-box">
<!-- 发起节点 -->
<template v-if="currentNode === 1">
<template v-if="[1, 3, 10].includes(currentNode)">
<!-- 保存 -->
<a-button type="primary" ghost :loading="loading" @click="handleSave"><i class="iconfont icon-save"></i> {{ $t('preservation') }}</a-button>
<!-- 提交 -->
@@ -205,6 +205,9 @@ export default {
} else if (nodeId === EsRevisionPlanStandardizationInitNodes.standardizationSumUp.value) {
// 标准化归档
this.currentNode = 9
} else if (nodeId === EsRevisionPlanStandardizationInitNodes.standardizationTwoUpdate.value) {
// 标准化归档
this.currentNode = 10
} else {
// 预留加签节点
this.currentNode = 999
@@ -64,6 +64,11 @@ export default {
type: Boolean,
required: false,
default: false
},
currentNode: {
type: Number,
required: false,
default: 0
}
},
data () {
@@ -242,7 +247,20 @@ export default {
this.$message.warning(this.$t('workCenter.revisionPlanActivelyReport.pleaseSelectApprover'))
data = false
} else {
data.dataSource = this.dataSource
if (this.currentNode === 5) {
// 是部所联络人修改调整节点,即被驳回到了部所联络人选审批人,需要审批人是同一个人
const arr = this.dataSource.map(item => item.approvalUser)
const isEquals = arr.every(item => item === arr[0])
if (!isEquals) {
// 不是同一个人,提示
this.$message.warning(this.$t('workCenter.revisionPlanActivelyReport.pleaseSelectSameApprover'))
data = false
} else {
data.dataSource = this.dataSource
}
} else {
data.dataSource = this.dataSource
}
}
return data
},