From d029414490a8aab9675ae4d1b2bebd9eb6e89b09 Mon Sep 17 00:00:00 2001
From: 王佳豪 <g675230687@126.com>
Date: 星期一, 17 五月 2021 18:37:32 +0800
Subject: [PATCH] 1.立库任务单入库支持批量组托的功能

---
 src/main/webapp/views/pda/combPro.html |   47 +++++++++++++++++++----------------------------
 1 files changed, 19 insertions(+), 28 deletions(-)

diff --git a/src/main/webapp/views/pda/combPro.html b/src/main/webapp/views/pda/combPro.html
index 7579b01..a8485e0 100644
--- a/src/main/webapp/views/pda/combPro.html
+++ b/src/main/webapp/views/pda/combPro.html
@@ -377,36 +377,27 @@
             tips("璇锋彁鍙栫墿鏂�", true);
             return;
         }
-        for (var i = 0; i < matData.length; i++) {
-            for (var j = 0; j < sourceData.length ; j++) {
-                if (matData[i].matNo == sourceData[j].matNo && matData[i].mnemonic == sourceData[j].mnemonic && matData[i].count == sourceData[j].count) {
-                    // 鏁伴噺鎻愰啋
-                    layer.confirm('鏁伴噺鍜屽墿浣欐暟閲忎竴鑷达紝纭畾缁х画缁勬墭鍚�?', function(){
-                        $.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,
+            }),
+            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