From 9e84e0199af37546a5fe76befdf004fae84ca921 Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期三, 25 二月 2026 13:36:34 +0800
Subject: [PATCH] 站点初始化,批量增加

---
 rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx |   71 +++++++++++++----------------------
 1 files changed, 27 insertions(+), 44 deletions(-)

diff --git a/rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx b/rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx
index 5e83d70..a435337 100644
--- a/rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx
+++ b/rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx
@@ -49,6 +49,7 @@
             mutationMode={EDIT_MODE}
             actions={<CustomerTopToolBar />}
             aside={<EditBaseAside />}
+            title={"menu.warehouse"}
         >
             <SimpleForm
                 shouldUnregister
@@ -65,24 +66,27 @@
                         </Typography>
                         <Stack direction='row' gap={2}>
                             <TextInput
-                                label="table.field.warehouse.name"
-                                source="name"
+                                label="table.field.warehouse.code"
+                                source="code"
+                                validate={[required()]}
                                 parse={v => v}
-                                autoFocus
                             />
                         </Stack>
                         <Stack direction='row' gap={2}>
                             <TextInput
-                                label="table.field.warehouse.code"
-                                source="code"
-                                parse={v => v}
+                                label="table.field.warehouse.name"
+                                source="name"
+                                validate={[required()]}
+                                parse={v => v}                                
                             />
                         </Stack>
                         <Stack direction='row' gap={2}>
                             <TextInput
                                 label="table.field.warehouse.factory"
                                 source="factory"
+                                validate={[required()]}
                                 parse={v => v}
+                                autoFocus
                             />
                         </Stack>
                         <Stack direction='row' gap={2}>
@@ -91,49 +95,28 @@
                                 source="address"
                                 parse={v => v}
                             />
-                        </Stack>
-                        <Stack direction='row' gap={2}>
+                        </Stack>                       
+                        {/* <Stack direction='row' gap={2}>
+                            <SelectInput
+                                label="common.field.status"
+                                source="status"
+                                validate={[required()]}
+                                choices={[
+                                    { id: '1', name: 'common.enums.statusTrue' },
+                                    { id: '0', name: 'common.enums.statusFalse' },
+                                ]}
+                                resettable
+                            />
+                        </Stack> */}
+                          <Stack direction='row' gap={2}>                           
                             <TextInput
-                                label="table.field.warehouse.longitude"
-                                source="longitude"
+                                label="common.field.memo"
+                                source="memo"
                                 parse={v => v}
                             />
                         </Stack>
-                        <Stack direction='row' gap={2}>
-                            <TextInput
-                                label="table.field.warehouse.latgitude"
-                                source="latgitude"
-                                parse={v => v}
-                            />
-                        </Stack>
-                        <Stack direction='row' gap={2}>
-                            <NumberInput
-                                label="table.field.warehouse.length"
-                                source="length"
-                            />
-                        </Stack>
-                        <Stack direction='row' gap={2}>
-                            <NumberInput
-                                label="table.field.warehouse.width"
-                                source="width"
-                            />
-                        </Stack>
-                        <Stack direction='row' gap={2}>
-                            <NumberInput
-                                label="table.field.warehouse.height"
-                                source="height"
-                            />
-                        </Stack>
-
                     </Grid>
-                    <Grid item xs={12} md={4}>
-                        <Typography variant="h6" gutterBottom>
-                            {translate('common.edit.title.common')}
-                        </Typography>
-                        <StatusSelectInput />
-                        <Box mt="2em" />
-                        <MemoInput />
-                    </Grid>
+                    
                 </Grid>
             </SimpleForm>
         </Edit >

--
Gitblit v1.9.1