From c2f944f370907d26d30f81daa6947d4b2ee2a355 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期六, 22 三月 2025 15:38:00 +0800
Subject: [PATCH] # 绑定bug修复

---
 rsf-admin/src/page/asnOrder/AsnOrderModal.jsx |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/rsf-admin/src/page/asnOrder/AsnOrderModal.jsx b/rsf-admin/src/page/asnOrder/AsnOrderModal.jsx
index 1b23e74..57035a4 100644
--- a/rsf-admin/src/page/asnOrder/AsnOrderModal.jsx
+++ b/rsf-admin/src/page/asnOrder/AsnOrderModal.jsx
@@ -53,6 +53,7 @@
 import { Add, Edit, Delete } from '@mui/icons-material';
 import _ from 'lodash';
 import { DataGrid } from '@mui/x-data-grid';
+import DictionarySelect from "../components/DictionarySelect";
 
 const AsnOrderModal = (props) => {
     const { open, setOpen, asnId } = props;
@@ -84,8 +85,8 @@
 
     const [tabelData, setTableData] = useState([]);
 
-    const handleChange = (e) => {
-        const { name, value } = e.target;
+
+    const handleChange = (value, name) => {
         setFormData((prevData) => ({
             ...prevData,
             [name]: value
@@ -171,20 +172,19 @@
                     </Box>
                 </DialogTitle>
                 <DialogContent sx={{ mt: 2 }}>
-                    <Box component="form" sx={{ display: 'flex', flexDirection: 'column', gap: 3 }}>
-                        <form>
+                    <Box sx={{ display: 'flex', flexDirection: 'column', gap: 3 }}>
+                        <Form>
                             <Grid container spacing={2}>
                                 <Grid item xs={4}>
-                                    <TextField
-                                        label={translate('table.field.asnOrder.type')}
+                                    <DictionarySelect
+                                        label={translate("table.field.asnOrder.type")}
                                         name="type"
                                         value={formData.type}
-                                        onChange={handleChange}
-                                        onBlur={requestSetHead}
-                                        variant="outlined"
+                                        onChange={(e) => handleChange(+e.target.value, 'type')}
                                         size="small"
-                                        required
+                                        dictTypeCode="sys_bill_type"
                                     />
+
                                 </Grid>
 
                                 {/* <Grid item xs={4}>
@@ -198,7 +198,7 @@
                                 />
                             </Grid> */}
                             </Grid>
-                        </form>
+                        </Form>
                     </Box>
 
                     <Box sx={{ mt: 2 }}>
@@ -216,7 +216,7 @@
                 <DialogActions sx={{ position: 'sticky', bottom: 0, backgroundColor: 'background.paper', zIndex: 1000 }}>
                     <Toolbar sx={{ width: '100%', justifyContent: 'space-between' }}  >
                         <Button onClick={handleSubmit} variant="contained" startIcon={<SaveIcon />}>
-                            纭
+                            {translate('toolbar.confirm')}
                         </Button>
                     </Toolbar>
                 </DialogActions>

--
Gitblit v1.9.1