| | |
| | | TopToolbar, |
| | | SelectColumnsButton, |
| | | EditButton, |
| | | ShowButton, |
| | | FilterButton, |
| | | CreateButton, |
| | | ExportButton, |
| | |
| | | width: 200 |
| | | }, |
| | | })); |
| | | |
| | | const ViewDetailButton = () => ( |
| | | <ShowButton label="查看详情" /> |
| | | ); |
| | | |
| | | const filters = [ |
| | | <SearchInput source="condition" alwaysOn />, |
| | |
| | | <StyledDatagrid |
| | | preferenceKey='waitPakinLog' |
| | | bulkActionButtons={false} |
| | | rowClick={'edit'} |
| | | rowClick={false} |
| | | expand={false} |
| | | expandSingle={true} |
| | | omit={['id', 'createTime', 'createBy', 'memo','statusBool']} |
| | |
| | | <NumberField source="pakinId" label="table.field.waitPakinLog.pakinId" /> |
| | | <TextField source="code" label="table.field.waitPakinLog.code" /> |
| | | <TextField source="barcode" label="table.field.waitPakinLog.barcode" /> |
| | | <NumberField source="anfme" label="table.field.waitPakinLog.anfme" /> |
| | | <NumberField source="anfme" label="table.field.waitPakinLog.anfme" options={{ minimumFractionDigits: 2, maximumFractionDigits: 2 }} /> |
| | | <TextField source="ioStatus$" label="table.field.waitPakinLog.ioStatus" sortable={false} /> |
| | | <ReferenceField source="updateBy" label="common.field.updateBy" reference="user" link={false} sortable={false}> |
| | | <TextField source="nickname" /> |
| | |
| | | <DateField source="createTime" label="common.field.createTime" showTime /> |
| | | <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"> |
| | | <ViewDetailButton /> |
| | | </WrapperField> |
| | | </StyledDatagrid> |
| | | </List> |
| | | <PageDrawer |