From bb69d7a4bdfbb90cde19b3d828f490ab10f2bb43 Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期一, 02 二月 2026 15:44:33 +0800
Subject: [PATCH] 库区增加序号
---
rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx | 31 ++++++++++++++++++++++++++-----
1 files changed, 26 insertions(+), 5 deletions(-)
diff --git a/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx b/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx
index b6d60a2..2062d7d 100644
--- a/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx
+++ b/rsf-admin/src/page/basicInfo/basStation/BasStationCreate.jsx
@@ -32,13 +32,14 @@
import StatusSelectInput from "../../components/StatusSelectInput";
import MemoInput from "../../components/MemoInput";
import DictionarySelect from "../../components/DictionarySelect";
+import DictionaryArraySelect from "../../components/DictionaryArraySelect";
const BasStationCreate = (props) => {
const { open, setOpen } = props;
const translate = useTranslate();
const notify = useNotify();
-
+ const dicts = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_station_type')) || [];
const handleClose = (event, reason) => {
if (reason !== "backdropClick") {
setOpen(false);
@@ -96,6 +97,26 @@
/>
</Grid>
<Grid item xs={6} display="flex" gap={1}>
+ <TextInput
+ label="table.field.basStation.stationId"
+ source="stationId"
+ parse={v => v}
+ autoFocus
+ validate={[required()]}
+ />
+ </Grid>
+ <Grid item xs={6} display="flex" gap={1}>
+ <SelectInput
+ label="table.field.basStation.type"
+ source="type"
+ choices={[
+ { id: 0, name: '鍏夌數' },
+ { id: 1, name: '鏃犲厜鐢�' },
+ ]}
+ validate={[required()]}
+ />
+ </Grid>
+ <Grid item xs={6} display="flex" gap={1}>
<SelectInput
label="table.field.basStation.inAble"
source="inAble"
@@ -127,7 +148,7 @@
/>
</Grid>
<Grid item xs={6} display="flex" gap={1}>
- <ReferenceInput source="area" reference="warehouseAreas">
+ <ReferenceInput source="area" reference="warehouseAreas" sort={{ field: 'sort', order: 'ASC' }}>
<SelectInput
label="table.field.basStation.area"
optionText="name"
@@ -149,7 +170,7 @@
/>
</Grid>
<Grid item xs={6} display="flex" gap={1}>
- <ReferenceArrayInput source="areaIds" reference="warehouseAreas">
+ <ReferenceArrayInput source="areaIds" reference="warehouseAreas" sort={{ field: 'sort', order: 'ASC' }}>
<SelectArrayInput
label="table.field.basStation.crossZoneArea"
optionText="name"
@@ -171,9 +192,9 @@
/>
</Grid>
<Grid item xs={6} display="flex" gap={1}>
- <DictionarySelect
+ <DictionaryArraySelect
label={translate("table.field.basStation.containerType")}
- name="containerType"
+ name="containerTypes"
size="small"
validate={[required()]}
dictTypeCode="sys_container_type"
--
Gitblit v1.9.1