调整船公司

szh-new
张同海 3 months ago
parent 67254aa098
commit 0492c8fc79

@ -30,24 +30,30 @@ export const columns: BasicColumn[] = [
export const searchFormSchema: FormSchema[] = [ export const searchFormSchema: FormSchema[] = [
{ {
field: 'carrier',
label: '承运商', label: '承运商',
field: 'carrier',
labelSlot: 'carrierId',
component: 'ApiSelect', component: 'ApiSelect',
required: false,
colProps: { span: 4 }, dynamicDisabled: false,
componentProps: () => { colProps: { span: 20 },
componentProps: ({ formModel }) => {
return { return {
allowClear: true, api: GetCarrierSelectList,
showSearch: true,
api: GetClientListByCode,
params: { code: 'carrier' },
labelField: 'pinYinCode', labelField: 'pinYinCode',
showName: 'pinYinCode', showName: 'cnName',
valueField: 'codeName', valueField: 'code',
resultField: 'data', resultField: 'data',
immediate: true, immediate: false,
filterOption: (input: string, option: any) => { onChange: (e, obj) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 console.log(obj)
if (e && obj) {
formModel.carrierId = obj.id
}
if (!e && !obj) {
formModel.carrierId = ''
}
}, },
} }
}, },

Loading…
Cancel
Save