From b07a6193d605fdf3154bf81faed0244030679b60 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期三, 19 三月 2025 16:49:09 +0800
Subject: [PATCH] #修改 1.添加库位类型绑定 2.物料添加动态字段
---
rsf-admin/src/page/basicInfo/matnr/MatnrList.jsx | 31 ++++++++++++++++++++++++++++---
1 files changed, 28 insertions(+), 3 deletions(-)
diff --git a/rsf-admin/src/page/basicInfo/matnr/MatnrList.jsx b/rsf-admin/src/page/basicInfo/matnr/MatnrList.jsx
index 4182da5..af3b2c8 100644
--- a/rsf-admin/src/page/basicInfo/matnr/MatnrList.jsx
+++ b/rsf-admin/src/page/basicInfo/matnr/MatnrList.jsx
@@ -50,7 +50,9 @@
import MatListAside from './MatnrListAside';
import { display, height } from "@mui/system";
import DashboardIcon from '@mui/icons-material/Dashboard';
+import EditIcon from '@mui/icons-material/Edit';
import request from '@/utils/request';
+import BatchModal from './BatchModal';
const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({
'& .css-1vooibu-MuiSvgIcon-root': {
@@ -64,7 +66,7 @@
width: '200px'
},
'& .RaList-main': {
- minHeight: '80vh'
+ minHeight: '90vh'
},
'& .column-name': {
},
@@ -147,7 +149,7 @@
const { isLoading } = useListContext();
return (
- <Box sx={{ position: 'relative', minHeight: "40vh", }}>
+ <Box sx={{ position: 'relative', minHeight: "60vh", }}>
{isLoading && (
<LinearProgress
sx={{
@@ -162,7 +164,7 @@
<StyledDatagrid
preferenceKey='matnr'
- bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />}
+ bulkActionButtons={<> <BatchButton /><BulkDeleteButton mutationMode={OPERATE_MODE} /></>}
rowClick={(id, resource, record) => false}
expand={() => <MatnrPanel />}
expandSingle={true}
@@ -304,4 +306,27 @@
</Button>)
)
+}
+
+const BatchButton = () => {
+ const record = useRecordContext();
+ const notify = useNotify();
+ const refresh = useRefresh();
+
+
+ const [createDialog, setCreateDialog] = useState(false);
+
+ return (
+ <>
+ <Button onClick={() => setCreateDialog(true)} label={"toolbar.batch"}>
+ <EditIcon />
+ </Button>
+
+ <BatchModal
+ open={createDialog}
+ setOpen={setCreateDialog}
+ />
+ </>
+
+ )
}
\ No newline at end of file
--
Gitblit v1.9.1