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

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

diff --git a/src/main/webapp/views/pda/stockOut.html b/src/main/webapp/views/pda/stockOut.html
index 4f4228d..06a5502 100644
--- a/src/main/webapp/views/pda/stockOut.html
+++ b/src/main/webapp/views/pda/stockOut.html
@@ -148,6 +148,7 @@
         }
         #tips {
             display: inline-block;
+            width: 90px;
             color: #666;
             margin-left: 5px;
             margin-bottom: 5px;
@@ -253,6 +254,7 @@
         var form = layui.form;
 
         tableIns = table.render({
+            id: 'tableIdx',
             elem: '#dataByLoc',
             data: [],
             limit: 500,
@@ -260,8 +262,8 @@
             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: 'matnr', align: 'center', title: '缂栫爜'},
+                {field: 'maktx', align: 'center', title: '鍚嶇О'},
                 {field: 'locNo', align: 'center', title: '搴撲綅'}
             ]],
             done: function (res, curr, count) {
@@ -293,8 +295,9 @@
 
     // 鍑哄簱
     function pakOut() {
-        if (locDetlData.length === 0) {
-            tips("鐗╂枡鏁版嵁涓虹┖", true);
+        var tableData = layui.table.checkStatus('tableIdx').data;
+        if (tableData.length === 0) {
+            tips("璇烽�夋嫨鐗╂枡", true);
             document.getElementById("locNo").focus();
             return;
         }
@@ -308,7 +311,7 @@
             headers: {'token': localStorage.getItem('token')},
             data: JSON.stringify({
                 outSite: site,
-                locDetls: locDetlData
+                locDetls: tableData
             }),
             contentType:'application/json;charset=UTF-8',
             method: 'POST',

--
Gitblit v1.9.1