From 24aac9824c4fd16814da3071aded01a40b3bbfc4 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 30 六月 2020 10:31:57 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/pda/stockOut.html |   32 +++++++++++++++++++++++++++-----
 1 files changed, 27 insertions(+), 5 deletions(-)

diff --git a/src/main/webapp/views/pda/stockOut.html b/src/main/webapp/views/pda/stockOut.html
index 06a5502..2c67492 100644
--- a/src/main/webapp/views/pda/stockOut.html
+++ b/src/main/webapp/views/pda/stockOut.html
@@ -177,7 +177,7 @@
 </header>
 <!-- 涓讳綋 -->
 <main>
-    <table class="layui-table" id="dataByLoc" lay-filter="chooseData"></table>
+    <table class="layui-table" id="dataByLoc" lay-filter="dataByLoc"></table>
 </main>
 <!-- 灏鹃儴 -->
 <footer>
@@ -245,6 +245,7 @@
         })
     }
 
+    // 琛ㄦ牸
     var locDetlData = [];
     var tableIns;
     layui.use(['table','laydate', 'form'], function() {
@@ -261,14 +262,35 @@
             cellMinWidth: 50,
             cols: [[
                 {type: 'checkbox', fixed: 'left', width:30},
-                {field: 'count', align: 'center', title: '閲�', style:'color: blue', width:30},
-                {field: 'matnr', align: 'center', title: '缂栫爜'},
-                {field: 'maktx', align: 'center', title: '鍚嶇О'},
-                {field: 'locNo', align: 'center', title: '搴撲綅'}
+                {field: 'count', align: 'center', title: '閲�', event: 'detail', style:'color: blue', width:30},
+                {field: 'matnr', align: 'center', title: '缂栫爜', event: 'detail'},
+                {field: 'maktx', align: 'center', title: '鍚嶇О', event: 'detail'},
+                {field: 'locNo', align: 'center', title: '搴撲綅', event: 'detail'}
             ]],
             done: function (res, curr, count) {
             }
         });
+
+        // 鐩戝惉琛屽伐鍏蜂簨浠�
+        table.on('tool(dataByLoc)', function(obj) {
+            var data = obj.data;
+            switch (obj.event) {
+                // 璇︽儏
+                case 'detail':
+                    layer.open({
+                        type: 2,
+                        title: '搴撳瓨鏄庣粏',
+                        shade: [0.3,'#000'],
+                        area: ['90%', '90%'],
+                        content: 'locDetlIframe.html',
+                        success: function(layero, index){
+                            $('.layui-layer-title').css('height', '20px').css('line-height', '20px').css('font-size', '12px').css('padding-left', '10px')
+                            $('.layui-layer-setwin').css("top", '2px').css('right', '3px')
+                        }
+                    });
+                    break;
+            }
+        })
     });
 
     // 鑾峰彇鍑哄簱鍙�

--
Gitblit v1.9.1