From 147a9dab8de20695dacb1cfabfb5377988f2e29e Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Tue, 9 Jan 2024 10:44:46 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug80278?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/ContactEnterSendTaskModal.vue | 12 ++++++++++-- .../modules/BaseInfoTableModal.vue | 11 +++++++++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue index 59f69c1d..b4dd65b9 100644 --- a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue +++ b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue @@ -518,7 +518,8 @@ -
+ +
{{ $t('cancel') }} {{ $t('submit') }}
@@ -716,7 +717,8 @@ export default { trigger: 'change' } ] - } + }, + isLook: false // 是否是查看 } }, computed: { @@ -781,8 +783,13 @@ export default { }, look (record) { this.visible = true + this.isLook = true this.model = Object.assign({}, record) this.formInline = Object.assign({}, record) + // 没有申请类型就设置为立项 + if (!this.formInline.applicationType) { + this.formInline.applicationType = this.ApplicationCategory.INITIATION.value + } if (this.formInline.workGroup) { this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText } } @@ -906,6 +913,7 @@ export default { this.model = {} this.formInline = {} this.visible = false + this.isLook = false this.$refs.ruleForm.clearValidate() }, // 提交 diff --git a/src/views/workCenter/annualRevisionPlanStandardizationInit/modules/BaseInfoTableModal.vue b/src/views/workCenter/annualRevisionPlanStandardizationInit/modules/BaseInfoTableModal.vue index 64648691..76c46ecc 100644 --- a/src/views/workCenter/annualRevisionPlanStandardizationInit/modules/BaseInfoTableModal.vue +++ b/src/views/workCenter/annualRevisionPlanStandardizationInit/modules/BaseInfoTableModal.vue @@ -498,7 +498,7 @@
-
+
{{ $t('cancel') }} {{ $t('submit') }}
@@ -742,7 +742,8 @@ export default { trigger: 'change' } ] - } + }, + isLook: false // 是否是查看 } }, computed: { @@ -859,9 +860,14 @@ export default { this.formInline = Object.assign({}, formInline) }, look (record) { + this.isLook = true this.visible = true this.model = Object.assign({}, record) this.formInline = Object.assign({}, record) + // 没有申请类型就设置为立项 + if (!this.formInline.applicationType) { + this.formInline.applicationType = this.ApplicationCategory.INITIATION.value + } this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => { return { value: item } }) : [] @@ -963,6 +969,7 @@ export default { this.model = {} this.formInline = {} this.visible = false + this.isLook = false this.$refs.ruleForm.clearValidate() this.draftPlanFinishDateDisabled = false this.exposureDraftPlanFinishDateDisabled = false