From 1ffb54f277da44b422c795d9952c874c60c0df56 Mon Sep 17 00:00:00 2001
From: 18516761980 <tqsxp@163.com>
Date: 星期四, 01 十二月 2022 08:00:50 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/report/locDetl.html        |   13 +++++++++++++
 src/main/resources/mapper/LocDetlMapper.xml      |    2 +-
 src/main/webapp/views/pakStore/locDetlQuery.html |    2 +-
 3 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/LocDetlMapper.xml b/src/main/resources/mapper/LocDetlMapper.xml
index 70de3ea..9e038ac 100644
--- a/src/main/resources/mapper/LocDetlMapper.xml
+++ b/src/main/resources/mapper/LocDetlMapper.xml
@@ -98,7 +98,7 @@
             and a.anfme like '%' + #{anfme} + '%'
         </if>
         <if test="batch!=null and batch!='' ">
-            and a.batch like  #{batch}
+            and a.batch like  '%' + #{batch} + '%'
         </if>
         <if test="startTime!=null and endTime!=null">
             and a.modi_time between #{startTime} and #{endTime}
diff --git a/src/main/webapp/views/pakStore/locDetlQuery.html b/src/main/webapp/views/pakStore/locDetlQuery.html
index 1b58bee..6f46989 100644
--- a/src/main/webapp/views/pakStore/locDetlQuery.html
+++ b/src/main/webapp/views/pakStore/locDetlQuery.html
@@ -74,7 +74,7 @@
         </div>
         <div class="layui-inline">
             <div class="layui-input-inline">
-                <input class="layui-input" type="text" name="batch" placeholder="鎵瑰彿" autocomplete="off">
+                <input class="layui-input" type="text" name="batch" placeholder="鍚堝悓鍙�" autocomplete="off">
             </div>
         </div>
         <!-- 鏃ユ湡鑼冨洿 -->
diff --git a/src/main/webapp/views/report/locDetl.html b/src/main/webapp/views/report/locDetl.html
index 9e3ee3d..b524691 100644
--- a/src/main/webapp/views/report/locDetl.html
+++ b/src/main/webapp/views/report/locDetl.html
@@ -24,6 +24,9 @@
 </div>
 <table class="layui-hide" id="locDetlByMap" lay-filter="locDetlByMap"></table>
 </body>
+<script type="text/html" id="operateDetl">
+    <button id="search" class="layui-btn layui-btn-primary layui-btn-radius" style="height: auto" lay-submit lay-filter="batch">淇敼鍚堝悓鍙�</button>
+</script>
 <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
 <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script>
 <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
@@ -36,6 +39,10 @@
             {field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
         ];
         cols.push.apply(cols, detlCols);
+        var cols2=[
+            { fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operateDetl'}
+        ];
+        cols.push.apply(cols,cols2)
         return cols;
     }
     layui.use(['table','laydate', 'form'], function() {
@@ -87,6 +94,12 @@
                 });
             }
         });
+        // 鐩戝惉琛屽伐鍏蜂簨浠�
+        form.on('submit(batch)', function (data) {
+            console.log("batch1")
+            console.log(data.locNo);
+            console.log(data);
+        });
     });
 </script>
 </html>

--
Gitblit v1.9.1