From 3427cccff39d71e4f2d6618c372f993c7146f25b Mon Sep 17 00:00:00 2001 From: lijingjia Date: Thu, 8 Aug 2024 18:59:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E8=BF=90=E5=87=BA=E5=8F=A3=E8=AF=A6?= =?UTF-8?q?=E6=83=85bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mapping/packing/columns.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/views/mapping/packing/columns.tsx b/src/views/mapping/packing/columns.tsx index f3ecdea1..8a50dcda 100644 --- a/src/views/mapping/packing/columns.tsx +++ b/src/views/mapping/packing/columns.tsx @@ -3,7 +3,7 @@ import { GetCarrierlist } from '/@/views/operation/seaexport/api/BookingLedger' // 引入字典数据 import { getDictOption } from '/@/utils/dictUtil' // 包装下拉数据 -import { GetPackageSelectList } from '/@/api/common' +import { GetPackageSelectList } from '/@/views/operation/seaexport/api/BookingLedger' // 模块字典 const modulesDict = await getDictOption('modules') export const columns: BasicColumn[] = [ @@ -97,16 +97,17 @@ export const formSchema: FormSchema[] = [ api: GetPackageSelectList, labelField: 'packageName', valueField: 'ediCode', - showSearch: true, resultField: 'data', onChange: (v, obj) => { - if (obj) { - console.log(obj) + if (v && obj) { formModel['linkId'] = obj.id } - }, + if (!v && !obj) { + formModel['linkId'] = null + } + } } - }, + } }, { field: 'module',