diff --git a/src/views/operation/seaexport/detail/modules/basicInfo.vue b/src/views/operation/seaexport/detail/modules/basicInfo.vue index 7a18c7c0..70fb6a1b 100644 --- a/src/views/operation/seaexport/detail/modules/basicInfo.vue +++ b/src/views/operation/seaexport/detail/modules/basicInfo.vue @@ -211,6 +211,7 @@ import { mode } from 'crypto-js' let contractNoFlag = true // 切换约号控件 const toggleCNo = (model) => { + console.log(model) if (model.contractNo) { if (model.contractId) { // 选择框切换成输入框 @@ -218,12 +219,19 @@ import { mode } from 'crypto-js' { field: 'contractId', show: false }, { field: 'contractNo', show: true } ]) + setFieldsValue({ + contractId: null, + contractNo: null + }) } else { // 输入框切换成选择框 updateSchema([ { field: 'contractId', show: true }, { field: 'contractNo', show: false } ]) + setFieldsValue({ + contractNo: null + }) } } else { // 默认是选择框