diff --git a/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue b/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue index 8c8f8cc6..180f0c00 100644 --- a/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue +++ b/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue @@ -311,6 +311,33 @@ export default { } else { return true } + }, + // 节点 + currentNodeName () { + if (this.$route.query.taskName) { + // 说明是已发起流程 + if (this.currentNode === 4) { + if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) { + // 是立项 + return EsInitChangeNodes.leaderApproval.initiationText + } else { + // 是变更 + return EsInitChangeNodes.leaderApproval.changeText + } + } else if (this.currentNode === 5) { + if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) { + // 是立项 + return EsInitChangeNodes.leaderLeaderApproval.initiationText + } else { + // 是变更 + return EsInitChangeNodes.leaderLeaderApproval.changeText + } + } else { + return this.$route.query.taskName + } + } else { + return '主起草人发起' + } } }, mounted () { @@ -363,12 +390,6 @@ export default { // 有草稿id,说明是从流程中心-草稿来的,需要初始化数据 this.getProcessData('draft', { draftId: this.$route.query.draftId, projectId: this.$route.query.projectId }) } - if (this.$route.query.taskName) { - // 说明是已发起流程 - this.currentNodeName = this.$route.query.taskName - } else { - this.currentNodeName = '主起草人发起' - } }, data () { return { @@ -380,7 +401,6 @@ export default { disabled: false, categoryTypeDisabled: false, // 申请类型和项目类别不可更改 currentNode: 1, // 当前节点 - currentNodeName: '', // 当前节点名称 currentNodeId: EsInitChangeNodes.mainDrafterStart.value, // 当前节点id model: [], processInfoForm: this.$form.createForm(this),