From a4112a5d31fa3a66daafdc009ff3b3047bb98f67 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期六, 24 五月 2025 17:14:04 +0800
Subject: [PATCH] #巷道
---
rsf-admin/src/page/work/outBound/OutBoundList.jsx | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/rsf-admin/src/page/work/outBound/OutBoundList.jsx b/rsf-admin/src/page/work/outBound/OutBoundList.jsx
index 22aaa44..4616e6e 100644
--- a/rsf-admin/src/page/work/outBound/OutBoundList.jsx
+++ b/rsf-admin/src/page/work/outBound/OutBoundList.jsx
@@ -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
)
@@ -350,7 +357,7 @@
}}
pageSizeOptions={[15, 25, 50, 100]}
editMode="row"
- checkboxSelection
+ checkboxSelection = {false}
onRowSelectionModelChange={handleSelectionChange}
selectionModel={selectedRows}
sx={{
--
Gitblit v1.9.1