From 92b62eae6ee68bd693457a16f3bdfb1d684a8fec Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 20 三月 2025 14:37:17 +0800
Subject: [PATCH] #修复 库位修改保存失败修复
---
rsf-admin/src/page/warehouseAreas/WarehouseAreasCreate.jsx | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/rsf-admin/src/page/warehouseAreas/WarehouseAreasCreate.jsx b/rsf-admin/src/page/warehouseAreas/WarehouseAreasCreate.jsx
index 5afb747..f12d4fd 100644
--- a/rsf-admin/src/page/warehouseAreas/WarehouseAreasCreate.jsx
+++ b/rsf-admin/src/page/warehouseAreas/WarehouseAreasCreate.jsx
@@ -117,7 +117,19 @@
/>
</Grid>
<Grid item xs={6} display="flex" gap={1}>
- <ReferenceInput source="shipperId" reference="companys">
+ <ReferenceInput
+ source="wareId"
+ reference="warehouse"
+ >
+ <AutocompleteInput
+ label="table.field.warehouseAreas.wareId"
+ optionText="name"
+ filterToQuery={(val) => ({ name: val })}
+ />
+ </ReferenceInput>
+ </Grid>
+ <Grid item xs={6} display="flex" gap={1}>
+ <ReferenceInput source="shipperId" reference="companys" filter={{ type: 'shipper' }}>
<AutocompleteInput
label="table.field.warehouseAreas.shipperId"
optionText="name"
@@ -126,7 +138,7 @@
</ReferenceInput>
</Grid>
<Grid item xs={6} display="flex" gap={1}>
- <ReferenceInput source="supplierId" reference="companys">
+ <ReferenceInput source="supplierId" reference="companys" filter={{ type: 'supplier' }}>
<AutocompleteInput
label="table.field.warehouseAreas.supplierId"
optionText="name"
--
Gitblit v1.9.1