From 5a92ae0d5b0de8c05d2605603f08b0a0228d6e56 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 17 七月 2025 08:04:46 +0800
Subject: [PATCH] 盘点单下发功能优化

---
 rsf-admin/src/page/orders/check/CheckOrderPub.jsx |   35 +++++++++++------------------------
 1 files changed, 11 insertions(+), 24 deletions(-)

diff --git a/rsf-admin/src/page/orders/check/CheckOrderPub.jsx b/rsf-admin/src/page/orders/check/CheckOrderPub.jsx
index 566d3d0..67af707 100644
--- a/rsf-admin/src/page/orders/check/CheckOrderPub.jsx
+++ b/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 {

--
Gitblit v1.9.1