From ebc705fe5482feff811d526b5c6377bab223ea30 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期二, 25 二月 2025 09:20:23 +0800
Subject: [PATCH] #

---
 rsf-admin/src/page/loc/LocCreate.jsx |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/rsf-admin/src/page/loc/LocCreate.jsx b/rsf-admin/src/page/loc/LocCreate.jsx
index da401b5..e47f97b 100644
--- a/rsf-admin/src/page/loc/LocCreate.jsx
+++ b/rsf-admin/src/page/loc/LocCreate.jsx
@@ -85,12 +85,17 @@
                         <DialogContent sx={{ mt: 2 }}>
                             <Grid container rowSpacing={2} columnSpacing={2}>
                                 <Grid item xs={6} display="flex" gap={1}>
-                                    <NumberInput
-                                        label="table.field.loc.areaId"
+                                    <ReferenceInput
                                         source="areaId"
-                                        autoFocus
-                                        validate={required()}
-                                    />
+                                        reference="warehouseAreas"
+                                    >
+                                        <AutocompleteInput
+                                            label="table.field.loc.areaId"
+                                            optionText="name"
+                                            validate={[required()]}
+                                            filterToQuery={(val) => ({ name: val })}
+                                        />
+                                    </ReferenceInput>
                                 </Grid>
                                 <Grid item xs={6} display="flex" gap={1}>
                                     <TextInput
@@ -152,7 +157,7 @@
                                 <Grid item xs={6} display="flex" gap={1}>
                                     <NumberInput
                                         label="table.field.loc.row"
-                                        source="row"
+                                        source="lrow"
                                         validate={required()}
                                     />
                                 </Grid>

--
Gitblit v1.9.1