海运出口 新增 部分

szh-new
张同海 7 months ago
parent a9e94d7d3c
commit 781962f82d

@ -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 = ''

Loading…
Cancel
Save