|  |  |  | 
|---|
|  |  |  | import StatusSelectInput from "../../components/StatusSelectInput"; | 
|---|
|  |  |  | import MemoInput from "../../components/MemoInput"; | 
|---|
|  |  |  | import DictionarySelect from "../../components/DictionarySelect"; | 
|---|
|  |  |  | import DictionaryArraySelect from "../../components/DictionaryArraySelect"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const BasStationCreate = (props) => { | 
|---|
|  |  |  | const { open, setOpen } = props; | 
|---|
|  |  |  | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | <Grid item xs={6} display="flex" gap={1}> | 
|---|
|  |  |  | <ReferenceInput source="area" reference="warehouseAreas"> | 
|---|
|  |  |  | <SelectInput | 
|---|
|  |  |  | <SelectInput | 
|---|
|  |  |  | label="table.field.basStation.area" | 
|---|
|  |  |  | optionText="name" | 
|---|
|  |  |  | optionValue="id" | 
|---|
|  |  |  | fullWidth | 
|---|
|  |  |  | validate={[required()]} | 
|---|
|  |  |  | fullWidth | 
|---|
|  |  |  | validate={[required()]} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </ReferenceInput> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | <Grid item xs={6} display="flex" gap={1}> | 
|---|
|  |  |  | <SelectInput | 
|---|
|  |  |  | label="table.field.basStation.isCrossZone" | 
|---|
|  |  |  | source="isCrossZone" | 
|---|
|  |  |  | choices={[ | 
|---|
|  |  |  | { id: 0, name: '否' }, | 
|---|
|  |  |  | { id: 1, name: '是' }, | 
|---|
|  |  |  | ]} | 
|---|
|  |  |  | validate={[required()]} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | <SelectInput | 
|---|
|  |  |  | label="table.field.basStation.isCrossZone" | 
|---|
|  |  |  | source="isCrossZone" | 
|---|
|  |  |  | choices={[ | 
|---|
|  |  |  | { id: 0, name: '否' }, | 
|---|
|  |  |  | { id: 1, name: '是' }, | 
|---|
|  |  |  | ]} | 
|---|
|  |  |  | validate={[required()]} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | <Grid item xs={6} display="flex" gap={1}> | 
|---|
|  |  |  | <ReferenceArrayInput source="areaIds" reference="warehouseAreas"> | 
|---|
|  |  |  | <SelectArrayInput | 
|---|
|  |  |  | label="table.field.basStation.crossZoneArea" | 
|---|
|  |  |  | optionText="name" | 
|---|
|  |  |  | optionValue="id" | 
|---|
|  |  |  | fullWidth | 
|---|
|  |  |  | validate={[required()]} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </ReferenceArrayInput> | 
|---|
|  |  |  | <ReferenceArrayInput source="areaIds" reference="warehouseAreas"> | 
|---|
|  |  |  | <SelectArrayInput | 
|---|
|  |  |  | label="table.field.basStation.crossZoneArea" | 
|---|
|  |  |  | optionText="name" | 
|---|
|  |  |  | optionValue="id" | 
|---|
|  |  |  | fullWidth | 
|---|
|  |  |  | validate={[required()]} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </ReferenceArrayInput> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | <Grid item xs={6} display="flex" gap={1}> | 
|---|
|  |  |  | <SelectInput | 
|---|
|  |  |  | label="table.field.basStation.isWcs" | 
|---|
|  |  |  | source="isWcs" | 
|---|
|  |  |  | choices={[ | 
|---|
|  |  |  | { id: 0, name: '否' }, | 
|---|
|  |  |  | { id: 1, name: '是' }, | 
|---|
|  |  |  | ]} | 
|---|
|  |  |  | validate={[required()]} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | <SelectInput | 
|---|
|  |  |  | label="table.field.basStation.isWcs" | 
|---|
|  |  |  | source="isWcs" | 
|---|
|  |  |  | choices={[ | 
|---|
|  |  |  | { id: 0, name: '否' }, | 
|---|
|  |  |  | { id: 1, name: '是' }, | 
|---|
|  |  |  | ]} | 
|---|
|  |  |  | validate={[required()]} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | <Grid item xs={6} display="flex" gap={1}> | 
|---|
|  |  |  | <DictionarySelect | 
|---|
|  |  |  | label={translate("table.field.basStation.containerType")} | 
|---|
|  |  |  | name="containerType" | 
|---|
|  |  |  | size="small" | 
|---|
|  |  |  | validate={[required()]} | 
|---|
|  |  |  | dictTypeCode="sys_container_type" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | <DictionaryArraySelect | 
|---|
|  |  |  | label={translate("table.field.basStation.containerType")} | 
|---|
|  |  |  | name="containerTypes" | 
|---|
|  |  |  | size="small" | 
|---|
|  |  |  | validate={[required()]} | 
|---|
|  |  |  | dictTypeCode="sys_container_type" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | <Grid item xs={6} display="flex" gap={1}> | 
|---|
|  |  |  | <SelectInput | 
|---|
|  |  |  | label="table.field.basStation.autoTransfer" | 
|---|
|  |  |  | source="autoTransfer" | 
|---|
|  |  |  | choices={[ | 
|---|
|  |  |  | { id: 0, name: '否' }, | 
|---|
|  |  |  | { id: 1, name: '是' }, | 
|---|
|  |  |  | ]} | 
|---|
|  |  |  | validate={[required()]} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | <SelectInput | 
|---|
|  |  |  | label="table.field.basStation.autoTransfer" | 
|---|
|  |  |  | source="autoTransfer" | 
|---|
|  |  |  | choices={[ | 
|---|
|  |  |  | { id: 0, name: '否' }, | 
|---|
|  |  |  | { id: 1, name: '是' }, | 
|---|
|  |  |  | ]} | 
|---|
|  |  |  | validate={[required()]} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <Grid item xs={12} display="flex" gap={1}> | 
|---|