From bfc43ca0e4683c1c0322a6cad5d5be2bc07decc3 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 24 七月 2025 15:00:44 +0800
Subject: [PATCH] 新增调拔单功能 盘点功能优化

---
 rsf-admin/src/page/basicInfo/companys/CompanysCreate.jsx |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/rsf-admin/src/page/basicInfo/companys/CompanysCreate.jsx b/rsf-admin/src/page/basicInfo/companys/CompanysCreate.jsx
index fea93d5..47f456d 100644
--- a/rsf-admin/src/page/basicInfo/companys/CompanysCreate.jsx
+++ b/rsf-admin/src/page/basicInfo/companys/CompanysCreate.jsx
@@ -36,6 +36,7 @@
 
     const translate = useTranslate();
     const notify = useNotify();
+    const dicts = JSON.parse(localStorage.getItem('sys_dicts'))?.filter(dict => (dict.dictTypeCode == 'sys_companys_type')) || [];
 
     const handleClose = (event, reason) => {
         if (reason !== "backdropClick") {
@@ -89,7 +90,7 @@
                                         label="table.field.companys.code"
                                         source="code"
                                         parse={v => v}
-                                        autoFocus
+                                        readOnly
                                     />
                                 </Grid>
                                 <Grid item xs={6} display="flex" gap={1}>
@@ -114,12 +115,14 @@
                                     />
                                 </Grid>
                                 <Grid item xs={6} display="flex" gap={1}>
-                                    <TextInput
+                                    <AutocompleteInput
+                                        choices={dicts}
+                                        optionText="label"
                                         label="table.field.companys.type"
                                         source="type"
+                                        optionValue="value"
                                         parse={v => v}
-                                        validate={required()}
-                                    />
+                                        validate={[required()]} />
                                 </Grid>
                                 <Grid item xs={6} display="flex" gap={1}>
                                     <TextInput

--
Gitblit v1.9.1