From fe588de6c86e62505bc40e9af153af19e494210c Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期四, 18 六月 2020 13:58:35 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/pakStore/stockAdjust.js | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/static/js/pakStore/stockAdjust.js b/src/main/webapp/static/js/pakStore/stockAdjust.js index 0ff2db5..47b6df3 100644 --- a/src/main/webapp/static/js/pakStore/stockAdjust.js +++ b/src/main/webapp/static/js/pakStore/stockAdjust.js @@ -1,5 +1,7 @@ var initCountVal = 0; +var initAnfmeVal = "-"; var matCodeData = []; +var currLocNo; layui.use(['table','laydate', 'form'], function() { var table = layui.table; var $ = layui.jquery; @@ -78,17 +80,21 @@ $(".retrieve").show(); $("#locMsg").html(locNo + " ,搴撲綅鐘舵�侊細" + data.locType$); $('.not-retrieve').hide(); + currLocNo = locNo; } else { layer.msg("璇疯緭鍏ユ湁鏁堝簱浣嶅彿"); $('.not-retrieve').show(); $("#locMsg").html(""); $(".retrieve").hide(); + currLocNo = null; + inputTip($("#searchLocNo")); } }) } else { $('.not-retrieve').show(); $("#locMsg").html(""); $(".retrieve").hide(); + currLocNo = null; } } }) @@ -96,6 +102,11 @@ // 鎻愬彇鐗╂枡 var matCodeLayerIdx; function getMat() { + if (isEmpty(currLocNo)) { + layer.msg("璇峰厛妫�绱㈠簱浣�") + inputTip($("#searchLocNo")); + return; + } matCodeLayerIdx = layer.open({ type: 2, title: '鎻愬彇鐗╂枡', @@ -113,5 +124,5 @@ el.css("border-color", "red"); setTimeout(function () { el.css("border-color", "#b8b8b8"); - }, 2000); + }, 1000); } -- Gitblit v1.9.1