From 5c8eb0dc1ffc356e27d5a4db05b0dc787c57e0db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Wed, 27 Dec 2023 15:40:16 +0800 Subject: [PATCH] fix 79920 --- .../StandardEntryOrChangeProcess.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue b/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue index e74fc8a7..e4daae6d 100644 --- a/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue +++ b/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue @@ -616,7 +616,7 @@ export default { this.formList = res.result || {} this.formListArr = Object.values(this.formList).reduce((acc, cur) => acc.concat(cur), []) this.formPartList = Object.keys(this.formList) - this.formInline.source = StandardSource.DOMESTIC.value + this.formInline = { ...{ source: StandardSource.DOMESTIC.value, year_number: new Date().getFullYear() } } this.$forceUpdate() this.getOptionsData() // 处理通过接口获取的下拉数据 this.integrateData() // 处理表单验证 @@ -646,7 +646,7 @@ export default { this.formList = res.result || {} this.formListArr = Object.values(this.formList).reduce((acc, cur) => acc.concat(cur), []) this.formPartList = Object.keys(this.formList) - this.formInline.source = StandardSource.OVERSEAS.value + this.formInline = { ...{ source: StandardSource.OVERSEAS.value, year_number: new Date().getFullYear() } } this.getOptionsData() // 处理通过接口获取的下拉数据 this.integrateData() // 处理表单验证 this.initRetractableFlag() // 处理面板展开 @@ -784,9 +784,12 @@ export default { handleOperationTypeChange (value) { this.$refs.ruleForm.clearValidate() this.formInline = { - source: this.formInline.source + ...{ + source: this.formInline.source, + year_number: value === OperationType.ENTRY.value ? new Date().getFullYear() : undefined, + operateType: value + } } - this.formInline.operateType = value }, switchChange (value) { this.switchValue = value