From 48b2dc4df2c247d12e4dd52c3c5d290f1e026578 Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期四, 29 一月 2026 13:39:43 +0800
Subject: [PATCH] 销售订单-修复

---
 src/main/webapp/views/pda/index.html |   35 +++++++++++++++++++++++++++--------
 1 files changed, 27 insertions(+), 8 deletions(-)

diff --git a/src/main/webapp/views/pda/index.html b/src/main/webapp/views/pda/index.html
index 9fa1701..470ca3b 100644
--- a/src/main/webapp/views/pda/index.html
+++ b/src/main/webapp/views/pda/index.html
@@ -128,6 +128,19 @@
             <div id="locNormalOut" onclick="nav(this.id)" class="nav-font-size">骞充粨鎴愬搧鍑哄簱</div>
         </td>
     </tr>
+    <tr>
+        <td>
+            <div id="combLToP" onclick="nav(this.id)" class="nav-font-size">绔嬪簱绉诲簱缁勬墭</div>
+        </td>
+        <td>
+            <div id="materialReceiveOut" onclick="nav(this.id)" class="nav-font-size">鐢熸垚棰嗘枡鍑哄簱</div>
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <div id="materialWwOut" onclick="nav(this.id)" class="nav-font-size">濮斿鍔犲伐鍑哄簱</div>
+        </td>
+    </tr>
 </table>
 
 <!-- 涓讳綋鍐呭 -->
@@ -142,21 +155,21 @@
             headers: {'token': localStorage.getItem('token')},
             method: 'GET',
             success: function (res) {
-                if (res.code === 200){
+                if (res && res.code === 200){
                     console.log(res)
-                    if (res.data.code === 'a') {
+                    if (res.data && res.data.code === 'a') {
                         $("#combAgv").parent().hide();
                         $("#combProAgv").parent().hide();
                         $("#comb").parent().hide();
                         $("#combPro").parent().hide();
                         $("#locNormalIn").parent().hide();
                         $("#locNormalOut").parent().hide();
-                    } else if (res.data.code === 'b') {
+                    } else if (res.data && res.data.code === 'b') {
                         $("#locNormalIn1").parent().hide();
                         $("#locNormalOut1").parent().hide();
-                        $("#locNormalIn").parent().hide();
-                        $("#locNormalOut").parent().hide();
-                    } else if (res.data.code === 'c') {
+                        // $("#locNormalIn").parent().hide();
+                        // $("#locNormalOut").parent().hide();
+                    } else if (res.data && res.data.code === 'c') {
                         $("#combAgv").parent().hide();
                         $("#combProAgv").parent().hide();
                         $("#comb").parent().hide();
@@ -164,11 +177,17 @@
                         $("#locNormalIn1").parent().hide();
                         $("#locNormalOut1").parent().hide();
                     }
-                } else if (res.code === 403){
+                } else if (res && res.code === 403){
                     top.location.href = baseUrl+"/";
-                }else {
+                } else if (res && res.msg) {
                     layer.msg(res.msg, {icon: 2});
+                } else {
+                    layer.msg("璇锋眰澶辫触锛岃绋嶅悗閲嶈瘯", {icon: 2});
                 }
+            },
+            error: function(xhr, status, error) {
+                console.error("璇锋眰澶辫触:", status, error);
+                layer.msg("璇锋眰澶辫触锛岃绋嶅悗閲嶈瘯", {icon: 2});
             }
         })
     });

--
Gitblit v1.9.1