From 668590b860e572990b357747f39810e955823caf Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期一, 19 五月 2025 20:16:53 +0800
Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop
---
rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx | 97 +++++++++++++++++++++++++-----------------------
1 files changed, 51 insertions(+), 46 deletions(-)
diff --git a/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx b/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx
index fa8921b..b6d60a2 100644
--- a/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx
+++ b/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx
@@ -92,6 +92,7 @@
source="stationName"
parse={v => v}
autoFocus
+ validate={[required()]}
/>
</Grid>
<Grid item xs={6} display="flex" gap={1}>
@@ -102,6 +103,7 @@
{ id: 0, name: '鍚�' },
{ id: 1, name: '鏄�' },
]}
+ validate={[required()]}
/>
</Grid>
<Grid item xs={6} display="flex" gap={1}>
@@ -112,6 +114,7 @@
{ id: 0, name: '鍚�' },
{ id: 1, name: '鏄�' },
]}
+ validate={[required()]}
/>
</Grid>
<Grid item xs={6} display="flex" gap={1}>
@@ -125,65 +128,67 @@
</Grid>
<Grid item xs={6} display="flex" gap={1}>
<ReferenceInput source="area" reference="warehouseAreas">
- <SelectInput
+ <SelectInput
label="table.field.basStation.area"
optionText="name"
optionValue="id"
- fullWidth
- validate={[required()]}
+ fullWidth
+ validate={[required()]}
/>
</ReferenceInput>
</Grid>
<Grid item xs={6} display="flex" gap={1}>
- <SelectInput
- label="table.field.basStation.isCrossZone"
- source="isCrossZone"
- choices={[
- { id: 0, name: '鍚�' },
- { id: 1, name: '鏄�' },
- ]}
- validate={[required()]}
- />
+ <SelectInput
+ label="table.field.basStation.isCrossZone"
+ source="isCrossZone"
+ choices={[
+ { id: 0, name: '鍚�' },
+ { id: 1, name: '鏄�' },
+ ]}
+ validate={[required()]}
+ />
</Grid>
<Grid item xs={6} display="flex" gap={1}>
- <ReferenceArrayInput source="areaIds" reference="warehouseAreas">
- <SelectArrayInput
- label="table.field.basStation.crossZoneArea"
- optionText="name"
- optionValue="id"
- fullWidth
- />
- </ReferenceArrayInput>
+ <ReferenceArrayInput source="areaIds" reference="warehouseAreas">
+ <SelectArrayInput
+ label="table.field.basStation.crossZoneArea"
+ optionText="name"
+ optionValue="id"
+ fullWidth
+ validate={[required()]}
+ />
+ </ReferenceArrayInput>
</Grid>
<Grid item xs={6} display="flex" gap={1}>
- <SelectInput
- label="table.field.basStation.isWcs"
- source="isWcs"
- choices={[
- { id: 0, name: '鍚�' },
- { id: 1, name: '鏄�' },
- ]}
- validate={[required()]}
- />
- </Grid>
+ <SelectInput
+ label="table.field.basStation.isWcs"
+ source="isWcs"
+ choices={[
+ { id: 0, name: '鍚�' },
+ { id: 1, name: '鏄�' },
+ ]}
+ validate={[required()]}
+ />
+ </Grid>
<Grid item xs={6} display="flex" gap={1}>
- <DictionarySelect
- label={translate("table.field.basStation.containerType")}
- name="containerType"
- size="small"
- validate={[required()]}
- dictTypeCode="sys_container_type"
- />
- </Grid>
+ <DictionarySelect
+ label={translate("table.field.basStation.containerType")}
+ name="containerType"
+ size="small"
+ validate={[required()]}
+ dictTypeCode="sys_container_type"
+ />
+ </Grid>
<Grid item xs={6} display="flex" gap={1}>
- <SelectInput
- label="table.field.basStation.autoTransfer"
- source="autoTransfer"
- choices={[
- { id: 0, name: '鍚�' },
- { id: 1, name: '鏄�' },
- ]}
- />
+ <SelectInput
+ label="table.field.basStation.autoTransfer"
+ source="autoTransfer"
+ choices={[
+ { id: 0, name: '鍚�' },
+ { id: 1, name: '鏄�' },
+ ]}
+ validate={[required()]}
+ />
</Grid>
<Grid item xs={12} display="flex" gap={1}>
--
Gitblit v1.9.1