From 0d549f0bb889983d2c6ab569a1304ac0c3fba6f6 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期一, 05 十二月 2022 14:50:57 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/hylyasrs' into hylyasrs

---
 src/main/webapp/views/report/locDetl.html |   36 +++++++++++++++++++++++++++++++++++-
 1 files changed, 35 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/views/report/locDetl.html b/src/main/webapp/views/report/locDetl.html
index 9e3ee3d..0da0485 100644
--- a/src/main/webapp/views/report/locDetl.html
+++ b/src/main/webapp/views/report/locDetl.html
@@ -24,6 +24,10 @@
 </div>
 <table class="layui-hide" id="locDetlByMap" lay-filter="locDetlByMap"></table>
 </body>
+<script type="text/html" id="operateDetl">
+<!--    <button id="batch" class="layui-btn layui-btn-primary layui-btn-radius" style="height: auto" lay-submit lay-filter="batch">淇敼鍚堝悓鍙�</button>-->
+    <a class="layui-btn layui-btn-xs layui-btn-danger btn-pakoutPreview" lay-event="pakoutPreview"><i class="layui-icon layui-icon-prev-circle"></i>淇敼鍚堝悓鍙�</a>
+</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,10 +40,14 @@
             {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() {
-        table = layui.table;
+        var table = layui.table;
         var $ = layui.jquery;
         var form = layui.form;
 
@@ -87,6 +95,32 @@
                 });
             }
         });
+        // 宸ュ叿鏉$偣鍑讳簨浠�
+        table.on('tool(locDetlByMap)', function (obj) {
+            var data = obj.data;
+            switch (obj.event) {
+                // 淇敼鍚堝悓鍙凤紙鎵瑰彿锛�
+                case 'pakoutPreview':
+                    layer.open({
+                        type: 2,
+                        title: '淇敼鍚堝悓鍙�',
+                        maxmin: true,
+                        area: ['500px', top.detailHeight],
+                        shadeClose: false,
+                        content: 'locDetl_detail.html',
+                        success: function(layero, index){
+                            layer.getChildFrame('#data-detail-submit-save', index).hide();
+                            setFormVal(layer.getChildFrame('#updateBatch', index), data, false);
+                            // top.convertDisabled(layer.getChildFrame('#data-detail :input', index), false);
+                            top.convertDisabled(layer.getChildFrame('#locNo', index), true);
+                            layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"});
+                            layero.find('iframe')[0].contentWindow.layui.form.render('select');
+                            layero.find('iframe')[0].contentWindow.layui.form.render('checkbox');
+                        }
+                    });
+                    break;
+            }
+        });
     });
 </script>
 </html>

--
Gitblit v1.9.1