| | |
| | | SimpleForm, |
| | | required, |
| | | Form, |
| | | SaveButton, |
| | | useRefresh, |
| | | useGetList, |
| | | useGetOne, |
| | | } from 'react-admin'; |
| | | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE, DEFAULT_ITEM_PAGE_SIZE } from '@/config/setting'; |
| | | import { styled } from '@mui/material/styles'; |
| | | import { DataGrid } from '@mui/x-data-grid'; |
| | | import request from '@/utils/request'; |
| | | import DictSelect from "../../components/DictSelect"; |
| | | import ConfirmationNumberOutlinedIcon from '@mui/icons-material/ConfirmationNumberOutlined'; |
| | | import CloseSharpIcon from '@mui/icons-material/CloseSharp'; |
| | | |
| | | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ |
| | | '& .css-1vooibu-MuiSvgIcon-root': { |
| | |
| | | '& .RaDatagrid-row': { |
| | | cursor: 'auto' |
| | | }, |
| | | '& .column-maktx': { |
| | | width: 200 |
| | | } |
| | | })); |
| | | |
| | | |
| | | const OutStockPublic = (props) => { |
| | | const { record, open } = props; |
| | | const notify = useNotify(); |
| | | const translate = useTranslate(); |
| | | const [formData, setFormData] = useState({ |
| | | orderId: record?.id |
| | | }); |
| | | const translate = useTranslate(); |
| | | |
| | | useEffect(() => { |
| | | getWaveRule() |
| | | }, [formData, open]) |
| | |
| | | if (formData.waveId == null && formData.waveId == undefined) { |
| | | return |
| | | } |
| | | const res = await request.post('/outStock/order/getOutTaskItems', {...formData}); |
| | | const res = await request.post('/outStock/order/getOutTaskItems', { ...formData }); |
| | | if (res?.data?.code === 200) { |
| | | setRows(res.data.data.records) |
| | | } else { |
| | |
| | | empty={false} |
| | | filter={{ asnId: record?.id, deleted: 0 }} |
| | | sort={{ field: "create_time", order: "desc" }} |
| | | actions={false} |
| | | actions={( |
| | | <SelectColumnsButton preferenceKey='outStock' /> |
| | | )} |
| | | perPage={DEFAULT_ITEM_PAGE_SIZE} |
| | | > |
| | | <LinearProgress |
| | |
| | | preferenceKey='outStockItem' |
| | | bulkActionButtons={false} |
| | | rowClick={false} |
| | | omit={['id', 'splrName', 'qty', 'poCode']} |
| | | omit={['id', 'splrName', 'qty', 'poCode', 'workQty']} |
| | | > |
| | | <NumberField source="id" /> |
| | | <TextField source="asnCode" label="table.field.outStockItem.asnCode" /> |
| | |
| | | disableRowSelectionOnClick |
| | | /> |
| | | </Box> |
| | | <Box sx={{ textAlign: 'center' }}> |
| | | <Button label="toolbar.close" variant="outlined" size="medium" startIcon={<CloseSharpIcon />} sx={{ margin: '3.5em' }} /> |
| | | <Button label="toolbar.confirm" variant="contained" size="medium" startIcon={<ConfirmationNumberOutlinedIcon />} /> |
| | | </Box> |
| | | </Card> |
| | | </Grid> |
| | | </Grid> |