From f9a1b57d35529f8b8162e6dc7956d7b78375edd4 Mon Sep 17 00:00:00 2001
From: verou <857149855@qq.com>
Date: 星期三, 19 三月 2025 16:17:20 +0800
Subject: [PATCH] fix:货位可多选

---
 rsf-admin/src/page/basicInfo/loc/BatchModal.jsx |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/rsf-admin/src/page/basicInfo/loc/BatchModal.jsx b/rsf-admin/src/page/basicInfo/loc/BatchModal.jsx
index a3448a2..cee27c7 100644
--- a/rsf-admin/src/page/basicInfo/loc/BatchModal.jsx
+++ b/rsf-admin/src/page/basicInfo/loc/BatchModal.jsx
@@ -67,13 +67,14 @@
         'status': null
     });
 
-    const { selectedIds } = useListContext();
+    const { selectedIds, onUnselectItems } = useListContext();
 
     const handleClose = (event, reason) => {
         if (reason !== "backdropClick") {
             setOpen(false);
             reset()
             refresh();
+            onUnselectItems()
         }
     };
 
@@ -150,7 +151,7 @@
                                     label={translate("table.field.loc.type")}
                                     name="type"
                                     value={formData.type}
-                                    onChange={(e) => handleChange(+e.target.value, 'type')}
+                                    onChange={(e) => handleChange(e.target.value, 'type')}
                                     size="small"
                                     dictTypeCode="sys_loc_type"
                                 />

--
Gitblit v1.9.1