From 5d7bb61a5e12ff6512bb0fe26b221cd2084813ed Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期三, 24 二月 2021 17:40:54 +0800 Subject: [PATCH] # --- src/main/webapp/views/pda/stockIn.html | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/views/pda/stockIn.html b/src/main/webapp/views/pda/stockIn.html index da1014e..a8453b3 100644 --- a/src/main/webapp/views/pda/stockIn.html +++ b/src/main/webapp/views/pda/stockIn.html @@ -88,8 +88,7 @@ <footer> <div class="layui-btn-container"> <button type="button" class="layui-btn layui-btn-primary" onclick="reset()">閲嶇疆</button> - <button id="empty-pakin" type="button" class="layui-btn layui-btn-normal" onclick="emptyPakIn()" style="margin-left: 15px">绌烘澘鍏ュ簱</button> - <button id="pakin" type="button" class="layui-btn layui-btn-normal" onclick="pakIn()" style="margin-left: 15px">鍏ュ簱</button> + <button id="pakin" type="button" class="layui-btn layui-btn-normal" onclick="pakIn()" style="margin-left: 15px">涓婃灦</button> </div> </footer> </body> @@ -176,6 +175,9 @@ // 娣诲姞琛ㄦ牸鏁版嵁 var matData = []; function addTableData(data) { + if (matData.length > 0) { + matData = []; + } for (var i=0;i<data.length;i++) { var toPush = true; for (var j=0;j<matData.length;j++){ @@ -188,6 +190,7 @@ matData.push(data[i]); } } + // console.log(matData) tableIns.reload({data: matData}); $("#comb-btn").focus(); } -- Gitblit v1.9.1