fix 79920

This commit is contained in:
赵霄
2023-12-27 15:40:16 +08:00
parent ea299b2710
commit 5c8eb0dc1f
@@ -616,7 +616,7 @@ export default {
this.formList = res.result || {} this.formList = res.result || {}
this.formListArr = Object.values(this.formList).reduce((acc, cur) => acc.concat(cur), []) this.formListArr = Object.values(this.formList).reduce((acc, cur) => acc.concat(cur), [])
this.formPartList = Object.keys(this.formList) 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.$forceUpdate()
this.getOptionsData() // 处理通过接口获取的下拉数据 this.getOptionsData() // 处理通过接口获取的下拉数据
this.integrateData() // 处理表单验证 this.integrateData() // 处理表单验证
@@ -646,7 +646,7 @@ export default {
this.formList = res.result || {} this.formList = res.result || {}
this.formListArr = Object.values(this.formList).reduce((acc, cur) => acc.concat(cur), []) this.formListArr = Object.values(this.formList).reduce((acc, cur) => acc.concat(cur), [])
this.formPartList = Object.keys(this.formList) 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.getOptionsData() // 处理通过接口获取的下拉数据
this.integrateData() // 处理表单验证 this.integrateData() // 处理表单验证
this.initRetractableFlag() // 处理面板展开 this.initRetractableFlag() // 处理面板展开
@@ -784,9 +784,12 @@ export default {
handleOperationTypeChange (value) { handleOperationTypeChange (value) {
this.$refs.ruleForm.clearValidate() this.$refs.ruleForm.clearValidate()
this.formInline = { 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) { switchChange (value) {
this.switchValue = value this.switchValue = value