From d22ab122252bda411164c97c0c7a5296a20c8038 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 02 七月 2020 17:16:07 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/trayCode/trayCode.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/js/trayCode/trayCode.js b/src/main/webapp/static/js/trayCode/trayCode.js
index 72d445a..55f6802 100644
--- a/src/main/webapp/static/js/trayCode/trayCode.js
+++ b/src/main/webapp/static/js/trayCode/trayCode.js
@@ -294,6 +294,7 @@
     });
 
     form.on('submit(print)', function (data) {
+        console.log(data.field.type)
         $.ajax({
             url: baseUrl+"/trayCode/print/preview",
             headers: {'token': localStorage.getItem('token')},
@@ -303,7 +304,7 @@
             success: function (res) {
                 if (res.code === 200){
                     for (let i=0;i<res.data.length;i++){
-                        res.data[i]["barcodeUrl"]=baseUrl+"/macCode/code/auth?type=1&param="+res.data[i].item;
+                        res.data[i]["barcodeUrl"]=baseUrl+"/macCode/code/auth?type="+data.field.type+"&param="+res.data[i].item;
                     }
                     var tpl = $('#trayCodeTemplate').html();
                     var template = Handlebars.compile(tpl);

--
Gitblit v1.9.1