| | |
| | | DatagridConfigurable, |
| | | SearchInput, |
| | | TopToolbar, |
| | | SelectColumnsButton, |
| | | ColumnsButton, |
| | | EditButton, |
| | | FilterButton, |
| | | CreateButton, |
| | |
| | | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; |
| | | import * as Common from '@/utils/common'; |
| | | import EditIcon from '@mui/icons-material/Edit'; |
| | | import StickyDataTable from "@/page/components/StickyDataTable"; |
| | | |
| | | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ |
| | | '& .css-1vooibu-MuiSvgIcon-root': { |
| | |
| | | <TopToolbar> |
| | | <FilterButton /> |
| | | <MyCreateButton onClick={() => { setCreateDialog(true) }} /> |
| | | <SelectColumnsButton preferenceKey='warehouseAreas' /> |
| | | <ColumnsButton storeKey='warehouseAreas' /> |
| | | <MyExportButton /> |
| | | </TopToolbar> |
| | | )} |
| | | perPage={DEFAULT_PAGE_SIZE} |
| | | > |
| | | <StyledDatagrid |
| | | preferenceKey='warehouseAreas' |
| | | bulkActionButtons={ |
| | | <> |
| | | {/* <WareButton /> |
| | | <MixButton /> |
| | | <StatusButton /> */} |
| | | <BulkDeleteButton mutationMode={OPERATE_MODE} /> |
| | | </> |
| | | } |
| | | > |
| | | <StickyDataTable |
| | | storeKey='warehouseAreas' |
| | | bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />} |
| | | rowClick={(id, resource, record) => false} |
| | | omit={['id', 'createTime', 'createBy', 'statusBool', 'flagLabelMange$','shipperId$','supplierId', 'updateBy', 'updateTime']} |
| | | stickyRight={['opt']} |
| | | hiddenColumns={['id', 'updateTime', 'updateBy', 'createTime', 'createBy', 'longitude', 'latgitude', 'length', 'width', 'height']} |
| | | > |
| | | <NumberField source="id" /> |
| | | <TextField source="warehouseId$" label="table.field.warehouseAreas.wareId" /> |
| | | <TextField source="code" label="table.field.warehouseAreas.code" /> |
| | | <TextField source="name" label="table.field.warehouseAreas.name" /> |
| | | <TextField source="type$" label="table.field.warehouseAreas.type"/> |
| | | <TextField source="name" label="table.field.warehouseAreas.name" /> |
| | | <TextField source="type$" label="table.field.warehouseAreas.type" /> |
| | | <NumberField source="sort" label="table.field.warehouseAreas.sort" /> |
| | | <TextField source="shipperId$" label="table.field.warehouseAreas.shipperId" /> |
| | | <NumberField source="supplierId" label="table.field.warehouseAreas.supplierId" /> |
| | |
| | | {/* <ReferenceField source="shipperId" label="table.field.warehouseAreas.shipperId" reference="shipper" link={false} sortable={false}> |
| | | <TextField source="name" /> |
| | | </ReferenceField> */} |
| | | </StyledDatagrid> |
| | | |
| | | </StickyDataTable> |
| | | |
| | | </List> |
| | | <WarehouseAreasCreate |
| | | open={createDialog} |