|
@@ -85,8 +85,8 @@ export const hdPrint = function (printerType, type, url, params, fileName, callb
|
|
}
|
|
}
|
|
|
|
|
|
if (type == 'preview') {
|
|
if (type == 'preview') {
|
|
- params.type = 'INK'
|
|
+
|
|
- params.printType = 'INK'
|
|
+
|
|
|
|
|
|
}
|
|
}
|
|
url(params).then(res => {
|
|
url(params).then(res => {
|
|
@@ -152,14 +152,14 @@ export const jGPrint = function (data, type, printerType) {
|
|
|
|
|
|
LODOP.SET_SHOW_MODE("HIDE_PBUTTIN_PREVIEW",1);
|
|
LODOP.SET_SHOW_MODE("HIDE_PBUTTIN_PREVIEW",1);
|
|
if (type == 'preview') {
|
|
if (type == 'preview') {
|
|
- blobToBaseByPdf(data,function(result){
|
|
+
|
|
- LODOP.ADD_PRINT_PDF(0, 0, '100%', '100%', result.split('base64,')[1])
|
|
+
|
|
- LODOP.SET_PRINT_PAGESIZE(3,2090,65,"");
|
|
+
|
|
- LODOP.PREVIEW()
|
|
+
|
|
- })
|
|
+
|
|
-
|
|
+ LODOP.ADD_PRINT_PDF(0, 0, '100%', '100%', data.data[0])
|
|
-
|
|
+ LODOP.SET_PRINT_PAGESIZE(3,2090,65,"");
|
|
-
|
|
+ LODOP.PREVIEW()
|
|
} else if (type == 'print') {
|
|
} else if (type == 'print') {
|
|
const dlen = data.data.length
|
|
const dlen = data.data.length
|
|
for(let i=0;i<dlen;i++){
|
|
for(let i=0;i<dlen;i++){
|