From 781962f82da586090fbde6966eef11f8c940ad00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Thu, 25 Apr 2024 18:17:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E8=BF=90=E5=87=BA=E5=8F=A3=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/operation/seaexport/columns.tsx | 45 +++++++++-------------- 1 file changed, 17 insertions(+), 28 deletions(-) diff --git a/src/views/operation/seaexport/columns.tsx b/src/views/operation/seaexport/columns.tsx index a6868d44..e154d8c4 100644 --- a/src/views/operation/seaexport/columns.tsx +++ b/src/views/operation/seaexport/columns.tsx @@ -433,35 +433,24 @@ export const basicInfoFormSchema: FormSchema[] = [ FnsourceDetailId.data.forEach((e) => { ListData.sourceDetailId.push({ label: e.detailName, value: e.id }) }) - updateSchema( - // { - // label: '来源明细', - // field: 'sourceDetailId', - // component: 'Select', - // required: false, - // dynamicDisabled: ({ values }) => { - // return !values.sourceId - // }, - // colProps: { span: 4 }, - // componentProps: { - // allowClear: true, - // options: ListData.sourceDetailId, - // showSearch: true, - // filterOption: (input: string, option: any) => { - // return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 - // }, - // }, - // } - { - field: 'bookingNo', - label: '订舱编号', - component: 'Input', - required: false, - dynamicDisabled: false, - defaultValue: '', - colProps: { span: 4 }, + updateSchema({ + label: '来源明细', + field: 'sourceDetailId', + component: 'Select', + required: false, + dynamicDisabled: ({ values }) => { + return !values.sourceId }, - ) + colProps: { span: 4 }, + componentProps: { + allowClear: true, + options: ListData.sourceDetailId, + showSearch: true, + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, + }, + }) } } formModel.sourceDetailId = ''