From 97d5b2b888fa5ea92c361077d507444108fa3466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=AE=8F=E6=96=8C?= <2164406372@qq.com> Date: Thu, 28 Aug 2025 15:55:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=A5=E5=BA=93=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E5=8D=95=E6=89=AB=E6=A0=87=E7=AD=BE=E5=90=8E=20?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E4=B8=8B=E4=B8=80=E6=AD=A5=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/pda/transferWarehousingScanLabel.js | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/src/main/resources/static/js/pda/transferWarehousingScanLabel.js b/src/main/resources/static/js/pda/transferWarehousingScanLabel.js index 4980463..0ef0328 100644 --- a/src/main/resources/static/js/pda/transferWarehousingScanLabel.js +++ b/src/main/resources/static/js/pda/transferWarehousingScanLabel.js @@ -156,8 +156,6 @@ function onloadTable(){ layer.msg("入库数量超出通知单数量") labelList.splice(i,1) continue - }else if (totalQty + currentData.finishedQty + row.qty < currentData.lotSize){ - layer.msg("入库数量少于通知单数量") } totalQty += row.qty domStr += ` @@ -210,6 +208,19 @@ function pageJump(){ layer.msg("扫描数量为0") return } + //睡眠标记 + let sleepFlag = false; + //校验数量 + let totalQty = 0; + for (let i = 0; i < labelList.length; i++) { + let row = labelList[i]; + totalQty += row.qty + } + if (totalQty + currentData.finishedQty < currentData.lotSize) { + layer.msg("入库数量少于通知单数量") + sleepFlag = true; + + } // currentData.scanList = [...labelList] currentData = JSON.stringify(currentData); localStorage.removeItem("scanList"); @@ -221,5 +232,12 @@ function pageJump(){ }*/ var menuId = $("#menuId").val(); var superiorName = $("#current_titleName").val(); - window.location.href = "/pda/transferWarehousing2?menuId=" + menuId + "&titleName=" + superiorName; + if (sleepFlag){ + setTimeout(function() { + window.location.href = "/pda/transferWarehousing2?menuId=" + menuId + "&titleName=" + superiorName; + }, 1200); // 1000毫秒=1秒 + }else{ + window.location.href = "/pda/transferWarehousing2?menuId=" + menuId + "&titleName=" + superiorName; + + } } \ No newline at end of file