From ef69d3bad0c7f03da11cb1c1e46a84bcebe02bc4 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期二, 25 三月 2025 10:44:48 +0800 Subject: [PATCH] 修改 # 物料分组编码规则优化 --- rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx | 30 ++++++++++++++++-------------- 1 files changed, 16 insertions(+), 14 deletions(-) diff --git a/rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx b/rsf-admin/src/page/basicInfo/warehouse/WarehouseEdit.jsx index 5e83d70..c04ccc1 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,17 @@ </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 /> @@ -75,20 +85,16 @@ <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 direction='row' gap={2}> <TextInput label="table.field.warehouse.address" source="address" + validate={[required()]} parse={v => v} /> </Stack> @@ -98,8 +104,6 @@ source="longitude" parse={v => v} /> - </Stack> - <Stack direction='row' gap={2}> <TextInput label="table.field.warehouse.latgitude" source="latgitude" @@ -107,24 +111,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