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(); */ } }