From 24bee1a669c3f01f4c3ce7c6f4f4e2e37fe3dfe2 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期六, 10 一月 2026 08:34:40 +0800
Subject: [PATCH] #application-dev

---
 rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx |   56 +++++++++++++++++++++++++++++++++++---------------------
 1 files changed, 35 insertions(+), 21 deletions(-)

diff --git a/rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx b/rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx
index 5e83d70..57a42ef 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,8 +66,9 @@
                         </Typography>
                         <Stack direction='row' gap={2}>
                             <TextInput
-                                label="table.field.warehouse.name"
-                                source="name"
+                                label="table.field.warehouse.factory"
+                                source="factory"
+                                validate={[required()]}
                                 parse={v => v}
                                 autoFocus
                             />
@@ -75,31 +77,32 @@
                             <TextInput
                                 label="table.field.warehouse.code"
                                 source="code"
+                                validate={[required()]}
                                 parse={v => v}
                             />
                         </Stack>
                         <Stack direction='row' gap={2}>
                             <TextInput
-                                label="table.field.warehouse.factory"
-                                source="factory"
-                                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.address"
                                 source="address"
+                                // validate={[required()]}
                                 parse={v => v}
                             />
                         </Stack>
-                        <Stack direction='row' gap={2}>
+                        {/* <Stack direction='row' gap={2}>
                             <TextInput
                                 label="table.field.warehouse.longitude"
                                 source="longitude"
                                 parse={v => v}
                             />
-                        </Stack>
-                        <Stack direction='row' gap={2}>
                             <TextInput
                                 label="table.field.warehouse.latgitude"
                                 source="latgitude"
@@ -107,33 +110,44 @@
                             />
                         </Stack>
                         <Stack direction='row' gap={2}>
+
+                        </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> */}
+                        <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="common.field.memo"
+                                source="memo"
+                                // validate={[required()]}
+                                parse={v => v}
+                            />
+                        </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