|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const CheckDiffList = () => { | 
|---|
|  |  |  | const translate = useTranslate(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const [createDialog, setCreateDialog] = useState(false); | 
|---|
|  |  |  | const [drawerVal, setDrawerVal] = useState(false); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | marginRight: !!drawerVal ? `${PAGE_DRAWER_WIDTH}px` : 0, | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | title={"menu.checkDiff"} | 
|---|
|  |  |  | empty={<EmptyData onClick={() => { setCreateDialog(true) }} />} | 
|---|
|  |  |  | empty={false} | 
|---|
|  |  |  | filters={filters} | 
|---|
|  |  |  | sort={{ field: "create_time", order: "desc" }} | 
|---|
|  |  |  | actions={( | 
|---|
|  |  |  | 
|---|
|  |  |  | preferenceKey='checkDiff' | 
|---|
|  |  |  | bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />} | 
|---|
|  |  |  | rowClick={(id, resource, record) => false} | 
|---|
|  |  |  | expand={() => <CheckDiffPanel />} | 
|---|
|  |  |  | expandSingle={true} | 
|---|
|  |  |  | expand={false} | 
|---|
|  |  |  | expandSingle={false} | 
|---|
|  |  |  | omit={['id', 'createTime', 'createBy', 'memo']} | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <NumberField source="id" /> | 
|---|
|  |  |  | 
|---|
|  |  |  | <NumberField source="anfme" label="table.field.checkDiff.anfme" /> | 
|---|
|  |  |  | <NumberField source="checkQty" label="table.field.checkDiff.checkQty" /> | 
|---|
|  |  |  | {/* <NumberField source="exceStatus" label="table.field.checkDiff.exceStatus" /> */} | 
|---|
|  |  |  | <NumberField source="updateBy¥" label="common.field.updateBy" /> | 
|---|
|  |  |  | <NumberField source="createBy$" label="common.field.updateBy" /> | 
|---|
|  |  |  | <NumberField source="updateBy$" label="common.field.updateBy" /> | 
|---|
|  |  |  | <NumberField source="createBy$" label="common.field.createBy" /> | 
|---|
|  |  |  | <DateField source="updateTime" label="common.field.updateTime" showTime /> | 
|---|
|  |  |  | <DateField source="createTime" label="common.field.createTime" showTime /> | 
|---|
|  |  |  | <BillStatusField cellClassName="status" source="exceStatus" label="table.field.checkOrder.exceStatus" /> | 
|---|
|  |  |  | 
|---|
|  |  |  | <WrapperField cellClassName="opt" label="common.field.opt"> | 
|---|
|  |  |  | <EditButton sx={{ padding: '1px', fontSize: '.75rem' }} /> | 
|---|
|  |  |  | {/* <DeleteButton sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} /> */} | 
|---|
|  |  |  | <CheckButton /> | 
|---|
|  |  |  | </WrapperField> | 
|---|
|  |  |  | </StyledDatagrid> | 
|---|
|  |  |  | </List> | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | export default CheckDiffList; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const CheckButton = () => { | 
|---|
|  |  |  | const record = useRecordContext(); | 
|---|
|  |  |  | const handleEditClick = (btn) => { | 
|---|
|  |  |  | btn.stopPropagation() | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return ( | 
|---|
|  |  |  | <ConfirmButton label={"ra.action.approved"} startIcon={<ApiOutlinedIcon />} onConfirm={handleEditClick} size={"small"} /> | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | } | 
|---|