From 659e6c18a7298d6a43668f9d187989a65bb24ca0 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 04 六月 2021 16:53:13 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/pda/combProAgv.html |   49 ++++++++++++++++++++++++-------------------------
 1 files changed, 24 insertions(+), 25 deletions(-)

diff --git a/src/main/webapp/views/pda/combProAgv.html b/src/main/webapp/views/pda/combProAgv.html
index 61cce3c..cf49ff0 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,
@@ -432,28 +431,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