From 76c84c893ff653267683ff98ba38e353b21c08dc Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期三, 24 六月 2020 15:37:13 +0800 Subject: [PATCH] #盘点 --- src/main/webapp/views/pakStore/locDetlCheckQuery.html | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/views/pakStore/locDetlCheckQuery.html b/src/main/webapp/views/pakStore/locDetlCheckQuery.html index 92d39c9..34d6710 100644 --- a/src/main/webapp/views/pakStore/locDetlCheckQuery.html +++ b/src/main/webapp/views/pakStore/locDetlCheckQuery.html @@ -186,18 +186,19 @@ } }); + var pause = true; + // 鐩戝惉琛屽伐鍏蜂簨浠� table.on('tool(stockOut)', function(obj) { var data = obj.data; switch (obj.event) { case 'checkbox': - var currDom = obj.tr.children("td:first").children().children("div"); - console.log(currDom.attr("class")) - var otherDom = $("td[data-field=locNo\\$] div:contains("+ data.locNo +")").parent().prev().children().children("div"); - if (currDom.hasClass("layui-form-checked")){ - otherDom.addClass("layui-form-checked"); - } else { - otherDom.removeClass("layui-form-checked"); + if (pause) { + pause = false; + $("tr td[data-field=locNo\\$] div:contains("+ data.locNo +")").parent().prev().children().children("div").click(); + setTimeout(function () { + pause = true; + }, 200) } break; } -- Gitblit v1.9.1