|
@@ -71,7 +71,7 @@ export const printTempl = function(tsc,data){
|
|
|
const maxFontNums = Math.floor((pageW*8-left*2)/lightHeight) // 每行最多字体数
|
|
|
const leftMaxFnums = Math.floor(maxFontNums*0.6)
|
|
|
let rightTop = 0
|
|
|
- let rightLeft = (leftMaxFnums+1.5)*lightHeight
|
|
|
+ let rightLeft = (leftMaxFnums+1.2)*lightHeight
|
|
|
// 初始化打印机
|
|
|
const command = tsc.jpPrinter.createNew()
|
|
|
command.init()
|
|
@@ -94,9 +94,9 @@ export const printTempl = function(tsc,data){
|
|
|
top = top+10
|
|
|
top = textFormat(command,data.printDate+' '+data.printUser,leftMaxFnums,left,top,lightHeight,"left",1)
|
|
|
// 货位号
|
|
|
- const qrtop = textFormat(command,data.shelfPlaceCode,maxFontNums-leftMaxFnums-1.5,rightLeft,rightTop,lightHeight,"center",2)
|
|
|
+ const qrtop = textFormat(command,data.shelfPlaceCode,maxFontNums-leftMaxFnums-1.2,rightLeft,rightTop,lightHeight,"center",2)
|
|
|
// 二维码
|
|
|
- command.setQR(rightLeft, qrtop, "L", 5, "A", data.barCode)
|
|
|
+ command.setQR(rightLeft, qrtop, "M", 6, "A", data.barCode)
|
|
|
command.setPagePrint(1,data.currentInven) // 打印分数1,每个标签重发打印2次
|
|
|
console.log("开始打印了",command.getData())
|
|
|
return command
|