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