From 305bee5dbb3da1f485844afa7ce79c038d5e420c Mon Sep 17 00:00:00 2001 From: Yangzz <9704.yyds@163.com> Date: Thu, 14 Aug 2025 11:40:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A4=A9=E7=BA=BF=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/printFormat/hardwareAntennaAutoSN.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/printFormat/hardwareAntennaAutoSN.js b/src/printFormat/hardwareAntennaAutoSN.js index 23f5252..6118d80 100644 --- a/src/printFormat/hardwareAntennaAutoSN.js +++ b/src/printFormat/hardwareAntennaAutoSN.js @@ -57,16 +57,17 @@ export const printAntennaAutoSNLabel = (printList) => { if (row.printLabelType === 0 || row.printLabelType === 2){ printProductLabel(LODOP,row,row.printLabelType === 0?190:sizeTop)// 产品标签 } - if (row.printLabelType === 0 || (row.printLabelType !== 0 && i%2 === 1)){ + if (row.printLabelType === 0 || i%2 === 1){ LODOP.PRINT(); + //LODOP.PRINT_DESIGN(); } } //LODOP.PREVIEW(); - // 处理 最后一张纸张只有一个标签时 - if (printList.length % 2 === 1){ + // 处理最后一张纸张只有一个标签时的情况 + if (printList.length % 2 === 1 && printList[printList.length - 1].printLabelType !== 0) { LODOP.PRINT(); } - // LODOP.PRINT_DESIGN(); + /* LODOP.PRINT_DESIGN(); */ } } From ec40e3433b705a41bca350bff3c6f22bd2457def Mon Sep 17 00:00:00 2001 From: Yangzz <9704.yyds@163.com> Date: Thu, 14 Aug 2025 14:29:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A4=A9=E7=BA=BF=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/printFormat/hardwareAntennaAutoSN.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/printFormat/hardwareAntennaAutoSN.js b/src/printFormat/hardwareAntennaAutoSN.js index 6118d80..c8e638d 100644 --- a/src/printFormat/hardwareAntennaAutoSN.js +++ b/src/printFormat/hardwareAntennaAutoSN.js @@ -43,9 +43,9 @@ export const printAntennaAutoSNLabel = (printList) => { //console.log(i) //如果打印正常的标签 // 处理偏移量 - LODOP.PRINT_INITA(offsetY,offsetX,1100,512) + LODOP.PRINT_INITA(offsetY,offsetX,1100,1005) LODOP.SET_PRINTER_INDEXA(row.printerName) - LODOP.SET_PRINT_PAGESIZE(0, 1100, 512, '') + LODOP.SET_PRINT_PAGESIZE(0, 1100, 1005, '') // 设置TOP高度 sizeTop = 0;// 重置top值 }else {