From 29af111bcce39857fb2d3b0410a6b4d8234ad78a 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, 21 Nov 2024 16:22:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=BA=E7=AB=99=E6=98=A0=E5=B0=84=20?= =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mapping/station/columns.tsx | 29 ++++++++++++++++----------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/src/views/mapping/station/columns.tsx b/src/views/mapping/station/columns.tsx index e6e9cca0..ca7a3add 100644 --- a/src/views/mapping/station/columns.tsx +++ b/src/views/mapping/station/columns.tsx @@ -1,6 +1,6 @@ import { BasicColumn, FormSchema } from '/@/components/Table' import { GetYardClientList, GetCarrierlist } from '/@/views/operation/seaexport/api/BookingLedger' -import { GetCarrierSelectList } from '/@/api/common' +import { GetCarrierSelectList, GetSupplierListByCode } from '/@/api/common' // 引入字典数据 import { getDictOption } from '/@/utils/dictUtil' // 模块字典 @@ -62,15 +62,18 @@ export const searchFormSchema: FormSchema[] = [ component: 'ApiSelect', componentProps: () => { return { - api: GetYardClientList, - labelField: 'shortName', + api: GetSupplierListByCode, + params: { code: 'yard' }, + labelField: 'pinYinCode', + showName: 'shortName', valueField: 'id', resultField: 'data', + immediate: false, filterOption: (input: string, option: any) => { return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 - } + }, } - } + }, }, { label: '船公司', @@ -86,10 +89,10 @@ export const searchFormSchema: FormSchema[] = [ showName: 'ediCode', valueField: 'id', resultField: 'data', - immediate: false + immediate: false, } - } - } + }, + }, ] export const formSchema: FormSchema[] = [ { @@ -113,8 +116,10 @@ export const formSchema: FormSchema[] = [ colProps: { span: 20 }, componentProps: ({ formModel }) => { return { - api: GetYardClientList, - labelField: 'shortName', + api: GetSupplierListByCode, + params: { code: 'yard' }, + labelField: 'pinYinCode', + showName: 'shortName', valueField: 'id', resultField: 'data', filterOption: (input: string, option: any) => { @@ -177,9 +182,9 @@ export const formSchema: FormSchema[] = [ if (!e && !obj) { formModel.carrierId = '' } - } + }, } - } + }, }, { field: 'mapName',