|
|
|
@ -433,35 +433,24 @@ export const basicInfoFormSchema: FormSchema[] = [
|
|
|
|
|
FnsourceDetailId.data.forEach((e) => {
|
|
|
|
|
ListData.sourceDetailId.push({ label: e.detailName, value: e.id })
|
|
|
|
|
})
|
|
|
|
|
updateSchema(
|
|
|
|
|
// {
|
|
|
|
|
// label: '来源明细',
|
|
|
|
|
// field: 'sourceDetailId',
|
|
|
|
|
// component: 'Select',
|
|
|
|
|
// required: false,
|
|
|
|
|
// dynamicDisabled: ({ values }) => {
|
|
|
|
|
// return !values.sourceId
|
|
|
|
|
// },
|
|
|
|
|
// colProps: { span: 4 },
|
|
|
|
|
// componentProps: {
|
|
|
|
|
// allowClear: true,
|
|
|
|
|
// options: ListData.sourceDetailId,
|
|
|
|
|
// showSearch: true,
|
|
|
|
|
// filterOption: (input: string, option: any) => {
|
|
|
|
|
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// }
|
|
|
|
|
{
|
|
|
|
|
field: 'bookingNo',
|
|
|
|
|
label: '订舱编号',
|
|
|
|
|
component: 'Input',
|
|
|
|
|
updateSchema({
|
|
|
|
|
label: '来源明细',
|
|
|
|
|
field: 'sourceDetailId',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
required: false,
|
|
|
|
|
dynamicDisabled: false,
|
|
|
|
|
defaultValue: '',
|
|
|
|
|
dynamicDisabled: ({ values }) => {
|
|
|
|
|
return !values.sourceId
|
|
|
|
|
},
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
allowClear: true,
|
|
|
|
|
options: ListData.sourceDetailId,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
formModel.sourceDetailId = ''
|
|
|
|
|