From a13a56a0ddb0da74aabf2922e3740ff7502342cf Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 05 三月 2021 15:09:49 +0800 Subject: [PATCH] # --- src/main/webapp/views/custOrder/custOrder.html | 5 +---- src/main/webapp/static/js/custOrder/custOrder.js | 6 +++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/static/js/custOrder/custOrder.js b/src/main/webapp/static/js/custOrder/custOrder.js index 9f7cf5d..f2ea49f 100644 --- a/src/main/webapp/static/js/custOrder/custOrder.js +++ b/src/main/webapp/static/js/custOrder/custOrder.js @@ -265,14 +265,14 @@ contentType:'application/json;charset=UTF-8', method: 'POST', success: function (res) { - console.log(res) if (res.code === 200){ - res.data["barcodeUrl"]=baseUrl+"/custOrder/code/auth?type=1¶m="+res.data.docNum; + res.data["barcodeUrl"]=baseUrl+"/custOrder/code/auth?type=2¶m="+res.data.docNum; var tpl = $('#pakoutPrintTpl').html(); var template = Handlebars.compile(tpl); var html = template(res); console.log(html) - var box = $("#box"); + console.log(res) + var box = $("#pakoutPrintBox"); box.html(html);box.show(); box.print({ mediaPrint:true, diff --git a/src/main/webapp/views/custOrder/custOrder.html b/src/main/webapp/views/custOrder/custOrder.html index 204cfb7..690a5fd 100644 --- a/src/main/webapp/views/custOrder/custOrder.html +++ b/src/main/webapp/views/custOrder/custOrder.html @@ -61,11 +61,8 @@ </body> <script type="text/template" id="pakoutPrintTpl"> - {{#each data}} - <img class="template-code template-qrcode" src="{{this.barcodeUrl}}" width="80%"> - {{/each}} + <img class="template-code template-qrcode" src="{{data.barcodeUrl}}" width="80%"> </script> - </html> -- Gitblit v1.9.1