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