From a45b751080a50d94d3ed2d9f1d801e14a7046b6d Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期三, 28 一月 2026 10:48:42 +0800
Subject: [PATCH] 生成领料单-pda+后台2
---
src/main/webapp/views/pda/index.html | 29 ++++++++++++++++++++---------
1 files changed, 20 insertions(+), 9 deletions(-)
diff --git a/src/main/webapp/views/pda/index.html b/src/main/webapp/views/pda/index.html
index 351ea75..470ca3b 100644
--- a/src/main/webapp/views/pda/index.html
+++ b/src/main/webapp/views/pda/index.html
@@ -132,9 +132,14 @@
<td>
<div id="combLToP" onclick="nav(this.id)" class="nav-font-size">绔嬪簱绉诲簱缁勬墭</div>
</td>
-<!-- <td>-->
-<!-- <div id="locNormalOut" 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>
@@ -150,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') {
+ } else if (res.data && res.data.code === 'c') {
$("#combAgv").parent().hide();
$("#combProAgv").parent().hide();
$("#comb").parent().hide();
@@ -172,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