|
|
|
@ -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',
|
|
|
|
|