|
|
@ -1,6 +1,6 @@
|
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table'
|
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table'
|
|
|
|
import { GetYardClientList, GetCarrierlist } from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
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'
|
|
|
|
import { getDictOption } from '/@/utils/dictUtil'
|
|
|
|
// 模块字典
|
|
|
|
// 模块字典
|
|
|
@ -62,15 +62,18 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
component: 'ApiSelect',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
componentProps: () => {
|
|
|
|
componentProps: () => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
api: GetYardClientList,
|
|
|
|
api: GetSupplierListByCode,
|
|
|
|
labelField: 'shortName',
|
|
|
|
params: { code: 'yard' },
|
|
|
|
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
|
|
|
showName: 'shortName',
|
|
|
|
valueField: 'id',
|
|
|
|
valueField: 'id',
|
|
|
|
resultField: 'data',
|
|
|
|
resultField: 'data',
|
|
|
|
|
|
|
|
immediate: false,
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: '船公司',
|
|
|
|
label: '船公司',
|
|
|
@ -86,10 +89,10 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
showName: 'ediCode',
|
|
|
|
showName: 'ediCode',
|
|
|
|
valueField: 'id',
|
|
|
|
valueField: 'id',
|
|
|
|
resultField: 'data',
|
|
|
|
resultField: 'data',
|
|
|
|
immediate: false
|
|
|
|
immediate: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
export const formSchema: FormSchema[] = [
|
|
|
|
export const formSchema: FormSchema[] = [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -113,8 +116,10 @@ export const formSchema: FormSchema[] = [
|
|
|
|
colProps: { span: 20 },
|
|
|
|
colProps: { span: 20 },
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
api: GetYardClientList,
|
|
|
|
api: GetSupplierListByCode,
|
|
|
|
labelField: 'shortName',
|
|
|
|
params: { code: 'yard' },
|
|
|
|
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
|
|
|
showName: 'shortName',
|
|
|
|
valueField: 'id',
|
|
|
|
valueField: 'id',
|
|
|
|
resultField: 'data',
|
|
|
|
resultField: 'data',
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
@ -177,9 +182,9 @@ export const formSchema: FormSchema[] = [
|
|
|
|
if (!e && !obj) {
|
|
|
|
if (!e && !obj) {
|
|
|
|
formModel.carrierId = ''
|
|
|
|
formModel.carrierId = ''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'mapName',
|
|
|
|
field: 'mapName',
|
|
|
|