From 4a30ae260f77bb5170e9b5a48bdd8a76420ecc70 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Wed, 20 Dec 2023 10:56:01 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9=E5=90=84=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E4=B8=BB=E5=8A=A8=E4=B8=8A=E6=8A=A5=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/ContactEnterSendTaskModal.vue | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue index 8bb7ab14..fd10cfb5 100644 --- a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue +++ b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue @@ -770,17 +770,22 @@ export default { this.visible = true this.model = Object.assign({}, record) this.formInline = Object.assign({}, record) + // 没有年代号就设置为当前年份 + if (!this.formInline.decadeCode) { + this.formInline.decadeCode = new Date().getFullYear() + '' + } + // 处理隶属工作组格式 if (this.formInline.workGroup) { this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText } } + // 没有申请类型就设置为立项 if (!this.formInline.applicationType) { this.formInline.applicationType = this.ApplicationCategory.INITIATION.value } - if (this.formInline.enStandardSystem && this.formInline.enStandardSystem.length > 0) { - this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => { - return { value: item } - }) : [] - } + // 处理标准体系数据格式 + this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => { + return { value: item } + }) : [] }, look (record) { this.visible = true @@ -789,11 +794,9 @@ export default { if (this.formInline.workGroup) { this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText } } - if (this.formInline.enStandardSystem && this.formInline.enStandardSystem.length > 0) { - this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => { - return { value: item } - }) : [] - } + this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => { + return { value: item } + }) : [] this.disabled = true }, // watch监视年代号会滞后