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

---
 src/main/webapp/static/js/trayCode/trayCode.js |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/static/js/trayCode/trayCode.js b/src/main/webapp/static/js/trayCode/trayCode.js
index 72d445a..b3ee7da 100644
--- a/src/main/webapp/static/js/trayCode/trayCode.js
+++ b/src/main/webapp/static/js/trayCode/trayCode.js
@@ -106,9 +106,9 @@
                 layer.open({
                     type: 1,
                     title: '鐢熸垚鎵樼洏鐮�',
-                    // offset: '100px',
-                    // area: ['360px'],
-                    // shade: 0.1,
+                    offset: '100px',
+                    area: ['360px'],
+                    shade: 0.1,
                     content: $('#print-windows'),
                     success: function(layero, index){
                         layer.iframeAuto(index)
@@ -293,6 +293,7 @@
         ,range: true
     });
 
+    // 寮�濮嬫墦鍗�
     form.on('submit(print)', function (data) {
         $.ajax({
             url: baseUrl+"/trayCode/print/preview",
@@ -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