From 2ef7a952a57fe2aa679ec56b429f4e46923535b5 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 05 三月 2021 16:15:28 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/custOrder/custOrder.js |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/main/webapp/static/js/custOrder/custOrder.js b/src/main/webapp/static/js/custOrder/custOrder.js
index f2ea49f..212a5a5 100644
--- a/src/main/webapp/static/js/custOrder/custOrder.js
+++ b/src/main/webapp/static/js/custOrder/custOrder.js
@@ -220,6 +220,7 @@
                             } else {
                                 layer.msg(res.msg)
                             }
+                            $(".layui-laypage-btn")[0].click();
                         }
                     })
                 });
@@ -266,12 +267,10 @@
             method: 'POST',
             success: function (res) {
                 if (res.code === 200){
-                    res.data["barcodeUrl"]=baseUrl+"/custOrder/code/auth?type=2&param="+res.data.docNum;
+                    res.data["barcodeUrl"]=baseUrl+"/custOrder/code/auth?type=1&param="+res.data.docNum;
                     var tpl = $('#pakoutPrintTpl').html();
                     var template = Handlebars.compile(tpl);
                     var html = template(res);
-                    console.log(html)
-                    console.log(res)
                     var box = $("#pakoutPrintBox");
                     box.html(html);box.show();
                     box.print({
@@ -279,9 +278,11 @@
                         deferred: $.Deferred().done(function () {
                             layer.confirm('[閲嶈] 鎵撳嵃鏄惁鎴愬姛锛�',  {btn: ['Yes', 'No']}, function(){
                                 $.ajax({
-                                    url: baseUrl+"/trayCode/print/auth",
+                                    url: baseUrl+"/pakout/print/auth",
                                     headers: {'token': localStorage.getItem('token')},
-                                    data: data.field,
+                                    data: {
+                                        docNume: docNumber
+                                    },
                                     method: 'POST',
                                     success: function (res) {
                                         if (res.code === 200){

--
Gitblit v1.9.1