From d79692c7b03e3b96016598ac03766c29ca094709 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 22 六月 2020 15:34:55 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/pakStore/locMove.js | 30 ++++++++++++++++-------------- 1 files changed, 16 insertions(+), 14 deletions(-) diff --git a/src/main/webapp/static/js/pakStore/locMove.js b/src/main/webapp/static/js/pakStore/locMove.js index 1730885..581bc6d 100644 --- a/src/main/webapp/static/js/pakStore/locMove.js +++ b/src/main/webapp/static/js/pakStore/locMove.js @@ -4,7 +4,6 @@ var table = layui.table; var $ = layui.jquery; var layer = layui.layer; - var layDate = layui.laydate; var form = layui.form; // 鏁版嵁娓叉煋 @@ -14,8 +13,8 @@ // url: baseUrl+'/locDetl/list/auth', data:[], page: true, - limit: 10, - skin: 'line', + limit: 16, + limits: [16, 50, 100, 200, 500], even: true, cellMinWidth: 50, cols: [[ @@ -66,23 +65,26 @@ }); // 鎼滅储搴撲綅鐗╂枡 -function getLoc() { - let locNo = $("#locNo\\$").val(); - if (locNo === undefined || locNo === null || locNo === "") { - layer.msg("璇峰~鍐欏簱浣嶅彿"); - $('.search-input').css("border-color", "red"); - setTimeout(function () { - $('.search-input').css("border-color", "#b8b8b8"); - }, 2000); - return; - } +function getLoc(el) { tableIns.reload({ url: baseUrl+'/locDetl/list/auth' - , where: {loc_no: locNo} + , where: {loc_no: el.value} , done:function (res) { limit(); } }); + http.post(baseUrl + "/locMast/"+el.value+"/auth", null, function (res) { + if (res.data != null) { + // 鑾峰彇鍚屼竴鍫嗗灈鏈虹殑绌哄簱浣� + http.post(baseUrl + "/group/empty/stock", {sourceLocNo: el.value}, function (res) { + var tpl = $("#emptyLocStock").html(); + var template = Handlebars.compile(tpl); + var html = template(res); + console.log(html); + $('.layui-anim.layui-anim-upbit').append(html); + }); + } + }) } // 绉诲簱鍚姩 -- Gitblit v1.9.1