Commit 697ebca9 by yyq1988

打印相关优化

parent 709df285
...@@ -62,6 +62,3 @@ ...@@ -62,6 +62,3 @@
<link rel="stylesheet" id="theme" href="${ctxStatic}/common/css/app-${cookie.theme.value==null?'blue':cookie.theme.value}.css" /> <link rel="stylesheet" id="theme" href="${ctxStatic}/common/css/app-${cookie.theme.value==null?'blue':cookie.theme.value}.css" />
<script src="${ctxStatic}/common/js/jeeplus.js"></script> <script src="${ctxStatic}/common/js/jeeplus.js"></script>
<script src="${ctxStatic}/common/js/LodopFuncs.js"></script> <script src="${ctxStatic}/common/js/LodopFuncs.js"></script>
<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0 style="display: none;">
<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
</object>
\ No newline at end of file
...@@ -286,33 +286,26 @@ $(document).ready(function() { ...@@ -286,33 +286,26 @@ $(document).ready(function() {
function printQr(id) { function printQr(id) {
jp.loading('loading...'); jp.loading('loading...');
jp.get("${ctx}/warehouse/goods/goods/printQr?goodsInfoId="+id, function (res) { try{
refresh(); if(!LODOP){
jp.success(res.msg); initLodop();
}) }
if(LODOP){
// try{ jp.get("${ctx}/warehouse/goods/goods/printQr?goodsInfoId="+id, function (res) {
// if(!LODOP){ var list = res.body.goodsInfo.qrCodeList;
// initLodop(); LODOP.PRINT_INIT("打印货品");
// } LODOP.SET_PRINT_PAGESIZE(1,400,600,0)
// if(LODOP){ createAllPage(list);
// jp.get("${ctx}/warehouse/goods/goods/printQr?goodsInfoId="+id, function (res) { LODOP.PREVIEW();
// var list = res.body.goodsInfo.qrCodeList; jp.close();
// LODOP.PRINT_INIT("打印货品"); })
// LODOP.SET_PRINT_PAGESIZE(1,400,600,0) }
// createAllPage(list); }catch (e){
// LODOP.PREVIEW(); jp.get("${ctx}/warehouse/goods/goods/printQr?goodsInfoId="+id, function (res) {
// jp.close(); var list = res.body.goodsInfo.qrCodeList;
// }) jp.close();
// }else{ })
// jp.close(); }
// }
// }catch (e){
// jp.get("${ctx}/warehouse/goods/goods/printQr?goodsInfoId="+id, function (res) {
// var list = res.body.goodsInfo.qrCodeList;
// jp.close();
// })
// }
} }
function createAllPage(list){ function createAllPage(list){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment