skyouc
2025-07-17 5a92ae0d5b0de8c05d2605603f08b0a0228d6e56
rsf-admin/src/page/orders/check/CheckOrderPub.jsx
@@ -3,36 +3,14 @@
import {
    List,
    DatagridConfigurable,
    SearchInput,
    TopToolbar,
    Button,
    SelectColumnsButton,
    EditButton,
    FilterButton,
    CreateButton,
    ExportButton,
    BulkDeleteButton,
    WrapperField,
    useRecordContext,
    useTranslate,
    useNotify,
    useListContext,
    FunctionField,
    TextField,
    NumberField,
    DateField,
    BooleanField,
    ReferenceField,
    TextInput,
    DateTimeInput,
    DateInput,
    SelectInput,
    NumberInput,
    ReferenceInput,
    ReferenceArrayInput,
    AutocompleteInput,
    DeleteButton,
    SimpleForm,
    required,
    Form,
    useRefresh,
@@ -85,7 +63,16 @@
            setRows(fetchRows)
        } else {
            const mas = fetchRows.filter(item => selectedMatnr.includes(item.matnrCode));
            setRows(mas)
            console.log(mas);
            let ids =  mas.map(item => item.matnrCode);
            console.log(ids);
            const { data: { code, data, msg } } = request.get('/check/order/items/' + ids );
            if (code === 200) {
                setFetchRows(data)
            } else {
                notify(msg);
            }
            // setRows(mas)
        }
    }, [selectedMatnr])
@@ -139,7 +126,7 @@
        if (formData.waveId == null && formData.waveId == undefined) {
            return
        }
        const { data: { code, data, msg } } = await request.post('/outStock/order/getOutTaskItems', { ...formData });
        const { data: { code, data, msg } } = await request.post('/check/order/items', { ...formData });
        if (code === 200) {
            setFetchRows(data)
        } else {