From 15ed897e0bd9ec3ac56f260e326b21ffd4bafae9 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期五, 13 六月 2025 08:04:25 +0800 Subject: [PATCH] 新增自定义编辑列 新增自定义出库路由 --- rsf-admin/src/page/orders/outStock/OutOrderList.jsx | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/rsf-admin/src/page/orders/outStock/OutOrderList.jsx b/rsf-admin/src/page/orders/outStock/OutOrderList.jsx index a13d58c..955b074 100644 --- a/rsf-admin/src/page/orders/outStock/OutOrderList.jsx +++ b/rsf-admin/src/page/orders/outStock/OutOrderList.jsx @@ -37,6 +37,7 @@ Button, useRedirect, useUnselectAll, + useRecordSelection, } from 'react-admin'; import { Box, Typography, Card, Stack, Drawer } from '@mui/material'; import { styled } from '@mui/material/styles'; @@ -57,6 +58,7 @@ import AddTaskIcon from '@mui/icons-material/AddTask'; import PageEditDrawer from "../../components/PageEditDrawer"; import OutStockPublic from "./OutStockPublic"; +import OutOrderPreview from "./OutOrderPreview"; const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ '& .css-1vooibu-MuiSvgIcon-root': { @@ -114,6 +116,7 @@ const translate = useTranslate(); const [createDialog, setCreateDialog] = useState(false); const [manualDialog, setManualDialog] = useState(false); + const [preview, setPreview] = useState(false); const [drawerVal, setDrawerVal] = useState(false); const [modalType, setmodalType] = useState(0); const [select, setSelect] = useState(0); @@ -191,13 +194,16 @@ <OutOrderModal open={createDialog} setOpen={setCreateDialog} + preview={preview} + setPreview={setPreview} /> + <OutOrderPreview open={preview} setOpen={setPreview} /> <PageEditDrawer title={"toolbar.publicWorking"} drawerVal={drawerVal} setDrawerVal={setDrawerVal} > - <OutStockPublic record={select} open={drawerVal} setOpen={setDrawerVal}/> + <OutStockPublic record={select} open={drawerVal} setOpen={setDrawerVal} /> </PageEditDrawer> </Box > ) @@ -257,7 +263,6 @@ const record = useRecordContext(); const notify = useNotify(); const refresh = useRefresh(); - const createByOrder = async (event) => { event.stopPropagation(); setCreateDialog(true); -- Gitblit v1.9.1