skyouc
2025-08-01 9e502880847d2b798d956ba36a92f9cbdec4f823
rsf-admin/src/page/orders/transfer/CreateBySelectMats.jsx
@@ -37,7 +37,7 @@
const CreateBySelectMats = (props) => {
    const { open, setOpen, data, setData } = props;
    const { open, setOpen, data, setData, queryForm } = props;
    const [page, setPage] = useState({ page: DEFAULT_START_PAGE, pageSize: DEFAULT_PAGE_SIZE });
    const [rowCount, setRowCount] = useState(0);
    const [isLoading, setIsLoading] = useState(false);
@@ -49,7 +49,7 @@
    const translate = useTranslate();
    const notify = useNotify();
    const refresh = useRefresh();
    const handleClose = (event, reason) => {
        if (reason !== "backdropClick") {
            setOpen(false);
@@ -97,13 +97,15 @@
    };
    const getData = async () => {
        setIsLoading(true)
        const res = await request.post(`/transfer/locs/items`, {
        let params = {
            ...formData,
            orgAreaId: queryForm?.orgAreaId,
            current: page?.page,
            pageSize: page?.pageSize,
            orderBy: "create_time desc"
        });
        };
        setIsLoading(true)
        const res = await request.post(`/transfer/locs/items`, params);
        if (res?.data?.code === 200) {
            const { data } = res.data;
            setTableData(data?.records);
@@ -130,7 +132,7 @@
            aria-labelledby="form-dialog-title"
            fullWidth
            disableRestoreFocus
            maxWidth="lg"
            maxWidth="xl"
        >
            <DialogTitle id="form-dialog-title" sx={{
                position: 'sticky',
@@ -170,7 +172,7 @@
                    </Grid>
                </Box>
                <Box sx={{ mt: 2, height: 400, width: '100%' }}>
                <Box sx={{ mt: 2, height: 600, width: '100%' }}>
                    <SelectMatsTableView
                        tableData={tableData}
                        setTableData={setTableData}
@@ -228,8 +230,6 @@
        });
        if (res?.data?.code === 200) {
            const { data } = res.data;
            console.log('====-->');
            console.log(data);
            setTableData(data?.records);
            setRowCount(data?.total);
@@ -272,7 +272,7 @@
    }
    return (
        <div style={{ height: 400, width: '100%' }}>
        <div style={{ height: 590, width: '100%' }}>
            <DataGrid
                rows={tableData}
                rowCount={rowCount}