From df142079833e357624e64bd327e40e1f5f2e8fa9 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期三, 24 三月 2021 17:01:50 +0800 Subject: [PATCH] # --- src/main/webapp/views/pda/stockCheck.html | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/views/pda/stockCheck.html b/src/main/webapp/views/pda/stockCheck.html index 525e933..8107089 100644 --- a/src/main/webapp/views/pda/stockCheck.html +++ b/src/main/webapp/views/pda/stockCheck.html @@ -299,9 +299,13 @@ tips("璐т綅涓嶈兘涓虹┖", true); return; } - if (locDetlData.length === 0) { - tips("璇锋彁鍙栫墿鏂�", true); - return; + if (locDetlData.length > 0) { + for (var i = 0; i<locDetlData.length; i++) { + if (locDetlData[i].count === null || locDetlData[i].count === 0) { + tips(locDetlData[i].matnr + "鍟嗗搧鏁伴噺閿欒", true); + return; + } + } } $.ajax({ url: baseUrl+"/work/stock/check", -- Gitblit v1.9.1