From 907d208920a9193d9ff5f6ee62daf71f8050a329 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Tue, 30 Jan 2024 11:16:34 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug81358,81345,813?= =?UTF-8?q?42?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlanApprovalChangeFlow.vue | 54 ++++++++++--------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue b/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue index 180f0c00..6fa17e75 100644 --- a/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue +++ b/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue @@ -595,33 +595,35 @@ export default { this.formInline = Object.assign({}, baseInfoForm) baseInfoForm.projectType = this.model.dataList[0] ? this.model.dataList[0].projectType : undefined this.formInline = Object.assign({}, baseInfoForm) - // 初始化人员信息 - if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) { - // 立项 - this.resetPersonInfoStructure('1') - } else if (this.formInline.applicationCategory === ApplicationCategory.CHANGE.value && - this.formInline.projectType !== ProjectType.RESPONSIBLE_DEPT_CHANGE.value) { - // 非责任部门变更 - this.resetPersonInfoStructure('2') - } else if (this.formInline.applicationCategory === ApplicationCategory.CHANGE.value && - this.formInline.projectType === ProjectType.RESPONSIBLE_DEPT_CHANGE.value) { - // 变更的责任部门变更 - this.resetPersonInfoStructure('3') - } - // 对人员信息进行处理 - if (this.$route.query.processInstanceId) { - if (this.currentNode === 1) { - this.initPersonInfoData(true) - } else { - // 如果不是第一个节点,人员信息全部不可选 - this.initPersonInfoData(false) + setTimeout(() => { + // 初始化人员信息 + if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) { + // 立项 + this.resetPersonInfoStructure('1') + } else if (this.formInline.applicationCategory === ApplicationCategory.CHANGE.value && + this.formInline.projectType !== ProjectType.RESPONSIBLE_DEPT_CHANGE.value) { + // 非责任部门变更 + this.resetPersonInfoStructure('2') + } else if (this.formInline.applicationCategory === ApplicationCategory.CHANGE.value && + this.formInline.projectType === ProjectType.RESPONSIBLE_DEPT_CHANGE.value) { + // 变更的责任部门变更 + this.resetPersonInfoStructure('3') } - } - // 如果是草稿节点1的保存回显人员信息 - if (type === 'draft' && this.currentNode === 1) { - const personnelObj = JSON.parse(this.model.infoJsonStr).personnelObj || JSON.parse(this.model.infoJsonStr).flowUserInfoVO - this.draftInitPersonInfo(personnelObj) - } + // 对人员信息进行处理 + if (this.$route.query.processInstanceId) { + if (this.currentNode === 1) { + this.initPersonInfoData(true) + } else { + // 如果不是第一个节点,人员信息全部不可选 + this.initPersonInfoData(false) + } + } + // 如果是草稿节点1的保存回显人员信息 + if (type === 'draft' && this.currentNode === 1) { + const personnelObj = JSON.parse(this.model.infoJsonStr).personnelObj || JSON.parse(this.model.infoJsonStr).flowUserInfoVO + this.draftInitPersonInfo(personnelObj) + } + }, 100) // 初始化业务基本信息中组件内容 if (this.formInline.applicationCategory === ApplicationCategory.INITIATION.value) { // 是立项