From 851294b0a501b25065c20bc5e8be5bf783c71a45 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期五, 08 九月 2023 14:24:51 +0800
Subject: [PATCH] #出库优化

---
 src/main/webapp/views/pakStore/locDetlQuery.html |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/main/webapp/views/pakStore/locDetlQuery.html b/src/main/webapp/views/pakStore/locDetlQuery.html
index 68f73d3..40c562c 100644
--- a/src/main/webapp/views/pakStore/locDetlQuery.html
+++ b/src/main/webapp/views/pakStore/locDetlQuery.html
@@ -69,12 +69,12 @@
         </div>
         <div class="layui-inline">
             <div class="layui-input-inline">
-                <input class="layui-input" type="text" name="specs" placeholder="瑙勬牸"  autocomplete="off">
+                <input class="layui-input" type="text" name="maktx" placeholder="鐗╂枡鍚嶇О" autocomplete="off">
             </div>
         </div>
         <div class="layui-inline">
             <div class="layui-input-inline">
-                <input class="layui-input" type="text" name="maktx" placeholder="鐗╂枡鎻忚堪" autocomplete="off">
+                <input class="layui-input" type="text" name="batch" placeholder="鎵瑰彿" autocomplete="off">
             </div>
         </div>
         <!-- 鏃ユ湡鑼冨洿 -->
@@ -131,6 +131,7 @@
         var form = layui.form;
         var admin = layui.admin;
         var tableMerge = layui.tableMerge;
+        var dataSource = []
 
         // 鏁版嵁娓叉煋
         locDetlTableIns = table.render({
@@ -149,6 +150,7 @@
                 pageSize: 'limit'
             },
             parseData: function (res) {
+                dataSource = res.data.records
                 return {
                     'code': res.code,
                     'msg': res.msg,
@@ -169,15 +171,26 @@
 
         // 鐩戝惉澶村伐鍏锋爮浜嬩欢
         table.on('toolbar(stockOut)', function (obj) {
+
             var checkStatus = table.checkStatus(obj.config.id);
             var data = checkStatus.data;
+            var dataList = []
+            for (var j = 0; j < data.length; j++) {
+                var locno = data[j].locNo
+                for(var i = 0;i < dataSource.length; i++) {
+                    if (dataSource[i].locNo === locno) {
+                        dataList.push(dataSource[i])
+                    }
+                }
+            }
+
             switch(obj.event) {
                 case 'confirm':
                     if (data.length === 0){
                         layer.msg("璇烽�夋嫨鏁版嵁");
                         return;
                     }
-                    parent.addTableData(data);
+                    parent.addTableData(dataList);
                     break;
             }
         });

--
Gitblit v1.9.1