| | |
| | | <CreateBase |
| | | record={{}} |
| | | transform={(data) => { |
| | | return data; |
| | | return { |
| | | ...data, |
| | | containerTypes: Array.isArray(data.containerTypes) ? data.containerTypes.map(Number) : data.containerTypes |
| | | }; |
| | | }} |
| | | mutationOptions={{ onSuccess: handleSuccess, onError: handleError }} |
| | | > |
| | |
| | | /> |
| | | </Grid> |
| | | <Grid item xs={6} display="flex" gap={1}> |
| | | <ReferenceArrayInput source="areaIds" reference="warehouseAreas" sort={{ field: 'sort', order: 'ASC' }}> |
| | | <ReferenceArrayInput source="crossZoneArea" reference="warehouseAreas" sort={{ field: 'sort', order: 'ASC' }}> |
| | | <SelectArrayInput |
| | | label="table.field.basStation.crossZoneArea" |
| | | optionText="name" |
| | |
| | | optionText="stationName" |
| | | optionValue="id" |
| | | fullWidth |
| | | // validate={(value) => { |
| | | // if (value && value.length > 1) { |
| | | // return '只能选择一个模板'; |
| | | // } |
| | | // return undefined; |
| | | // }} |
| | | /> |
| | | </ReferenceArrayInput> |
| | | </Grid> |