|
|
|
@ -19,13 +19,15 @@ export function printAlphaHardTagLabel (printList, icons, printerName) { |
|
|
|
//批量循环打印
|
|
|
|
for(let i = 0; i < printList.length; i++){ |
|
|
|
let row = printList[i]; |
|
|
|
console.log(row.qrCode) |
|
|
|
//如果打印正常的标签
|
|
|
|
LODOP.NewPage(); |
|
|
|
LODOP.SET_PRINTER_INDEXA(printerName) |
|
|
|
LODOP.SET_PRINT_PAGESIZE(0,1100,512,""); |
|
|
|
LODOP.ADD_PRINT_BARCODE(12,33,115,83,"QRCode",row.qrCode); |
|
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",7); |
|
|
|
LODOP.ADD_PRINT_IMAGE(4,275,96,20,"<img src=\"data:image/png;base64," + ckpLogo + "\"/>"); |
|
|
|
// LODOP.ADD_PRINT_BARCODE(12,33,100,80,"QRCode",row.qrCode);
|
|
|
|
// LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
|
|
|
|
LODOP.ADD_PRINT_IMAGE(5,33,"21mm","21mm",`<img src="${row.qrCode}" style="width: 21mm;height: 21mm;object-fit: contain"/>`); |
|
|
|
LODOP.ADD_PRINT_IMAGE(4,255,90,16,"<img src=\"data:image/png;base64," + ckpLogo + "\"/>"); |
|
|
|
LODOP.SET_PRINT_STYLEA(0,"Stretch",2); |
|
|
|
LODOP.SET_PRINT_STYLEA(0,"Alignment",3); |
|
|
|
LODOP.ADD_PRINT_TEXT(17,126,40,20,"REF"); |
|
|
|
@ -58,10 +60,10 @@ export function printAlphaHardTagLabel (printList, icons, printerName) { |
|
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",18); |
|
|
|
} |
|
|
|
LODOP.ADD_PRINT_TEXT(34,274,40,20,"UoM"); |
|
|
|
LODOP.ADD_PRINT_TEXT(34,271,60,20,"UoM"); |
|
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",10); |
|
|
|
LODOP.ADD_PRINT_TEXT(32,301,70,20,row.uom); |
|
|
|
LODOP.ADD_PRINT_TEXT(32,281,70,20,row.uom); |
|
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",14); |
|
|
|
LODOP.SET_PRINT_STYLEA(0,"Alignment",3); |
|
|
|
|