From b8a67d701995d8b578e7c87617a5b8cd9b13a9db Mon Sep 17 00:00:00 2001
From: 1 <1@123>
Date: 星期六, 07 三月 2026 10:00:02 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/devlop-phyz' into devlop-phyz
---
rsf-admin/src/page/basStationArea/BasStationAreaCreate.jsx | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/rsf-admin/src/page/basStationArea/BasStationAreaCreate.jsx b/rsf-admin/src/page/basStationArea/BasStationAreaCreate.jsx
index a8cf3e4..1d9be34 100644
--- a/rsf-admin/src/page/basStationArea/BasStationAreaCreate.jsx
+++ b/rsf-admin/src/page/basStationArea/BasStationAreaCreate.jsx
@@ -60,7 +60,10 @@
<CreateBase
record={{}}
transform={(data) => {
- return data;
+ return {
+ ...data,
+ containerTypes: Array.isArray(data.containerTypes) ? data.containerTypes.map(Number) : data.containerTypes
+ };
}}
mutationOptions={{ onSuccess: handleSuccess, onError: handleError }}
>
@@ -96,7 +99,7 @@
/>
</Grid>
<Grid item xs={6} display="flex" gap={1}>
- <ReferenceArrayInput source="areaIds" reference="warehouseAreas" sort={{ field: 'sort', order: 'ASC' }}>
+ <ReferenceArrayInput source="crossZoneArea" reference="warehouseAreas" sort={{ field: 'sort', order: 'ASC' }}>
<SelectArrayInput
label="table.field.basStation.crossZoneArea"
optionText="name"
@@ -108,7 +111,7 @@
<Grid item xs={6} display="flex" gap={1}>
<DictionaryArraySelect
label={translate("table.field.basStation.containerType")}
- name="containerTypes"
+ name="containerType"
size="small"
validate={[required()]}
dictTypeCode="sys_container_type"
@@ -129,12 +132,6 @@
optionText="stationName"
optionValue="id"
fullWidth
- // validate={(value) => {
- // if (value && value.length > 1) {
- // return '鍙兘閫夋嫨涓�涓ā鏉�';
- // }
- // return undefined;
- // }}
/>
</ReferenceArrayInput>
</Grid>
--
Gitblit v1.9.1