From 3ec190500044a26e48a3eb4e414e92869595bce8 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期二, 06 五月 2025 13:11:11 +0800 Subject: [PATCH] 单据明细优化 --- rsf-admin/src/page/orders/asnOrder/AsnOrderList.jsx | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/rsf-admin/src/page/orders/asnOrder/AsnOrderList.jsx b/rsf-admin/src/page/orders/asnOrder/AsnOrderList.jsx index 345c3a1..19c2d3f 100644 --- a/rsf-admin/src/page/orders/asnOrder/AsnOrderList.jsx +++ b/rsf-admin/src/page/orders/asnOrder/AsnOrderList.jsx @@ -132,7 +132,7 @@ title={"menu.asnOrder"} empty={false} filters={filters} - filter={{deleted: 0}} + filter={{ deleted: 0 }} sort={{ field: "create_time", order: "desc" }} actions={( <TopToolbar> @@ -183,7 +183,8 @@ <MyButton setCreateDialog={setCreateDialog} setmodalType={setmodalType} /> <InspectionButton /> <CompleteButton /> - <CloseButton /> + <DeleteButton mutationMode="pessimistic" /> + {/* <CloseButton /> */} </WrapperField> </StyledDatagrid> </List> @@ -225,6 +226,7 @@ ) } +//鎶ユ const InspectionButton = () => { const record = useRecordContext(); const notify = useNotify(); @@ -244,11 +246,8 @@ } } - return ( - <Button onClick={inspection} label={"toolbar.inspection"}> - <ConstructionIcon /> - </Button> + <ConfirmButton label={"toolbar.inspection"} color="secondary" startIcon={<ConstructionIcon />} onConfirm={inspection} /> ) } @@ -332,6 +331,7 @@ ) } +//瀹屾垚鍗曟嵁 const CompleteButton = () => { const record = useRecordContext(); const notify = useNotify(); @@ -348,10 +348,10 @@ } return ( - record.exceStatus === 1 && (record.anfme === record.qty ? <Button onClick={requestComplete} label={"toolbar.complete"} color="success"> - <TaskIcon /> - </Button> : <ConfirmButton label={"toolbar.complete"} color="success" data={'褰撳墠鏀惰揣鏁伴噺灏忎簬璁″垝鏁伴噺锛屾槸鍚︾‘璁ゅ畬鎴�'} startIcon={<TaskIcon />} onConfirm={requestComplete} />) - + // record.exceStatus === 1 && (record.anfme === record.qty ? <Button onClick={requestComplete} label={"toolbar.complete"} color="secondary"> + // <TaskIcon /> + // </Button> : ) + <ConfirmButton label={"toolbar.complete"} color="secondary" startIcon={<TaskIcon />} onConfirm={requestComplete} /> ) @@ -373,6 +373,6 @@ } return ( - <ConfirmButton label={"toolbar.close"} color="error" data={'纭鏄惁鍏抽棴锛�'} startIcon={<CloseIcon />} onConfirm={requestClose} /> + <ConfirmButton label={"toolbar.close"} color="error" startIcon={<CloseIcon />} onConfirm={requestClose} /> ) } -- Gitblit v1.9.1