| | |
| | | bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />} |
| | | rowClick={(id, resource, record) => false} |
| | | expandSingle={true} |
| | | omit={['id', 'createTime', 'createBy', 'memo', 'updateBy', 'autoTransfer']} |
| | | omit={['id', 'createTime', 'createBy', 'createBy$', 'memo', 'updateBy$', 'updateTime', 'autoTransfer', 'isCrossZone', 'isWcs', 'area$', 'memo']} |
| | | > |
| | | <NumberField source="id" /> |
| | | {/* <TextField source="type$" label="table.field.basStation.type" /> */} |
| | | {/* <TextField source="type$" label="table.field.basStation.type" /> */} |
| | | <TextField source="stationName" label="table.field.basStation.stationName" /> |
| | | <TextField source="stationId" label="table.field.basStation.stationId" /> |
| | | <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" /> |
| | | <WrapperField cellClassName="containerType" label="table.field.basStation.containerType"> |
| | | <ChipArrayField |
| | | source="containerTypes$" |
| | | apiEndpoint="/dictData/many/{ids}" |
| | | labelField="label" |
| | | dialogTitle={translate('table.field.basStation.containerType')} |
| | | initialDisplayCount={1} |
| | | placeholderText="{count} 个区域" |
| | | /> |
| | | </WrapperField> |
| | | <TextField source="barcode" label="table.field.basStation.barcode" /> |
| | | <FunctionField |
| | | source="inAble" |
| | |
| | | open={areaFieldDialog} |
| | | setOpen={setAreaFieldDialog} |
| | | /> */} |
| | | |
| | | <ChipArrayField |
| | | source="areaIds" |
| | | apiEndpoint="/warehouseAreas/many/{ids}" |
| | |
| | | label="table.field.basStation.isWcs" |
| | | render={record => record.inAble === 1 ? '是' : '否'} |
| | | /> |
| | | <WrapperField cellClassName="containerType" label="table.field.basStation.containerType"> |
| | | <ChipArrayField |
| | | source="containerTypes$" |
| | | apiEndpoint="/dictData/many/{ids}" |
| | | labelField="label" |
| | | dialogTitle={translate('table.field.basStation.containerType')} |
| | | initialDisplayCount={1} |
| | | placeholderText="{count} 个区域" |
| | | /> |
| | | </WrapperField> |
| | | <FunctionField |
| | | source="autoTransfer" |
| | | label="table.field.basStation.autoTransfer" |
| | |
| | | <DateField source="updateTime" label="common.field.updateTime" showTime /> |
| | | <TextField source="createBy$" label="common.field.createBy" /> |
| | | <DateField source="createTime" label="common.field.createTime" showTime /> |
| | | <BooleanField source="statusBool" label="common.field.status" sortable={false} /> |
| | | {/* <BooleanField source="statusBool" label="common.field.status" sortable={false} /> */} |
| | | <TextField source="memo" label="common.field.memo" sortable={false} /> |
| | | <WrapperField cellClassName="opt" label="common.field.opt"> |
| | | <EditButton sx={{ padding: '1px', fontSize: '.75rem' }} /> |