|
@@ -42,17 +42,12 @@ export const JGPrint = function (data, type, printerType) {
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
// 喷墨打印机
|
|
// 喷墨打印机
|
|
|
|
+ LODOP.ADD_PRINT_PDF(0, 0, '100%', '100%', data.data[0])
|
|
|
|
+ LODOP.SET_PRINT_PAGESIZE(3,2090,0,"");
|
|
if (type == 'preview') { // 预览
|
|
if (type == 'preview') { // 预览
|
|
- LODOP.SET_SHOW_MODE("HIDE_PBUTTIN_PREVIEW",1);//隐藏打印按钮
|
|
|
|
- LODOP.ADD_PRINT_PDF(0, 0, '100%', '100%', data.data[0])
|
|
|
|
- LODOP.SET_PRINT_PAGESIZE(3,2090,0,"");
|
|
|
|
LODOP.PREVIEW()
|
|
LODOP.PREVIEW()
|
|
} else if (type == 'print') { // 打印
|
|
} else if (type == 'print') { // 打印
|
|
- for(let i=0;i<dlen;i++){
|
|
|
|
- LODOP.ADD_PRINT_PDF(0, 0, '100%', '100%', data.data[i])
|
|
|
|
- LODOP.SET_PRINT_PAGESIZE(3, 2090, 0, '')
|
|
|
|
- LODOP.PRINT()
|
|
|
|
- }
|
|
|
|
|
|
+ LODOP.PRINT()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|