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