|
|
|
@ -347,6 +347,7 @@ export const formSchema2: FormSchema[] = [
|
|
|
|
|
immediate: false,
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formActionType ? formActionType.linkageForm(obj) : null
|
|
|
|
|
formModel.loadPortId = obj.id
|
|
|
|
|
formModel.loadPort = obj.portName
|
|
|
|
|
}
|
|
|
|
@ -767,9 +768,14 @@ export const formSchema4: FormSchema[] = [
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
format: 'YYYY-MM-DD',
|
|
|
|
|
allowClear: true
|
|
|
|
|
componentProps: ({ formModel, formActionType }) => {
|
|
|
|
|
return {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
valueFormat: 'YYYY-MM-DD',
|
|
|
|
|
onChange: (e) => {
|
|
|
|
|
formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -804,21 +810,38 @@ export const formSchema4: FormSchema[] = [
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
// defaultValue: '',
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
componentProps: ({ formActionType }) => {
|
|
|
|
|
return {
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetClientFrtSelectList'),
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
labelField: 'cnName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
labelField: 'frtName',
|
|
|
|
|
valueField: 'frtName',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'prepareAtId',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'prepareAtCode',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
show: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'prepareAt',
|
|
|
|
|
label: '预付地点',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
required: false,
|
|
|
|
@ -827,41 +850,39 @@ export const formSchema4: FormSchema[] = [
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetClientPortSelectList'),
|
|
|
|
|
labelField: 'portName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
api: GetClientPortSelectList,
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
valueField: 'portName',
|
|
|
|
|
showName: 'portName',
|
|
|
|
|
immediate: false,
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (obj) {
|
|
|
|
|
formModel.prepareAt = obj.portName
|
|
|
|
|
} else {
|
|
|
|
|
formModel.prepareAt = ''
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.prepareAtId = obj.id
|
|
|
|
|
formModel.prepareAtCode = obj.ediCode
|
|
|
|
|
}
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
formModel.prepareAtId = null
|
|
|
|
|
formModel.prepareAtCode = null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'prepareAt',
|
|
|
|
|
field: 'payableAtId',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
show: false,
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
show: false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '',
|
|
|
|
|
field: 'payableAt',
|
|
|
|
|
field: 'payableAtCode',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
show: false,
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
show: false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'payableAtId',
|
|
|
|
|
field: 'payableAt',
|
|
|
|
|
label: '到付地点',
|
|
|
|
|
component: 'ApiSelect',
|
|
|
|
|
required: false,
|
|
|
|
@ -870,24 +891,24 @@ export const formSchema4: FormSchema[] = [
|
|
|
|
|
colProps: { span: 6 },
|
|
|
|
|
componentProps: ({ formModel }) => {
|
|
|
|
|
return {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
option: optionsStore.getOptionsByCode('GetClientPortSelectList'),
|
|
|
|
|
labelField: 'portName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
api: GetClientPortSelectList,
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
labelField: 'pinYinCode',
|
|
|
|
|
valueField: 'portName',
|
|
|
|
|
showName: 'portName',
|
|
|
|
|
immediate: false,
|
|
|
|
|
onChange: (e, obj) => {
|
|
|
|
|
if (obj) {
|
|
|
|
|
formModel.payableAt = obj.portName
|
|
|
|
|
} else {
|
|
|
|
|
formModel.payableAt = ''
|
|
|
|
|
if (e && obj) {
|
|
|
|
|
formModel.payableAtId = obj.id
|
|
|
|
|
formModel.payableAtCode = obj.ediCode
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
if (!e && !obj) {
|
|
|
|
|
formModel.payableAtId = null
|
|
|
|
|
formModel.payableAtCode = null
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'service',
|
|
|
|
|