From d086af5559dba52095d23e425be87d8f11f24814 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期四, 17 七月 2025 16:32:47 +0800
Subject: [PATCH] #菜单、po单

---
 rsf-admin/src/page/basicInfo/deviceSite/InitModal.jsx |   56 ++++++++++++++++++++++++++++++++++----------------------
 1 files changed, 34 insertions(+), 22 deletions(-)

diff --git a/rsf-admin/src/page/basicInfo/deviceSite/InitModal.jsx b/rsf-admin/src/page/basicInfo/deviceSite/InitModal.jsx
index 1cc4b81..9d5545b 100644
--- a/rsf-admin/src/page/basicInfo/deviceSite/InitModal.jsx
+++ b/rsf-admin/src/page/basicInfo/deviceSite/InitModal.jsx
@@ -95,7 +95,7 @@
 
 
     return (
-        <Dialog open={open} maxWidth="md" fullWidth>
+        <Dialog open={open} maxWidth="lg" fullWidth>
             <Form onSubmit={handleSubmit}>
                 <DialogCloseButton onClose={handleClose} />
                 <DialogTitle>{translate('toolbar.siteInit')}</DialogTitle>
@@ -117,42 +117,54 @@
                                     label={translate("table.field.deviceSite.device")}
                                     name="deviceType"
                                     dictTypeCode="sys_device_type"
-                                    multiple
                                 />
                             </Grid>
-
-
                             <Grid item xs={4}>
                                 <TextInput
-                                    label={translate("table.field.deviceSite.deviceCode")}
-                                    name="deviceCode"
+                                    label={translate("table.field.deviceSite.channel")}
+                                    name="channel"
                                     size="small"
                                     type="number"
                                 />
                             </Grid>
-
+                            <Grid item xs={4}>
+                            <ReferenceInput
+                                source="deviceSites"
+                                reference="basStation"                               
+                            >
+                                <SelectInput
+                                    label="table.field.deviceSite.deviceSite"
+                                    optionText="stationName"
+                                    optionValue="stationName"                                   
+                                />
+                            </ReferenceInput>                                
+                            </Grid>
+                            <Grid item xs={4}>
+                            <ReferenceInput
+                                source="site"
+                                reference="basStation"                                
+                            >
+                                <SelectInput
+                                    label="table.field.deviceSite.site"
+                                    optionText="stationName"
+                                    optionValue="stationName"                                    
+                                />
+                            </ReferenceInput> 
+                                
+                            </Grid>
                             <Grid item xs={4}>
                                 <TextInput
-                                    label={translate("table.field.deviceSite.deviceSite")}
-                                    name="deviceSites"
+                                    label={translate("table.field.deviceSite.target")}
+                                    name="target"
+                                    placeholder={translate('common.action.inputPlaceholder')}
                                     size="small"
-                                    type="number"
+                                // type="number"
                                 />
                             </Grid>
-
-                            <Grid item xs={4}>
-                                <TextInput
-                                    label={translate("table.field.deviceSite.sites")}
-                                    name="sites"
-                                    size="small"
-                                    type="number"
-                                />
-                            </Grid>
-
                             <Grid item xs={4}>
                                 <SelectInput
-                                    label="table.field.deviceSite.flagInitu"
-                                    source="flagInitu"
+                                    label="table.field.deviceSite.flagInit"
+                                    source="flagInit"
                                     choices={[
                                         { id: 0, name: '鍚�' },
                                         { id: 1, name: '鏄�' },

--
Gitblit v1.9.1