From 932bd3b979d52a4f9147a63adbe6a258a865ed5f Mon Sep 17 00:00:00 2001
From: verou <857149855@qq.com>
Date: 星期三, 19 三月 2025 17:07:49 +0800
Subject: [PATCH] fix:typeids修改

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

diff --git a/rsf-admin/src/page/basicInfo/loc/LocCreate.jsx b/rsf-admin/src/page/basicInfo/loc/LocCreate.jsx
index 8d4bcf8..092d9cf 100644
--- a/rsf-admin/src/page/basicInfo/loc/LocCreate.jsx
+++ b/rsf-admin/src/page/basicInfo/loc/LocCreate.jsx
@@ -16,6 +16,7 @@
     useDataProvider,
     useNotify,
     Form,
+    SelectArrayInput,
     useCreateController,
 } from 'react-admin';
 import {
@@ -87,7 +88,7 @@
                             <Grid container rowSpacing={2} columnSpacing={2}>
                                 <Grid item xs={6} display="flex" gap={1}>
                                     <ReferenceInput
-                                        source="warehouseId$"
+                                        source="warehouseId"
                                         reference="warehouse"
                                     >
                                         <AutocompleteInput
@@ -133,7 +134,7 @@
                                             validate={[required()]}
                                         />
                                     </ReferenceInput> */}
-                                    <AutocompleteInput
+                                    {/* <AutocompleteInput
                                         choices={dicts}
                                         source="type"
                                         optionText="label"
@@ -141,7 +142,10 @@
                                         optionValue="value"
                                         parse={v => v}
                                         validate={[required()]}
-                                    />
+                                    /> */}
+                                    <ReferenceArrayInput source="typeIds" reference="locType" >
+                                        <SelectArrayInput label="table.field.loc.type" />
+                                    </ReferenceArrayInput>
                                 </Grid>
                                 {/* <Grid item xs={6} display="flex" gap={1}>
                                     <TextInput
@@ -150,7 +154,7 @@
                                         parse={v => v}
                                     />
                                 </Grid> */}
-                                <Grid item xs={6} display="flex" gap={1}>
+                                {/* <Grid item xs={6} display="flex" gap={1}>
                                     <NumberInput
                                         label="table.field.loc.flagLogic"
                                         source="flagLogic"
@@ -169,7 +173,7 @@
                                         source="barcode"
                                         parse={v => v}
                                     />
-                                </Grid>
+                                </Grid> */}
                                 {/* <Grid item xs={6} display="flex" gap={1}>
                                     <TextInput
                                         label="table.field.loc.unit"
@@ -218,7 +222,7 @@
                                         validate={required()}
                                     />
                                 </Grid>
-                                <Grid item xs={6} display="flex" gap={1}>
+                                {/* <Grid item xs={6} display="flex" gap={1}>
                                     <NumberInput
                                         label="table.field.loc.channel"
                                         source="channel"
@@ -250,7 +254,7 @@
                                         parse={v => v}
                                         validate={required()}
                                     />
-                                </Grid>
+                                </Grid> */}
 
                                 <Grid item xs={6} display="flex" gap={1}>
                                     <StatusSelectInput />

--
Gitblit v1.9.1