From b4a8d50e3d97fc9e893b554a60134e4eceb012eb Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 05 一月 2026 08:58:08 +0800
Subject: [PATCH] #
---
src/main/webapp/views/pda/combProAgv.html | 62 ++++++++++++++++---------------
1 files changed, 32 insertions(+), 30 deletions(-)
diff --git a/src/main/webapp/views/pda/combProAgv.html b/src/main/webapp/views/pda/combProAgv.html
index f6089c2..e8c8eac 100644
--- a/src/main/webapp/views/pda/combProAgv.html
+++ b/src/main/webapp/views/pda/combProAgv.html
@@ -87,11 +87,10 @@
oninput="if(value.length>8)value=value.slice(0,8)" placeholder="鎵爜 / 杈撳叆" autocomplete="off">
</div>
<div class="layui-form">
- <div style="margin: 5px 1px 5px 5px; display: inline-block">
+ <div style="margin: 5px 1px 5px 5px; display: none">
<button id="mat-btn" type="button" class="layui-btn layui-btn-normal" onclick="getMat()"><i class="layui-icon">+</i>鎻愬彇</button>
</div>
<div style="display: inline-block">
- 宸ヤ綔鍖�
<!-- 宸ヤ綔鍖� -->
<div class="layui-inline" style="width: 100px; margin-left: 10px">
<select id="devpSelect">
@@ -244,7 +243,7 @@
// 鑾峰彇宸ヤ綔鍖�
function getDevp(){
$.ajax({
- url: baseUrl+"/available/put/site",
+ url: baseUrl+"/agv/put/site",
headers: {'token': localStorage.getItem('token')},
method: 'POST',
async: false,
@@ -304,6 +303,8 @@
mnemonic: data[i].mnemonic,
});
}
+ tips("鎻愬彇鎴愬姛");
+ tableIns.reload({data: matData});
}
}
@@ -323,14 +324,15 @@
return;
}
// 璧嬪�煎墠娓呯┖琛ㄦ牸
-// matData = [];
+ matData = [];
tableIns.reload({data: matData});
$.ajax({
url: baseUrl + "/mobile/bill/query/auth",
headers: {'token': localStorage.getItem('token')},
data: {
- billNo: billNo
+ billNo: billNo,
+ mnemonic: '',
},
method: 'POST',
success: function (res) {
@@ -338,9 +340,9 @@
if (res.data != null) {
addTableData(res.data);
// 寤惰繜1绉掑悗娓呯┖閫氱煡鍗曞彿
- setTimeout(function () {
- $('#billNo').val("");
- }, 500);
+ // setTimeout(function () {
+ // $('#billNo').val("");
+ // }, 500);
}
} else if (res.code === 403) {
top.location.href = baseUrl + "/pda";
@@ -434,28 +436,28 @@
tips("璇烽�夋嫨宸ヤ綔鍖�", true);
return;
}
- alert("灏忚溅鍏宠仈缁勬墭瀹屾垚锛堝姛鑳借繕鏈疄鐜帮級");
-// $.ajax({
-// url: baseUrl + "/mobile/comb/auth/batch",
-// headers: {'token': localStorage.getItem('token')},
-// data: JSON.stringify({
-// barcode: barcode,
-// combMats: matData,
-// }),
-// contentType: 'application/json;charset=UTF-8',
-// method: 'POST',
-// async: false,
-// success: function (res) {
-// if (res.code === 200) {
-// reset();
-// tips("缁勬墭鎴愬姛")
-// } else if (res.code === 403) {
-// top.location.href = baseUrl + "/pda";
-// } else {
-// tips(res.msg, true)
-// }
-// }
-// })
+ $.ajax({
+ url: baseUrl + "/mobile/comb/auth/batch",
+ headers: {'token': localStorage.getItem('token')},
+ data: JSON.stringify({
+ barcode: barcode,
+ combMats: matData,
+ agvSite: devp
+ }),
+ contentType: 'application/json;charset=UTF-8',
+ method: 'POST',
+ async: false,
+ success: function (res) {
+ if (res.code === 200) {
+ reset();
+ tips("缁勬墭鎴愬姛")
+ } else if (res.code === 403) {
+ top.location.href = baseUrl + "/pda";
+ } else {
+ tips(res.msg, true)
+ }
+ }
+ })
}
/**
--
Gitblit v1.9.1