From ad5fef776eb9d66a0fcfc2ddf89698c5642e0eec Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期五, 06 三月 2026 08:36:24 +0800
Subject: [PATCH] 增加一个定时任务。如果拣货出库过程中,相同料箱号,存在(199 ,200)的任务 并且同时存在  101,196的任务 则101和196的任务会 自动变成199

---
 rsf-admin/src/page/components/StatusSelectInput.jsx |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/rsf-admin/src/page/components/StatusSelectInput.jsx b/rsf-admin/src/page/components/StatusSelectInput.jsx
index 46f787c..11031ca 100644
--- a/rsf-admin/src/page/components/StatusSelectInput.jsx
+++ b/rsf-admin/src/page/components/StatusSelectInput.jsx
@@ -5,20 +5,21 @@
 } from 'react-admin';
 
 const StatusSelectInput = (props) => {
+    const { require = true, defaultValue = 1, ...rest } = props
     const translate = useTranslate();
 
     return (
         <SelectInput
             label={translate('common.field.status')}
             source="status"
-            validate={[required()]}
+            validate={[require && required()]}
             choices={[
                 { id: '1', name: 'common.enums.statusTrue' },
                 { id: '0', name: 'common.enums.statusFalse' },
             ]}
-            defaultValue={1}
+            defaultValue={defaultValue}
             helperText={false}
-            {...props}
+            {...rest}
         />
     )
 }

--
Gitblit v1.9.1