From 9bec566884971e1241aaaa61aac5eed8bcfa0dd3 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期一, 21 四月 2025 08:01:57 +0800
Subject: [PATCH] no message

---
 rsf-admin/src/page/basicInfo/loc/BindModal.jsx |   35 +++++++++++++++++++++--------------
 1 files changed, 21 insertions(+), 14 deletions(-)

diff --git a/rsf-admin/src/page/basicInfo/loc/BindModal.jsx b/rsf-admin/src/page/basicInfo/loc/BindModal.jsx
index 6213698..38854f7 100644
--- a/rsf-admin/src/page/basicInfo/loc/BindModal.jsx
+++ b/rsf-admin/src/page/basicInfo/loc/BindModal.jsx
@@ -2,6 +2,7 @@
 import {
     CreateBase,
     useTranslate,
+    SearchInput,
     TextInput,
     NumberInput,
     BooleanInput,
@@ -55,7 +56,6 @@
 import request from '@/utils/request';
 import { Add, Edit, Delete } from '@mui/icons-material';
 import _ from 'lodash';
-import { DataGrid } from '@mui/x-data-grid';
 import StatusSelectInput from "../../components/StatusSelectInput";
 import TreeSelectInput from "@/page/components/TreeSelectInput";
 import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_ITEM_PAGE_SIZE } from '@/config/setting';
@@ -71,6 +71,10 @@
     '& .column-name': {
     },
 }));
+
+const filters = [
+  <SearchInput source="condition" alwaysOn />
+]
 
 const MatnrModal = ({ open, setOpen }) => {
     const refresh = useRefresh();
@@ -130,12 +134,12 @@
             groupId: formData.groupId,
             matnrId: formData.matnrId,
         }
-        const res = await request.post(`/locAreaMatRela/matnr/bind`, parmas);
-        if (res?.data?.code === 200) {
-            handleClose()
-        } else {
-            notify(res.data.msg);
-        }
+        // const res = await request.post(`/locAreaMatRela/matnr/bind`, parmas);
+        // if (res?.data?.code === 200) {
+        //     handleClose()
+        // } else {
+        //     notify(res.data.msg);
+        // }
     }
 
     const [groupId, setGroupId] = useState();
@@ -143,15 +147,17 @@
         setGroupId(e.target.value)
     }
 
+
+
     return (
-        <Dialog open={open} maxWidth="xl" fullWidth>
+        <Dialog open={open} maxWidth="1" fullWidth>
             <Form onSubmit={handleSubmit}>
                 <DialogCloseButton onClose={handleClose} />
                 <DialogTitle>{translate('toolbar.bindmatnr')}</DialogTitle>
                 <DialogContent sx={{ mt: 2 }}>
-                    <Box sx={{ display: 'flex', flexDirection: 'column', gap: 3, height: 700 }}>
+                    <Box sx={{ display: 'flex', flexDirection: 'column', gap: 3, height: 900 }}>
                         <Grid container spacing={2}>
-                            <Grid item xs={4}>
+                            <Grid item xs={3}>
                                 <ReferenceInput
                                     source="areaMatId"
                                     reference="locAreaMat"
@@ -166,7 +172,7 @@
                                     />
                                 </ReferenceInput>
                             </Grid>
-                            <Grid item xs={4}>
+                            <Grid item xs={3}>
                                 <TreeSelectInput
                                     label="table.field.locAreaMatRela.groupId"
                                     resource={'matnrGroup'}
@@ -180,14 +186,15 @@
                             <List
                                 resource="matnr"
                                 filter={{ groupId: formData.groupId }}
+                                queryOptions={{}}
+                                // filters={filters}
                                 empty={false}
                                 actions={<></>}
                             >
                                 <StyledDatagrid
                                     preferenceKey='matnr'
                                     bulkActionButtons={<></>}
-                                    onSelectAll={{limit: 1000}}
-                                    rowClick={(id, resource, record) => { }}
+                                    rowClick={false}
                                     omit={['id', 'createTime', 'createBy', 'memo', 'poDetlId', 'matnrId', 'asnId']}
                                 >
                                     <NumberField key="id" source="id" />,
@@ -221,7 +228,7 @@
                     </Box>
                 </DialogContent>
                 <DialogActions sx={{ position: 'sticky', bottom: 0, backgroundColor: 'background.paper', zIndex: 1000 }}>
-                    <Box sx={{ width: '100%', display: 'flex', justifyContent: 'space-between' }}>
+                    <Box sx={{ width: '100%', display: 'flex', justifyContent: 'end' }}>
                         <Button type="submit" variant="contained" startIcon={<SaveIcon />}>
                             {translate('toolbar.confirm')}
                         </Button>

--
Gitblit v1.9.1