From 24e3b2ff80aef47982603eb565892b77b8ac0899 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 29 六月 2020 16:32:47 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/pda/stockOut.html |   60 +++++++++++++++++++++++++++++++-----------------------------
 1 files changed, 31 insertions(+), 29 deletions(-)

diff --git a/src/main/webapp/views/pda/stockOut.html b/src/main/webapp/views/pda/stockOut.html
index 4795bb0..14937cf 100644
--- a/src/main/webapp/views/pda/stockOut.html
+++ b/src/main/webapp/views/pda/stockOut.html
@@ -149,28 +149,52 @@
             return;
         }
         $.ajax({
-            url: baseUrl + "/matCode/auth",
+            url: baseUrl + "/mobile/locDetl",
             headers: {'token': localStorage.getItem('token')},
             data: {
-                id: el.value
+                locNo: el.value
             },
             method: 'POST',
             success: function (res) {
                 if (res.code === 200) {
                     if (res.data != null) {
-                        $('#matName').val(res.data.matName);
-                        $('#str1').val(res.data.str1);
-                        $('#str2').val(res.data.str2);
-                        countDom.focus().val(initMatCount)
+                        locDetlData = res.data;
+                        tableIns.reload({data: locDetlData});
                     }
                 } else if (res.code === 403) {
                     top.location.href = baseUrl + "/pda";
                 } else {
-                    alert(res.msg)
+                    locDetlData = [];
+                    tableIns.reload({data: locDetlData});
                 }
             }
         })
     }
+
+    var locDetlData = [];
+    var tableIns;
+    layui.use(['table','laydate', 'form'], function() {
+        var table = layui.table;
+        var $ = layui.jquery;
+        var layer = layui.layer;
+        var form = layui.form;
+
+        tableIns = table.render({
+            elem: '#dataByLoc',
+            data: [],
+            limit: 500,
+            cellMinWidth: 50,
+            cols: [[
+                {type: 'checkbox', fixed: 'left', width:30},
+                {field: 'count', align: 'center', title: '閲�', style:'color: blue', width:30},
+                {field: 'matNo', align: 'center', title: '缂栫爜'},
+                {field: 'matName', align: 'center', title: '鍚嶇О'},
+                {field: 'locNo', align: 'center', title: '搴撲綅'}
+            ]],
+            done: function (res, curr, count) {
+            }
+        });
+    });
 
     // 鑾峰彇鍑哄簱鍙�
     function getOutBound(){
@@ -193,28 +217,6 @@
             }
         })
     }
-
-    layui.use(['table','laydate', 'form'], function() {
-        var table = layui.table;
-        var $ = layui.jquery;
-        var layer = layui.layer;
-        var form = layui.form;
-
-        tableIns = table.render({
-            elem: '#dataByLoc',
-            data: [],
-            limit: 500,
-            cellMinWidth: 50,
-            cols: [[
-                {type: 'checkbox', fixed: 'left', width:30},
-                {fixed: 'left', align: 'center', field: 'count', title: '閲�', style:'color: blue', width:30},
-                {field: 'matNo', align: 'center', title: '鐗╂枡缂栫爜'},
-                {field: 'matName', align: 'center', title: '鐗╂枡鍚嶇О'}
-            ]],
-            done: function (res, curr, count) {
-            }
-        });
-    });
 </script>
 <script type="text/template" id="outSitesTemplate">
     {{#each data}}

--
Gitblit v1.9.1