chen.lin
83 分钟以前 91448b5909db3c6e2b747567f0995f18b8129192
rsf-admin/src/page/work/stockTransfer/stockTransferList.jsx
@@ -57,6 +57,7 @@
import AddIcon from '@mui/icons-material/Add';
import DeleteIcon from '@mui/icons-material/Delete';
import request from '@/utils/request';
import { formatQuantity } from '@/utils/common';
import LocItemInfoModal from "../components/locItemInfoModal";
import { Delete } from '@mui/icons-material';
import _, { set } from 'lodash';
@@ -125,7 +126,6 @@
                }
                
            })  
            console.log(newData);
            setTarLocList(newData);         
        }
@@ -182,7 +182,8 @@
                                <Stack direction='row' spacing={2} minWidth={200}>
                                    <SubmitButton
                                        orgLoc={orgLoc}
                                        tarLoc={tarLoc}
                                        tarLoc={tarLoc}
                                        tabelData={tabelData}
                                    />
                                </Stack>
                            </Box>
@@ -213,17 +214,16 @@
    const notify = useNotify();
    const redirect = useRedirect();
    const refresh = useRefresh();
    const { orgLoc, tarLoc } = props;
    const { orgLoc, tarLoc, tabelData } = props;
    const move = () => {
        console.log(orgLoc, tarLoc);
        if (orgLoc === "" || orgLoc === undefined || orgLoc === null) {
            notify("请输入源库位");
            return;
        }
        if (tarLoc === "" || tarLoc === undefined || tarLoc === null) {
            notify("请输入目标库位");
            return;
        }
        // if (tarLoc === "" || tarLoc === undefined || tarLoc === null) {
        //     notify("请输入目标库位");
        //     return;
        // }
        if (tabelData.length === 0) {
            notify("源库位明细无,请检查库位状态");
            return;
@@ -269,14 +269,15 @@
            type: 'number',
            width: 100,
            editable: false,
            valueFormatter: (v) => formatQuantity(v),
        },
        {
            field: 'workQty',
            headerName: translate('table.field.locItem.workQty'),
            width: 100,
            type: 'number',
            editable: false,
        },
        // {
        //     field: 'workQty',
        //     headerName: translate('table.field.locItem.workQty'),
        //     width: 100,
        //     type: 'number',
        //     editable: false,
        // },
        {
            field: 'locCode',
            headerName: translate('table.field.locItem.locCode'),