From 7c040ce1197d50f6af068eb96ca64c682a4618c6 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期六, 20 九月 2025 15:52:52 +0800 Subject: [PATCH] no message --- rsf-admin/src/page/orders/qlyInspect/QlyInspectList.jsx | 32 +++++++++++++++++++------------- 1 files changed, 19 insertions(+), 13 deletions(-) diff --git a/rsf-admin/src/page/orders/qlyInspect/QlyInspectList.jsx b/rsf-admin/src/page/orders/qlyInspect/QlyInspectList.jsx index f9b848c..e741dfc 100644 --- a/rsf-admin/src/page/orders/qlyInspect/QlyInspectList.jsx +++ b/rsf-admin/src/page/orders/qlyInspect/QlyInspectList.jsx @@ -49,6 +49,7 @@ import AsnSelModal from "./AsnSelModal"; import InspectModal from "./InspectModal"; import QlyInspectOpCreate from './QlyInspectOpCreate'; +import ConfirmButton from "../../components/ConfirmButton"; const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ '& .css-1vooibu-MuiSvgIcon-root': { height: '.9em' @@ -61,6 +62,11 @@ '& .opt': { width: 200 }, + '& .MuiTableCell-root': { + whiteSpace: 'nowrap', + overflow: 'visible', + textOverflow: 'unset' + } })); const filters = [ @@ -116,7 +122,7 @@ actions={( <TopToolbar> <AsnCreatButton /> - <MyCreateButton onClick={() => { setOpCreateDialog(true) }} /> + {/* <MyCreateButton onClick={() => { setOpCreateDialog(true) }} /> */} <FilterButton /> <SelectColumnsButton preferenceKey='qlyInspect' /> <MyExportButton /> @@ -129,18 +135,15 @@ bulkActionButtons={<BulkDeleteButton mutationMode={OPERATE_MODE} />} rowClick={false} expandSingle={true} - omit={['id', 'createTime', 'createBy', 'memo', 'asnId', 'statusBool']} + omit={['id', 'createTime', 'createBy', 'memo', 'asnId', 'statusBool','createBy$']} > <NumberField source="id" /> <TextField source="code" label="table.field.qlyInspect.code" /> - <TextField source="isptStatus$" label="table.field.qlyInspect.isptStatus" /> <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" /> <NumberField source="isptQty" label="table.field.qlyInspect.isptQty" /> + <TextField source="isptStatus$" label="table.field.qlyInspect.isptStatus" /> <TextField source="updateBy$" label="common.field.updateBy" /> <DateField source="updateTime" label="common.field.updateTime" showTime /> <TextField source="createBy$" label="common.field.createBy" /> @@ -148,10 +151,10 @@ <BooleanField source="statusBool" label="common.field.status" sortable={false} /> <TextField source="memo" label="common.field.memo" sortable={false} /> <WrapperField cellClassName="opt" label="common.field.opt"> - <EditButton /> + <EditButton label="toolbar.detail" /> <InspectionButton /> <CompleteButton /> - <CloseButton /> + {/* <CloseButton /> */} </WrapperField> </StyledDatagrid> </List> @@ -174,6 +177,12 @@ } export default QlyInspectList; + +const PrintLabelButton = () => { + const record = useRecordContext(); + + +} const InspectionButton = () => { const record = useRecordContext(); @@ -200,7 +209,7 @@ const notify = useNotify(); const refresh = useRefresh(); const requestComplete = async () => { - const { data: { code, data, msg } } = await request.post(`/qlyInspect/update`, { ...record, isptStatus: '1' }); + const { data: { code, data, msg } } = await request.post(`/qlyInspect/verify/complate/` + record?.id); if (code === 200) { notify(msg); refresh() @@ -210,9 +219,7 @@ } return ( - record.isptStatus != 1 && record.isptStatus != 3 ? (<Button onClick={requestComplete} label={"toolbar.complete"} mutationMode={OPERATE_MODE}> - <TaskIcon /> - </Button>) : (<></>) + record.isptStatus == 2 ? (<ConfirmButton label={"toolbar.verifyComfirm"} color="secondary" startIcon={<TaskIcon />} onConfirm={requestComplete} />) : (<></>) ) } @@ -231,7 +238,6 @@ notify(msg); } } - return ( <Button onClick={requestClose} label={"toolbar.close"}> -- Gitblit v1.9.1