|  |  |  | 
|---|
|  |  |  | import CloseSharpIcon from '@mui/icons-material/CloseSharp'; | 
|---|
|  |  |  | import ConfirmButton from '../../components/ConfirmButton'; | 
|---|
|  |  |  | import { Delete, Edit, Add } from '@mui/icons-material'; | 
|---|
|  |  |  | import OutStockSiteDialog from "./OutStockSiteDialog"; | 
|---|
|  |  |  | import CheckOrderSiteDialog from "./CheckOrderSiteDialog"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ | 
|---|
|  |  |  | '& .css-1vooibu-MuiSvgIcon-root': { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | const { data: { code, data, msg } } = await request.post('/outStock/order/getOutTaskItems', { ...formData }); | 
|---|
|  |  |  | if (code === 200) { | 
|---|
|  |  |  | // setRows(data) | 
|---|
|  |  |  | setFetchRows(data) | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | notify(msg); | 
|---|
|  |  |  | 
|---|
|  |  |  | </ReferenceInput> | 
|---|
|  |  |  | </Form> | 
|---|
|  |  |  | <List | 
|---|
|  |  |  | resource="outStockItem" | 
|---|
|  |  |  | storeKey='outStockItem' | 
|---|
|  |  |  | resource="checkItem" | 
|---|
|  |  |  | storeKey='checkItem' | 
|---|
|  |  |  | sx={{ | 
|---|
|  |  |  | flexGrow: 1, | 
|---|
|  |  |  | transition: (theme) => | 
|---|
|  |  |  | 
|---|
|  |  |  | duration: theme.transitions.duration.enteringScreen, | 
|---|
|  |  |  | }), | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | title={"menu.outStockItem"} | 
|---|
|  |  |  | title={"menu.checkItem"} | 
|---|
|  |  |  | empty={false} | 
|---|
|  |  |  | filter={{ asnId: record?.id, deleted: 0 }} | 
|---|
|  |  |  | filter={{ orderId: record?.id, deleted: 0 }} | 
|---|
|  |  |  | sort={{ field: "create_time", order: "desc" }} | 
|---|
|  |  |  | actions={false} | 
|---|
|  |  |  | pagination={false} | 
|---|
|  |  |  | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | <StyledDatagrid | 
|---|
|  |  |  | storeKey={"outStockPublic"} | 
|---|
|  |  |  | preferenceKey='outStockItem' | 
|---|
|  |  |  | preferenceKey='checkItem' | 
|---|
|  |  |  | bulkActionButtons={<> | 
|---|
|  |  |  | <ComfirmButton /> | 
|---|
|  |  |  | </>} | 
|---|
|  |  |  | omit={['id', 'splrName', 'qty', 'poCode',]} | 
|---|
|  |  |  | omit={['id', 'splrName', 'qty',]} | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <NumberField source="id" /> | 
|---|
|  |  |  | <TextField source="asnCode" label="table.field.outStockItem.asnCode" /> | 
|---|
|  |  |  | <TextField source="poCode" label="table.field.outStockItem.poCode" /> | 
|---|
|  |  |  | <TextField source="orderCode" label="table.field.outStockItem.orderCode" /> | 
|---|
|  |  |  | <TextField source="matnrCode" label="table.field.outStockItem.matnrCode" /> | 
|---|
|  |  |  | <TextField source="maktx" label="table.field.outStockItem.maktx" /> | 
|---|
|  |  |  | <NumberField source="anfme" label="table.field.outStockItem.anfme" /> | 
|---|
|  |  |  | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | <Grid> | 
|---|
|  |  |  | <OutStockSiteDialog | 
|---|
|  |  |  | <CheckOrderSiteDialog | 
|---|
|  |  |  | selectedValue={selectedValue} | 
|---|
|  |  |  | open={dialog} | 
|---|
|  |  |  | onClose={handleClose} | 
|---|