|  |  | 
 |  |  |     SearchInput, | 
 |  |  |     TopToolbar, | 
 |  |  |     SelectColumnsButton, | 
 |  |  |     EditButton, | 
 |  |  |     FilterButton, | 
 |  |  |     CreateButton, | 
 |  |  |     ExportButton, | 
 |  |  |     BulkDeleteButton, | 
 |  |  |     WrapperField, | 
 |  |  |     useRecordContext, | 
 |  |  |     useTranslate, | 
 |  |  |     useNotify, | 
 |  |  |     useListContext, | 
 |  |  |     FunctionField, | 
 |  |  |     TextField, | 
 |  |  |     NumberField, | 
 |  |  |     DateField, | 
 |  |  |     BooleanField, | 
 |  |  |     ReferenceField, | 
 |  |  |     TextInput, | 
 |  |  |     DateTimeInput, | 
 |  |  |     DateInput, | 
 |  |  |     SelectInput, | 
 |  |  |     NumberInput, | 
 |  |  |     ReferenceInput, | 
 |  |  |     ReferenceArrayInput, | 
 |  |  |     AutocompleteInput, | 
 |  |  |     DeleteButton, | 
 |  |  |     useGetRecordId, | 
 |  |  |     Button, | 
 |  |  |     useRefresh, | 
 |  |  | } from 'react-admin'; | 
 |  |  | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; | 
 |  |  | import PauseCircleOutlineIcon from '@mui/icons-material/PauseCircleOutline'; | 
 |  |  | import StopCircleOutlinedIcon from '@mui/icons-material/StopCircleOutlined'; | 
 |  |  | import PlayArrowOutlinedIcon from '@mui/icons-material/PlayArrowOutlined'; | 
 |  |  | import { Box, Typography, Card, Stack } from '@mui/material'; | 
 |  |  | import ContentCreate from '@mui/icons-material/Create'; | 
 |  |  | import PageDrawer from "../../components/PageDrawer"; | 
 |  |  | import { styled } from '@mui/material/styles'; | 
 |  |  | import WaveItemCreate from "./WaveItemCreate"; | 
 |  |  | import EmptyData from "../../components/EmptyData"; | 
 |  |  | import MyCreateButton from "../../components/MyCreateButton"; | 
 |  |  | import MyExportButton from '../../components/MyExportButton'; | 
 |  |  | import PageDrawer from "../../components/PageDrawer"; | 
 |  |  | import WaveItemEdit from "./WaveItemEdit"; | 
 |  |  | import MyField from "../../components/MyField"; | 
 |  |  | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; | 
 |  |  | import * as Common from '@/utils/common'; | 
 |  |  | import ContentCreate from '@mui/icons-material/Create'; | 
 |  |  | import PlayArrowOutlinedIcon from '@mui/icons-material/PlayArrowOutlined'; | 
 |  |  | import PauseCircleOutlineIcon from '@mui/icons-material/PauseCircleOutline'; | 
 |  |  | import request from '@/utils/request'; | 
 |  |  |  | 
 |  |  | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ | 
 |  |  |     '& .css-1vooibu-MuiSvgIcon-root': { | 
 |  |  |         height: '.9em' | 
 |  |  | 
 |  |  |     '& .column-name': { | 
 |  |  |     }, | 
 |  |  |     '& .opt': { | 
 |  |  |         width: 200 | 
 |  |  |         width: 140 | 
 |  |  |     }, | 
 |  |  | })); | 
 |  |  |  | 
 |  |  | 
 |  |  |             > | 
 |  |  |                 <StyledDatagrid | 
 |  |  |                     preferenceKey='waveItem' | 
 |  |  |                     bulkActionButtons= { | 
 |  |  |                         <> | 
 |  |  |                             <BulkStartButton /> | 
 |  |  |                             <BulkPauseButton /> | 
 |  |  |                         </> | 
 |  |  |                     } | 
 |  |  |                     bulkActionButtons={false} | 
 |  |  |                     rowClick={(id, resource, record) => false} | 
 |  |  |                     expand={false} | 
 |  |  |                     expandSingle={false} | 
 |  |  |                     omit={['id', 'createTime', 'matnrId', 'waveId', 'batch', 'orderItemId', 'fieldsIndex', 'createBy', 'memo']} | 
 |  |  |                     omit={['id', 'createTime', 'matnrId', 'waveId', 'batch', 'orderItemId', 'fieldsIndex', 'createBy']} | 
 |  |  |                 > | 
 |  |  |                     <NumberField source="id" /> | 
 |  |  |                     <NumberField source="waveId" label="table.field.waveItem.waveId" /> | 
 |  |  | 
 |  |  |                     <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} /> | 
 |  |  |                     <TextField source="exceStatus$" label="table.field.waveItem.exceStatus" /> | 
 |  |  |                     <TextField source="memo" label="common.field.memo" sortable={false} /> | 
 |  |  |                 </StyledDatagrid> | 
 |  |  |             </List> | 
 |  |  | 
 |  |  |         event.stopPropagation() | 
 |  |  |         setEditDialog(true) | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     return ( | 
 |  |  |         <Button label="ra.action.edit" onClick={editClick} startIcon={<ContentCreate />} /> | 
 |  |  |     ) | 
 |  |  |  | 
 |  |  | } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | const BulkStartButton = () => { | 
 |  |  |     const { data, selectedIds, onUnselectItems } = useListContext(); | 
 |  |  |  | 
 |  |  |     const startClick = () => { | 
 |  |  |         onUnselectItems() | 
 |  |  |     } | 
 |  |  |     return ( | 
 |  |  |         <Button label="toolbar.start" onClick={startClick} startIcon={<PlayArrowOutlinedIcon />} variant="outlined" /> | 
 |  |  |     ) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | const BulkPauseButton = () => { | 
 |  |  |     const { data, selectedIds, onUnselectItems } = useListContext(); | 
 |  |  |  | 
 |  |  |     const pauseClick = () => { | 
 |  |  |         onUnselectItems() | 
 |  |  |     } | 
 |  |  |     return ( | 
 |  |  |         <Button label="toolbar.pause" onClick={pauseClick} startIcon={<PauseCircleOutlineIcon />} variant="outlined" /> | 
 |  |  |     ) | 
 |  |  | } |