From 1dea3b2eb6ede0acf11822e76443a3872390f47e Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Fri, 24 Nov 2023 18:08:11 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlanApprovalChangeFlow.vue | 23 +++++++++++-------- .../modules/FinishTimeChangeBaseInfo.vue | 2 ++ .../FinishTimeChangeBaseInfoDrawer.vue | 13 ++++++++++- .../modules/JobEndBaseInfo.vue | 2 ++ .../modules/JobEndBaseInfoDrawer.vue | 3 ++- 5 files changed, 32 insertions(+), 11 deletions(-) diff --git a/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue b/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue index f5a41ec1..6f7d5b8b 100644 --- a/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue +++ b/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue @@ -336,10 +336,12 @@ export default { // 查询流程定义列表,通过查出的数据获取到流程定义id,如果已经发起过流程,用这个id和流程实例id去查人员信息数据 this.getPersonInfoStructure(ProcessKey.ES_INIT_CHANGE.value) // 根据流程节点初始化是否可以编辑 - if (this.currentNode === 1) { - this.disabled = false - } else { - this.disabled = true + if (this.$route.query.processInstanceId) { + if (this.currentNode === 1) { + this.disabled = false + } else { + this.disabled = true + } } if (this.$route.query.taskId) { // 有流程id说明是从流程中心来的,需要初始化数据 @@ -541,11 +543,14 @@ export default { // 变更的责任部门变更 this.resetPersonInfoStructure('3') } - if (this.currentNode === 1) { - this.initPersonInfoData(true) - } else { - // 如果不是第一个节点,人员信息全部不可选 - this.initPersonInfoData(false) + // 对人员信息进行处理 + if (this.$route.query.processInstanceId) { + if (this.currentNode === 1) { + this.initPersonInfoData(true) + } else { + // 如果不是第一个节点,人员信息全部不可选 + this.initPersonInfoData(false) + } } // 初始化业务基本信息中组件内容 if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) { diff --git a/src/views/workCenter/enterpriseStandardInitChange/modules/FinishTimeChangeBaseInfo.vue b/src/views/workCenter/enterpriseStandardInitChange/modules/FinishTimeChangeBaseInfo.vue index 7f4b4af8..81794bad 100644 --- a/src/views/workCenter/enterpriseStandardInitChange/modules/FinishTimeChangeBaseInfo.vue +++ b/src/views/workCenter/enterpriseStandardInitChange/modules/FinishTimeChangeBaseInfo.vue @@ -199,11 +199,13 @@ export default { handleAdd () { this.modalType = 'add' this.$refs.changeBaseInfoDrawer.add() + this.$refs.changeBaseInfoDrawer.title = this.$t('newlyAdded') }, // 编辑 handleEdit (record, index) { this.modalType = 'edit' + index this.$refs.changeBaseInfoDrawer.edit(record) + this.$refs.changeBaseInfoDrawer.title = this.$t('edit') }, // 删除 handleDelete (id, index) { diff --git a/src/views/workCenter/enterpriseStandardInitChange/modules/FinishTimeChangeBaseInfoDrawer.vue b/src/views/workCenter/enterpriseStandardInitChange/modules/FinishTimeChangeBaseInfoDrawer.vue index a7112035..2ddd89f0 100644 --- a/src/views/workCenter/enterpriseStandardInitChange/modules/FinishTimeChangeBaseInfoDrawer.vue +++ b/src/views/workCenter/enterpriseStandardInitChange/modules/FinishTimeChangeBaseInfoDrawer.vue @@ -1,6 +1,6 @@