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...');
try{
if(!LODOP){
initLodop();
}
if(LODOP){
jp.get("${ctx}/warehouse/goods/goods/printQr?goodsInfoId="+id, function (res) { jp.get("${ctx}/warehouse/goods/goods/printQr?goodsInfoId="+id, function (res) {
refresh(); var list = res.body.goodsInfo.qrCodeList;
jp.success(res.msg); LODOP.PRINT_INIT("打印货品");
LODOP.SET_PRINT_PAGESIZE(1,400,600,0)
createAllPage(list);
LODOP.PREVIEW();
jp.close();
}) })
}
// try{ }catch (e){
// if(!LODOP){ jp.get("${ctx}/warehouse/goods/goods/printQr?goodsInfoId="+id, function (res) {
// initLodop(); var list = res.body.goodsInfo.qrCodeList;
// } jp.close();
// if(LODOP){ })
// jp.get("${ctx}/warehouse/goods/goods/printQr?goodsInfoId="+id, function (res) { }
// var list = res.body.goodsInfo.qrCodeList;
// LODOP.PRINT_INIT("打印货品");
// LODOP.SET_PRINT_PAGESIZE(1,400,600,0)
// createAllPage(list);
// LODOP.PREVIEW();
// 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