From 158ef0f443b9f36f8beb44853ed1f39449c45c1d Mon Sep 17 00:00:00 2001
From: yangyang
Date: 星期五, 21 三月 2025 10:55:37 +0800
Subject: [PATCH] #修改 1. 动态扩展字段优化 2. 物料优化

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

diff --git a/rsf-admin/src/page/basicInfo/loc/LocCreate.jsx b/rsf-admin/src/page/basicInfo/loc/LocCreate.jsx
index df6e281..00e9108 100644
--- a/rsf-admin/src/page/basicInfo/loc/LocCreate.jsx
+++ b/rsf-admin/src/page/basicInfo/loc/LocCreate.jsx
@@ -31,6 +31,7 @@
 import DialogCloseButton from "../../components/DialogCloseButton";
 import StatusSelectInput from "../../components/StatusSelectInput";
 import MemoInput from "../../components/MemoInput";
+import request from '@/utils/request';
 
 const LocCreate = (props) => {
     const { open, setOpen } = props;
@@ -38,7 +39,6 @@
 
     const translate = useTranslate();
     const notify = useNotify();
-
     const handleClose = (event, reason) => {
         if (reason !== "backdropClick") {
             setOpen(false);
@@ -53,6 +53,9 @@
     const handleError = async (error) => {
         notify(error.message || 'common.response.fail', { type: 'error', messageArgs: { _: error.message } });
     };
+
+
+
 
     return (
         <>
@@ -88,7 +91,7 @@
                             <Grid container rowSpacing={2} columnSpacing={2}>
                                 <Grid item xs={6} display="flex" gap={1}>
                                     <ReferenceInput
-                                        source="warehouseId$"
+                                        source="warehouseId"
                                         reference="warehouse"
                                     >
                                         <AutocompleteInput
@@ -154,7 +157,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"
@@ -173,7 +176,7 @@
                                         source="barcode"
                                         parse={v => v}
                                     />
-                                </Grid>
+                                </Grid> */}
                                 {/* <Grid item xs={6} display="flex" gap={1}>
                                     <TextInput
                                         label="table.field.loc.unit"
@@ -222,7 +225,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"
@@ -254,7 +257,10 @@
                                         parse={v => v}
                                         validate={required()}
                                     />
-                                </Grid>
+                                </Grid> */}
+
+
+
 
                                 <Grid item xs={6} display="flex" gap={1}>
                                     <StatusSelectInput />

--
Gitblit v1.9.1