From b0409a8bac61d91d6db8755b15d4e2b9c4e3973c Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期四, 05 六月 2025 15:56:11 +0800 Subject: [PATCH] 出库单取消功能优化 --- rsf-admin/src/page/work/outBound/OutBoundList.jsx | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/rsf-admin/src/page/work/outBound/OutBoundList.jsx b/rsf-admin/src/page/work/outBound/OutBoundList.jsx index fda04e4..2a6494e 100644 --- a/rsf-admin/src/page/work/outBound/OutBoundList.jsx +++ b/rsf-admin/src/page/work/outBound/OutBoundList.jsx @@ -183,13 +183,13 @@ } const http = async (sta, items) => { console.log(items); - const filZores = items.filter(item => item.outQty <= 0.0); - const filter = items.filter(item => (item.outQty + item.workQty) > item.anfme); - if (filter.length > 0 || filZores.length > 0) { - notify(translate('toolbar.request.error.out_stock_qty')) - return - } - const { data: { code, data, msg } } = await request.post(`/locItem/check/task`, { siteNo: sta, items: items }); + // const filZores = items.filter(item => item.outQty <= 0.0); + // const filter = items.filter(item => (item.outQty + item.workQty) > item.anfme); + // if (filter.length > 0 || filZores.length > 0) { + // notify(translate('toolbar.request.error.out_stock_qty')) + // return + // } + const { data: { code, data, msg } } = await request.post(`/locItem/generate/task`, { siteNo: sta, items: items }); if (code === 200) { notify(msg); refresh() @@ -232,13 +232,13 @@ width: 100, editable: false, }, - { - field: 'workQty', - headerName: translate('table.field.locItem.workQty'), - width: 100, - type: 'number', - editable: false, - }, + // { + // field: 'workQty', + // headerName: translate('table.field.locItem.workQty'), + // width: 100, + // type: 'number', + // editable: false, + // }, { field: 'locCode', headerName: translate('table.field.locItem.locCode'), @@ -357,7 +357,7 @@ }} pageSizeOptions={[15, 25, 50, 100]} editMode="row" - checkboxSelection + checkboxSelection = {false} onRowSelectionModelChange={handleSelectionChange} selectionModel={selectedRows} sx={{ -- Gitblit v1.9.1