From fd8c8f8facc58ce1d2dd45b738e8316172c99a85 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期二, 01 四月 2025 12:53:01 +0800 Subject: [PATCH] 1. 质检明细接口修改 2. 任务列表生成修改 --- rsf-admin/src/page/qlyInspect/QlyInspectList.jsx | 32 ++++++++++++++------------------ 1 files changed, 14 insertions(+), 18 deletions(-) diff --git a/rsf-admin/src/page/qlyInspect/QlyInspectList.jsx b/rsf-admin/src/page/qlyInspect/QlyInspectList.jsx index 1808c92..33f00db 100644 --- a/rsf-admin/src/page/qlyInspect/QlyInspectList.jsx +++ b/rsf-admin/src/page/qlyInspect/QlyInspectList.jsx @@ -51,6 +51,7 @@ import AddIcon from '@mui/icons-material/Add'; import request from '@/utils/request'; import AsnSelModal from "./AsnSelModal"; +import InspectModal from "./InspectModal"; const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ '& .css-1vooibu-MuiSvgIcon-root': { @@ -125,7 +126,7 @@ rowClick={(id, resource, record) => false} expand={() => <QlyInspectPanel />} expandSingle={true} - omit={['id', 'createTime', 'createBy', 'memo', 'asnId', 'status']} + omit={['id', 'createTime', 'createBy', 'memo', 'asnId', 'statusBool']} > <NumberField source="id" /> <NumberField source="asnId" label="table.field.qlyInspect.asnId" /> @@ -178,26 +179,21 @@ const record = useRecordContext(); const notify = useNotify(); const refresh = useRefresh(); - const inspection = () => { - // requestInspect([record]) - }; - - // const requestInspect = async (rows) => { - // const { data: { code, data, msg } } = await request.post(`/asnOrder/inspect`, rows); - - // if (code === 200) { - // notify(msg); - // refresh() - // } else { - // notify(msg); - // } - // } + const [createDialog, setCreateDialog] = useState(false); return ( - <Button onClick={inspection} label={"toolbar.quality"}> - <ConstructionIcon /> - </Button> + <> + <Button onClick={() => setCreateDialog(true)} label={"toolbar.quality"}> + <ConstructionIcon /> + </Button> + + <InspectModal + open={createDialog} + setOpen={setCreateDialog} + ispectId={record.id} + /> + </> ) } -- Gitblit v1.9.1