From 1cd47b0a4b2822d7551f878733af4bc3d96ff0b9 Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Tue, 17 Dec 2024 14:21:32 +0800 Subject: [PATCH 1/3] 20241122 --- src/utils/LodopFuncs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/LodopFuncs.js b/src/utils/LodopFuncs.js index e12b2d9..62c2488 100644 --- a/src/utils/LodopFuncs.js +++ b/src/utils/LodopFuncs.js @@ -59,7 +59,8 @@ function getLodop() { type: 'warning', - showCancelButton: false, + confirmButtonText: 'Confirm', + cancelButtonText: 'Cancel', message: 'You haven’t install the printing component, you can follow the steps in Manual to complete the installation, then close and reopen the window again, it should be fixed', From 209a0bb2d5fa7ed683e546d7a6f1be43c65305b4 Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Tue, 17 Dec 2024 14:28:05 +0800 Subject: [PATCH 2/3] 20241122 --- src/printFormat/roll_label.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printFormat/roll_label.js b/src/printFormat/roll_label.js index c821159..be0bdba 100644 --- a/src/printFormat/roll_label.js +++ b/src/printFormat/roll_label.js @@ -16,7 +16,7 @@ export const print_roll_label = (printList,printerName,hz = 0)=>{ let row = printList[i]; LODOP.NewPage(); LODOP.SET_PRINTER_INDEXA(printerName) - LODOP.SET_PRINT_PAGESIZE(hz,450,250,""); + LODOP.SET_PRINT_PAGESIZE(hz,550,250,""); LODOP.ADD_PRINT_IMAGE(3,4,"18mm","18mm",row.qrCode); LODOP.SET_PRINT_STYLEA(0,"Stretch",1); LODOP.ADD_PRINT_IMAGE(7,120,30,8,""); From 7aae4cc449574333fb242ff25d42c4f500685750 Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Tue, 17 Dec 2024 14:45:36 +0800 Subject: [PATCH 3/3] 20241122 --- src/printFormat/roll_label.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printFormat/roll_label.js b/src/printFormat/roll_label.js index be0bdba..c821159 100644 --- a/src/printFormat/roll_label.js +++ b/src/printFormat/roll_label.js @@ -16,7 +16,7 @@ export const print_roll_label = (printList,printerName,hz = 0)=>{ let row = printList[i]; LODOP.NewPage(); LODOP.SET_PRINTER_INDEXA(printerName) - LODOP.SET_PRINT_PAGESIZE(hz,550,250,""); + LODOP.SET_PRINT_PAGESIZE(hz,450,250,""); LODOP.ADD_PRINT_IMAGE(3,4,"18mm","18mm",row.qrCode); LODOP.SET_PRINT_STYLEA(0,"Stretch",1); LODOP.ADD_PRINT_IMAGE(7,120,30,8,"");