From 5cffd2d4226daaf981f0a341f9cd327e924f6619 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 13 六月 2020 16:59:44 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/pakStore/emptyIn.js |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/js/pakStore/emptyIn.js b/src/main/webapp/static/js/pakStore/emptyIn.js
index 305f2a3..2c9f1b3 100644
--- a/src/main/webapp/static/js/pakStore/emptyIn.js
+++ b/src/main/webapp/static/js/pakStore/emptyIn.js
@@ -14,7 +14,7 @@
             url: baseUrl+"/available/empty/put/site",
             headers: {'token': localStorage.getItem('token')},
             method: 'POST',
-            asymc: false,
+            async: false,
             success: function (res) {
                 if (res.code === 200){
                     var tpl = $("#putSiteSelectTemplate").html();
@@ -31,6 +31,28 @@
         })
     }
 
+    // 绌烘澘鍏ュ簱
+    form.on('submit(inbound)', function (data) {
+        var inSite = $('#inSiteSelect').val();
+        $.ajax({
+            url: baseUrl+"/empty/plate/in/start",
+            headers: {'token': localStorage.getItem('token')},
+            method: 'POST',
+            data: {sourceStaNo: inSite},
+            async: false,
+            success: function (res) {
+                if (res.code === 200){
+                    layer.msg(res.msg);
+                } else if (res.code === 403){
+                    top.location.href = baseUrl+"/";
+                }else {
+                    layer.msg(res.msg)
+                }
+            }
+        })
+    });
+
+
 
 })
 

--
Gitblit v1.9.1