From 51e9b24c421dd2e77ec5809a62c35fec115d5876 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期四, 20 三月 2025 14:12:02 +0800 Subject: [PATCH] #添加 1. 添加库位逻辑分区 2. 物料添加自动生成编码 3. 库区字段显示优化 --- rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx | 33 +++++++++++++++++---------------- 1 files changed, 17 insertions(+), 16 deletions(-) diff --git a/rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx b/rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx index 5e83d70..e95a188 100644 --- a/rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx +++ b/rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx @@ -65,30 +65,35 @@ </Typography> <Stack direction='row' gap={2}> <TextInput + label="table.field.warehouse.factory" + source="factory" + validate={[required()]} + parse={v => v} + /> + </Stack> + <Stack direction='row' gap={2}> + <TextInput label="table.field.warehouse.name" source="name" + validate={[required()]} parse={v => v} autoFocus /> </Stack> - <Stack direction='row' gap={2}> + {/* <Stack direction='row' gap={2}> <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} - /> - </Stack> + </Stack> */} + <Stack direction='row' gap={2}> <TextInput label="table.field.warehouse.address" source="address" + validate={[required()]} parse={v => v} /> </Stack> @@ -98,8 +103,6 @@ source="longitude" parse={v => v} /> - </Stack> - <Stack direction='row' gap={2}> <TextInput label="table.field.warehouse.latgitude" source="latgitude" @@ -107,24 +110,22 @@ /> </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> - </Grid> <Grid item xs={12} md={4}> <Typography variant="h6" gutterBottom> -- Gitblit v1.9.1