From f4d4d3084e30f0752e4723b795712dd271a8d640 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 03 三月 2021 13:14:11 +0800
Subject: [PATCH] #

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

diff --git a/src/main/webapp/views/pda/stockOut.html b/src/main/webapp/views/pda/stockOut.html
index 18efddc..514b95c 100644
--- a/src/main/webapp/views/pda/stockOut.html
+++ b/src/main/webapp/views/pda/stockOut.html
@@ -35,7 +35,12 @@
         .status-3 {
             color: green;
         }
-
+        /* 瀹㈡埛 */
+        #custName {
+            padding-left: 2px;
+            line-height: 30px;
+            font-size: 14px;
+        }
         /* 涓讳綋 */
         main {
             border: 1px solid gainsboro;
@@ -78,16 +83,6 @@
 
 <!-- 涓讳綋 -->
 <main id="pakout-box">
-<!--    <hr>-->
-<!--    <div class="pakout-item">-->
-<!--        <div class="item-header">-->
-<!--            鍏閽诲熬铻轰笣4.8*-->
-<!--        </div>-->
-<!--        <div class="item-content">-->
-<!--            <div style="float: left">10绠�</div>-->
-<!--            <div style="float: right">璐т綅锛欰01-1</div>-->
-<!--        </div>-->
-<!--    </div>-->
 
 </main>
 <!-- 灏鹃儴 -->
@@ -118,22 +113,27 @@
             method: 'POST',
             success: function (res) {
                 if (res.code === 200) {
-                    if (res.data != null && res.data.length > 0) {
-                        pakoutData = res.data;
+                    if (res.data != null) {
+                        pakoutData = res.data.pakouts;
                         if (pakoutData != null) {
+                            // 澶�
+                            $('#status').html(res.data.wrkSts$);
+                            $('#status').attr("class", "layui-form-label status-" + res.data.wrkSts);
+                            $('#custName').html(res.data.custName);
+                            // 涓�
                             var tpl = $("#pakoutDetlTpl").html();
                             var template = Handlebars.compile(tpl);
-                            var html = template(pakoutData);
+                            var html = template(res.data);
                             $('#pakout-box').append(html);
                         }
-                        console.log(res.data)
                         $('#confirm').focus();
                     }
+                } else if (res.code === 201) {
                 } else if (res.code === 403) {
                     top.location.href = baseUrl + "/pda";
                 } else {
-                    locDetlData = [];
-                    tableIns.reload({data: locDetlData});
+                    pakoutData = [];
+                    tips(res.msg, true);
                 }
             }
         })
@@ -218,7 +218,7 @@
     }
 </script>
 <script type="text/template" id="pakoutDetlTpl">
-    {{#each data}}
+    {{#each pakouts}}
         <hr>
         <div class="pakout-item">
             <div class="item-header">

--
Gitblit v1.9.1