From e98be9d02d12b0453c6267190b86fdbc11fee9fc Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期三, 28 五月 2025 12:38:49 +0800 Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop --- rsf-admin/src/page/work/outBound/OutBoundList.jsx | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/rsf-admin/src/page/work/outBound/OutBoundList.jsx b/rsf-admin/src/page/work/outBound/OutBoundList.jsx index 22aaa44..391ca1d 100644 --- a/rsf-admin/src/page/work/outBound/OutBoundList.jsx +++ b/rsf-admin/src/page/work/outBound/OutBoundList.jsx @@ -189,7 +189,7 @@ 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 { data: { code, data, msg } } = await request.post(`/locItem/generate/task`, { siteNo: sta, items: items }); if (code === 200) { notify(msg); refresh() @@ -222,7 +222,8 @@ width: 100, type: 'number', editable: true, - headerClassName: "custom", + headerClassName: "custom", + }, { field: 'anfme', @@ -315,6 +316,12 @@ const processRowUpdate = (newRow, oldRow) => { + // 纭繚outQty涓嶅皬浜�0 + if (newRow.outQty <= 0) { + notify(translate('request.error.qty_not_negative'), { type: 'error', messageArgs: { _: translate('request.error.qty_not_negative') } }); + return oldRow; // 濡傛灉灏忎簬0锛屼繚鎸佸師鍊间笉鍙� + } + const rows = tabelData.map((r) => r.id === newRow.id ? { ...newRow } : r ) @@ -350,7 +357,7 @@ }} pageSizeOptions={[15, 25, 50, 100]} editMode="row" - checkboxSelection + checkboxSelection = {false} onRowSelectionModelChange={handleSelectionChange} selectionModel={selectedRows} sx={{ -- Gitblit v1.9.1