From 07339fca4fe9f5263c2e74854e9ac5a0a9681d1c Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期日, 28 六月 2020 13:11:07 +0800
Subject: [PATCH] #
---
src/main/webapp/views/pda/comb.html | 29 +++++++++++++++++++++++++++--
1 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/views/pda/comb.html b/src/main/webapp/views/pda/comb.html
index c6c36e9..3b0d801 100644
--- a/src/main/webapp/views/pda/comb.html
+++ b/src/main/webapp/views/pda/comb.html
@@ -112,8 +112,8 @@
<!-- 灏鹃儴 -->
<footer>
<div class="layui-btn-container">
- <button type="button" class="layui-btn layui-btn-xs" onclick="reset()">閲嶇疆</button>
- <button type="button" class="layui-btn layui-btn-normal layui-btn-xs" onclick="comb">缁勬墭</button>
+ <button type="button" class="layui-btn layui-btn-xs layui-btn-primary" onclick="reset()">閲嶇疆</button>
+ <button type="button" class="layui-btn layui-btn-normal layui-btn-xs" onclick="comb()" style="margin-left: 20px">缁勬墭</button>
</div>
</footer>
</body>
@@ -183,7 +183,32 @@
// 缁勬墭
function comb() {
+ let barcode = $('#code').val();
+ if (isEmpty(barcode)) {
+ layer.msg("璇疯緭鍏ユ墭鐩樻潯鐮�");
+ return;
+ }
+ let combMats = matData;
+ $.ajax({
+ url: baseUrl+"/mobile/comb/auth",
+ headers: {'token': localStorage.getItem('token')},
+ data: JSON.stringify({
+ barcode: barcode,
+ combMats: combMats
+ }),
+ contentType:'application/json;charset=UTF-8',
+ method: 'POST',
+ asyne: false,
+ success: function (res) {
+ if (res.code === 200) {
+ } else if (res.code === 403) {
+ top.location.href = baseUrl + "/pda";
+ } else {
+ alert(res.msg)
+ }
+ }
+ })
}
</script>
</html>
\ No newline at end of file
--
Gitblit v1.9.1