|
|
@ -55,16 +55,20 @@ export const columns: BasicColumn[] = [
|
|
|
|
|
|
|
|
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'code',
|
|
|
|
field: 'linkId',
|
|
|
|
label: '场站',
|
|
|
|
label: '场站',
|
|
|
|
colProps: { span: 6 },
|
|
|
|
colProps: { span: 6 },
|
|
|
|
component: 'ApiSelect',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
|
|
|
|
|
|
|
componentProps: () => {
|
|
|
|
componentProps: () => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
api: GetYardClientList,
|
|
|
|
api: GetYardClientList,
|
|
|
|
labelField: 'shortName',
|
|
|
|
labelField: 'shortName',
|
|
|
|
valueField: 'codeName',
|
|
|
|
valueField: 'id',
|
|
|
|
resultField: 'data',
|
|
|
|
resultField: 'data',
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -79,13 +83,13 @@ export const formSchema: FormSchema[] = [
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: '',
|
|
|
|
label: '',
|
|
|
|
field: 'linkId',
|
|
|
|
field: 'code',
|
|
|
|
component: 'Input',
|
|
|
|
component: 'Input',
|
|
|
|
defaultValue: '',
|
|
|
|
defaultValue: '',
|
|
|
|
show: false,
|
|
|
|
show: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'code',
|
|
|
|
field: 'linkId',
|
|
|
|
label: '场站',
|
|
|
|
label: '场站',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
component: 'ApiSelect',
|
|
|
|
colProps: { span: 20 },
|
|
|
|
colProps: { span: 20 },
|
|
|
@ -93,11 +97,17 @@ export const formSchema: FormSchema[] = [
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
api: GetYardClientList,
|
|
|
|
api: GetYardClientList,
|
|
|
|
labelField: 'shortName',
|
|
|
|
labelField: 'shortName',
|
|
|
|
valueField: 'codeName',
|
|
|
|
valueField: 'id',
|
|
|
|
resultField: 'data',
|
|
|
|
resultField: 'data',
|
|
|
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
|
|
|
console.log(input, option)
|
|
|
|
|
|
|
|
return option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
|
|
|
},
|
|
|
|
onChange: (v, obj) => {
|
|
|
|
onChange: (v, obj) => {
|
|
|
|
if (obj) {
|
|
|
|
if (obj) {
|
|
|
|
formModel['linkId'] = obj.id
|
|
|
|
console.log(obj)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
formModel['code'] = obj.codeName
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|