From 37467bf7d119ef9b599f1c19b869d046d730b7cb Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期日, 27 四月 2025 18:27:56 +0800
Subject: [PATCH] 修改优化   1. 波次生成修改优化    2. 出库库位查找 优化

---
 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