From b7b3328fdfa45cf13d1943fa79d47f1b6bb43f01 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期三, 28 五月 2025 18:22:17 +0800
Subject: [PATCH] 添加定时任务用户

---
 rsf-admin/src/page/work/outBound/OutBoundList.jsx |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/rsf-admin/src/page/work/outBound/OutBoundList.jsx b/rsf-admin/src/page/work/outBound/OutBoundList.jsx
index 9fd898b..391ca1d 100644
--- a/rsf-admin/src/page/work/outBound/OutBoundList.jsx
+++ b/rsf-admin/src/page/work/outBound/OutBoundList.jsx
@@ -183,9 +183,9 @@
     }
     const http = async (sta, items) => {
         console.log(items);
-
+        const filZores = items.filter(item => item.outQty  <= 0.0);
         const filter = items.filter(item => (item.outQty + item.workQty) > item.anfme);
-        if (filter.length > 0) {
+        if (filter.length > 0 || filZores.length > 0) {
             notify(translate('toolbar.request.error.out_stock_qty'))
             return
         }
@@ -222,7 +222,8 @@
             width: 100,
             type: 'number',
             editable: true,
-            headerClassName: "custom",
+            headerClassName: "custom",            
+            
         },
         {
             field: 'anfme',
@@ -315,6 +316,12 @@
 
 
     const processRowUpdate = (newRow, oldRow) => {
+        // 纭繚outQty涓嶅皬浜�0
+        if (newRow.outQty <= 0) {
+            notify(translate('request.error.qty_not_negative'), { type: 'error', messageArgs: { _: translate('request.error.qty_not_negative') } });
+            return oldRow; // 濡傛灉灏忎簬0锛屼繚鎸佸師鍊间笉鍙�
+        }
+        
         const rows = tabelData.map((r) =>
             r.id === newRow.id ? { ...newRow } : r
         )
@@ -348,9 +355,9 @@
                         },
                     },
                 }}
-                pageSizeOptions={[10, 25, 50, 100]}
+                pageSizeOptions={[15, 25, 50, 100]}
                 editMode="row"
-                checkboxSelection
+                checkboxSelection = {false}
                 onRowSelectionModelChange={handleSelectionChange}
                 selectionModel={selectedRows}
                 sx={{

--
Gitblit v1.9.1