| | |
| | | import WarehouseAreaField from "./WarehouseAreaField"; |
| | | import CrossZoneAreaField from "./CrossZoneAreaField"; |
| | | import ContainerTypesField from "./ContainerTypesField"; |
| | | import ChipArrayField from '@/page/components/ChipArrayField'; |
| | | |
| | | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ |
| | | '& .css-1vooibu-MuiSvgIcon-root': { |
| | |
| | | <DateInput label='common.time.before' source="timeEnd" />, |
| | | |
| | | <TextInput source="stationName" label="table.field.basStation.stationName" alwaysOn />, |
| | | <TextInput source="stationId" label="table.field.basStation.stationId" alwaysOn />, |
| | | <NumberInput source="inAble" label="table.field.basStation.inAble" />, |
| | | <NumberInput source="outAble" label="table.field.basStation.outAble" />, |
| | | <TextInput source="useStatus" label="table.field.basStation.useStatus" />, |
| | |
| | | omit={['id', 'createTime', 'createBy', 'memo', 'updateBy', 'autoTransfer']} |
| | | > |
| | | <NumberField source="id" /> |
| | | <TextField source="type$" label="table.field.basStation.type" /> |
| | | {/* <TextField source="type$" label="table.field.basStation.type" /> */} |
| | | <FunctionField |
| | | source="type" |
| | | label="table.field.basStation.type" |
| | | render={record => record.type === 1 ? '普通站点' : '智能站点'} |
| | | /> |
| | | <TextField source="stationName" label="table.field.basStation.stationName" /> |
| | | <TextField source="stationId" label="table.field.basStation.stationId" /> |
| | | <TextField source="useStatus$" label="table.field.basStation.useStatus" /> |
| | | <TextField source="barcode" label="table.field.basStation.barcode" /> |
| | | <FunctionField |
| | |
| | | render={record => record.inAble === 1 ? '是' : '否'} |
| | | /> |
| | | <WrapperField cellClassName="crossZoneArea" label="table.field.basStation.crossZoneArea"> |
| | | <CrossZoneAreaField |
| | | {/* <CrossZoneAreaField |
| | | open={areaFieldDialog} |
| | | setOpen={setAreaFieldDialog} |
| | | /> */} |
| | | |
| | | <ChipArrayField |
| | | source="areaIds" |
| | | apiEndpoint="/warehouseAreas/many/{ids}" |
| | | labelField="name" |
| | | dialogTitle={translate('table.field.basStation.crossZoneArea')} |
| | | initialDisplayCount={1} |
| | | placeholderText="{count} 个区域" |
| | | /> |
| | | </WrapperField> |
| | | <FunctionField |
| | |
| | | render={record => record.inAble === 1 ? '是' : '否'} |
| | | /> |
| | | <WrapperField cellClassName="containerType" label="table.field.basStation.containerType"> |
| | | <ContainerTypesField |
| | | open={areaFieldDialog2} |
| | | setOpen={setAreaFieldDialog2} |
| | | <ChipArrayField |
| | | source="containerTypes$" |
| | | apiEndpoint="/dictData/many/{ids}" |
| | | labelField="label" |
| | | dialogTitle={translate('table.field.basStation.containerType')} |
| | | initialDisplayCount={1} |
| | | placeholderText="{count} 个区域" |
| | | /> |
| | | </WrapperField> |
| | | <FunctionField |