From 8cfa756594550be3ee0b60b2860900ebb32d8444 Mon Sep 17 00:00:00 2001 From: lijingjia Date: Wed, 20 Nov 2024 11:44:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A6=E5=8F=B7bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operation/seaexport/detail/modules/basicInfo.vue | 8 ++++++++ 1 file changed, 8 insertions(+) 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 { // 默认是选择框