From 47a0b3358da241f19bf5e0688b188e7bfe36a965 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Fri, 26 Jan 2024 14:20:14 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9=E4=BC=81=E6=A0=87?= =?UTF-8?q?=E7=AB=8B=E9=A1=B9=E6=B5=81=E7=A8=8B=E8=8A=82=E7=82=B94?= =?UTF-8?q?=E5=92=8C=E8=8A=82=E7=82=B95=E7=9A=84=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlanApprovalChangeFlow.vue | 34 +++++++++++++++---- 1 file changed, 27 insertions(+), 7 deletions(-) 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),