From 65529902083f0c2c8ef86576a104880827be1884 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期三, 02 四月 2025 14:24:55 +0800 Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop --- rsf-admin/src/page/qlyInspect/QlyInspectList.jsx | 38 +++++++++++++++++--------------------- 1 files changed, 17 insertions(+), 21 deletions(-) diff --git a/rsf-admin/src/page/qlyInspect/QlyInspectList.jsx b/rsf-admin/src/page/qlyInspect/QlyInspectList.jsx index 1808c92..b30ce29 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,14 +126,14 @@ 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" /> - <NumberField source="asnCode" label="table.field.qlyInspect.asnCode" /> <TextField source="code" label="table.field.qlyInspect.code" /> <TextField source="isptStatus$" label="table.field.qlyInspect.isptStatus" /> - <TextField source="wkType" label="table.field.qlyInspect.wkType" /> + <TextField source="wkType$" label="table.field.qlyInspect.wkType" /> + <NumberField source="asnId" label="table.field.qlyInspect.asnId" /> + <NumberField source="asnCode" label="table.field.qlyInspect.asnCode" /> <NumberField source="safeQty" label="table.field.qlyInspect.safeQty" /> <NumberField source="dlyQty" label="table.field.qlyInspect.dlyQty" /> <NumberField source="rcptQty" label="table.field.qlyInspect.rcptQty" /> @@ -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