From cc2984eeb289b54cfa193dde558417c46f309e8f Mon Sep 17 00:00:00 2001
From: DESKTOP-LMJ82IJ\Eno <creaycat@gmail.com>
Date: 星期日, 13 四月 2025 19:32:38 +0800
Subject: [PATCH] #修改 1. 采购单界面优化及修改

---
 rsf-admin/src/page/components/DictionarySelect.jsx |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/rsf-admin/src/page/components/DictionarySelect.jsx b/rsf-admin/src/page/components/DictionarySelect.jsx
index 2a0a428..0eb2fab 100644
--- a/rsf-admin/src/page/components/DictionarySelect.jsx
+++ b/rsf-admin/src/page/components/DictionarySelect.jsx
@@ -2,13 +2,13 @@
 import { useState, useEffect } from 'react';
 import {
     Button, useListContext, SelectInput,
-    required,
+    required, SelectArrayInput,
     useTranslate, useNotify
 } from 'react-admin';
 import request from '@/utils/request';
 
 const DictionarySelect = (props) => {
-    const { dictTypeCode, name, ...parmas } = props;
+    const { dictTypeCode, name, multiple = false, ...parmas } = props;
     const translate = useTranslate();
     const notify = useNotify();
     const [list, setList] = useState([])
@@ -31,14 +31,15 @@
             notify(res.data.msg);
         }
     }
+    const InputComponent = multiple ? SelectArrayInput : SelectInput;
 
     return (
-        <SelectInput
+        <InputComponent
             source={name}
             choices={list}
-
             {...parmas}
         />
+
     );
 };
 

--
Gitblit v1.9.1