From a95aca9f905bf3736fa79306d8fbd1ce32afd779 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 8 Jan 2024 10:59:09 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug80048?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlanApprovalChangeFlow.vue | 7 ++++++- .../modules/ApprovalBaseInfo.vue | 10 ++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue b/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue index 20582056..1ecefd95 100644 --- a/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue +++ b/src/views/workCenter/enterpriseStandardInitChange/PlanApprovalChangeFlow.vue @@ -91,6 +91,7 @@ {{ $t('workCenter.enterpriseInitChangePlan.formulate') }} {{ $t('workCenter.enterpriseInitChangePlan.revise') }} @@ -637,11 +638,13 @@ export default { if (this.formInline.projectType) { this.formInline.projectType = undefined } + // 清空流程名称 + this.processInfoForm.resetFields(['prcName']) }, // 项目类别改变 projectTypeChange (value) { console.log(value, this.formInline.applicationCategory) - if (value) { + if (value && this.formInline.applicationCategory === ApplicationCategory.CHANGE.value) { if (value === ProjectType.RESPONSIBLE_DEPT_CHANGE.value) { // 是责任部门变更 this.resetPersonInfoStructure('3') @@ -650,6 +653,8 @@ export default { this.resetPersonInfoStructure('2') } } + // 清空流程名称 + this.processInfoForm.resetFields(['prcName']) }, // 选择用户得到用户名 userSelectNameChange (value, fieldName) { diff --git a/src/views/workCenter/enterpriseStandardInitChange/modules/ApprovalBaseInfo.vue b/src/views/workCenter/enterpriseStandardInitChange/modules/ApprovalBaseInfo.vue index b95fce9d..a8c34c7b 100644 --- a/src/views/workCenter/enterpriseStandardInitChange/modules/ApprovalBaseInfo.vue +++ b/src/views/workCenter/enterpriseStandardInitChange/modules/ApprovalBaseInfo.vue @@ -44,6 +44,7 @@ v-model="formInline.newEnStandardName" :disabled="disabled" :maxLength="200" + @blur="newEnStandardNameBlur" @change="event => event.target.value = event.target.value.trim()" :placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.enterpriseStandardName')" /> @@ -169,6 +170,7 @@ :disabled="disabled" v-model="formInline.newEnStandardName" :maxLength="200" + @blur="newEnStandardNameBlur" @change="event => event.target.value = event.target.value.trim()" :placeholder="$t('pleaseEnter')+$t('workCenter.enterpriseInitChangePlan.newEnterpriseStandardName')" /> @@ -660,10 +662,6 @@ export default { // 原企标编号改变,新企标编号随之改变 'formInline.originEnStandardNo' (value) { this.getEnStandardNo() - }, - // 企标名称,企标名称修改流程名称需要自动更改 - 'formInline.newEnStandardName' (value) { - this.returnProcessName() } }, computed: { @@ -873,6 +871,10 @@ export default { decadeCodeChange (value) { this.getEnStandardNo() }, + newEnStandardNameBlur (value) { + // 企标名称,企标名称修改流程名称需要自动更改 + this.returnProcessName() + }, // 返回流程名称 returnProcessName () { const processName = (this.formInline.newEnStandardNo || '') + '-' + (this.formInline.newEnStandardName || '') + '-' + '立项'