|  |  | 
 |  |  | import MyCreateButton from "@/page/components/MyCreateButton"; | 
 |  |  | import MyExportButton from '@/page/components/MyExportButton'; | 
 |  |  | import PageEditDrawer from "@/page/components/PageEditDrawer"; | 
 |  |  | import { Box, Typography, Card, Stack } from '@mui/material'; | 
 |  |  | import { Box, Typography, Card, Stack, Switch } from '@mui/material'; | 
 |  |  | import ConfirmButton from '../../components/ConfirmButton'; | 
 |  |  | import LocReviseCreate from "./LocReviseCreate"; | 
 |  |  | import TaskIcon from '@mui/icons-material/Task'; | 
 |  |  | 
 |  |  |     <SelectInput source="type" label="table.field.locRevise.type" | 
 |  |  |         choices={[ | 
 |  |  |             { id: 0, name: ' 库存调整' }, | 
 |  |  |             { id: 2, name: ' 盘点调整' }, | 
 |  |  |             { id: 1, name: ' 盘点调整' }, | 
 |  |  |             { id: 2, name: ' 其它调整' }, | 
 |  |  |         ]} | 
 |  |  |     />, | 
 |  |  |     <NumberInput source="anfme" label="table.field.locRevise.anfme" />, | 
 |  |  | 
 |  |  |                     <NumberField source="id" /> | 
 |  |  |                     <TextField source="code" label="table.field.locRevise.code" /> | 
 |  |  |                     <TextField source="type$" label="table.field.locRevise.type" sortable={false} /> | 
 |  |  |                     <NumberField source="anfme" label="table.field.locRevise.anfme" /> | 
 |  |  |                     <NumberField source="reviseQty" label="table.field.locRevise.reviseQty" /> | 
 |  |  |                     <TextField source="exceStatus$" label="table.field.locRevise.exceStatus" sortable={false} /> | 
 |  |  |                     {/* <NumberField source="anfme" label="table.field.locRevise.anfme" /> | 
 |  |  |                     <NumberField source="reviseQty" label="table.field.locRevise.reviseQty" /> */} | 
 |  |  |                     <NumberField source="areaId" label="table.field.locRevise.areaId" /> | 
 |  |  |                     <TextField source="areaName" label="table.field.locRevise.areaName" /> | 
 |  |  |                     <TextField source="exceStatus$" label="table.field.locRevise.exceStatus" sortable={false} /> | 
 |  |  |                     <TextField source="updateBy$" label="common.field.updateBy" /> | 
 |  |  |                     <DateField source="updateTime" label="common.field.updateTime" showTime /> | 
 |  |  |                     <TextField source="createBy$" label="common.field.createBy" /> | 
 |  |  | 
 |  |  |                     <TextField source="memo" label="common.field.memo" sortable={false} /> | 
 |  |  |                     <WrapperField cellClassName="opt" label="common.field.opt"> | 
 |  |  |                         <EditButton sx={{ padding: '1px', fontSize: '.75rem' }} /> | 
 |  |  |                         <DeleteButton sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} /> | 
 |  |  |                         <DelButton /> | 
 |  |  |                         <CompleteButton /> | 
 |  |  |                     </WrapperField> | 
 |  |  |                 </StyledDatagrid> | 
 |  |  | 
 |  |  |     ) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | const DelButton = () => { | 
 |  |  |     const record = useRecordContext(); | 
 |  |  |     return ( | 
 |  |  |         record?.exceStatus == 0 ? <DeleteButton sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} /> : <></> | 
 |  |  |     ) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | //完成单据 | 
 |  |  | const CompleteButton = () => { | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     return ( | 
 |  |  |         record.exceStatus == 1 ? <ConfirmButton label={"toolbar.complete"} color="secondary" startIcon={<TaskIcon />} onConfirm={requestComplete} /> : <></> | 
 |  |  |         record.exceStatus == 1 ? <ConfirmButton label={"toolbar.confirmTransfer"} color="secondary" startIcon={<TaskIcon />} onConfirm={requestComplete} size="small" /> : <></> | 
 |  |  |     ) | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  | export default LocReviseList; |