| | |
| | | ReferenceInput, |
| | | AutocompleteInput, |
| | | Button, |
| | | BulkDeleteButton, |
| | | BulkDeleteButton, |
| | | useRedirect, |
| | | } from 'react-admin'; |
| | | import { styled } from '@mui/material/styles'; |
| | |
| | | <AutocompleteInput label="table.field.checkOrder.type" optionValue="value" /> |
| | | </ReferenceInput>, |
| | | <ReferenceInput source="wkType" reference="dictData" filter={{ dictTypeCode: 'sys_check_order_type' }} label="table.field.checkOrder.checkType" alwaysOn> |
| | | <AutocompleteInput label="table.field.checkOrder.checkType" optionValue="value"/> |
| | | <AutocompleteInput label="table.field.checkOrder.checkType" optionValue="value" /> |
| | | </ReferenceInput>, |
| | | <TextInput source="logisNo" label="table.field.checkOrder.logisNo" />, |
| | | <DateInput source="arrTime" label="table.field.checkOrder.arrTime" />, |
| | |
| | | > |
| | | <StyledDatagrid |
| | | preferenceKey='check' |
| | | bulkActionButtons={() => <BulkDeleteButton mutationMode="pessimistic"/>} |
| | | bulkActionButtons={() => <BulkDeleteButton mutationMode="pessimistic" />} |
| | | rowClick={false} |
| | | expandSingle={true} |
| | | omit={['id', 'createTime', 'createBy', 'memo', 'rleStatus$']} |
| | | > |
| | | <NumberField source="id" /> |
| | | <TextField source="code" label="table.field.checkOrder.code" /> |
| | | <TextField source="type$" label="table.field.checkOrder.type" /> |
| | | <TextField cellClassName="wkType" source="checkType$" label="table.field.checkOrder.checkType" /> |
| | | {/* <TextField source="type$" label="table.field.checkOrder.type" /> */} |
| | | <TextField cellClassName="wkType" source="wkType$" label="table.field.checkOrder.type" /> |
| | | <TextField source="checkType$" label="table.field.checkOrder.checkType" /> |
| | | <NumberField source="anfme" label="table.field.checkOrder.anfme" /> |
| | | <NumberField source="workQty" label="table.field.checkOrder.workQty" /> |
| | | <NumberField source="qty" label="table.field.checkOrder.qty" /> |
| | |
| | | drawerVal={drawerVal} |
| | | setDrawerVal={setDrawerVal} |
| | | > |
| | | <CheckOrderPub record={select} open={drawerVal} setOpen={setDrawerVal} /> |
| | | </PageEditDrawer> |
| | | <CheckOrderPub record={select} open={drawerVal} setOpen={setDrawerVal} /> |
| | | </PageEditDrawer> |
| | | </Box > |
| | | ) |
| | | } |