|
@@ -63,7 +63,7 @@ export const textFormat = function(command,text,maxFontNums,left,top,lightHeight
|
|
|
|
|
|
|
|
|
export const printTempl = function(tsc,data){
|
|
|
- let top = 16
|
|
|
+ let top = 24
|
|
|
const left = 8
|
|
|
const lightHeight = 24
|
|
|
const pageW = 60
|
|
@@ -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)*lightHeight
|
|
|
+ let rightLeft = (leftMaxFnums+1.5)*lightHeight
|
|
|
|
|
|
const command = tsc.jpPrinter.createNew()
|
|
|
command.init()
|
|
@@ -94,7 +94,7 @@ 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-2,rightLeft,rightTop,lightHeight,"center",2)
|
|
|
+ const qrtop = textFormat(command,data.shelfPlaceCode,maxFontNums-leftMaxFnums-1.5,rightLeft,rightTop,lightHeight,"center",2)
|
|
|
|
|
|
command.setQR(rightLeft, qrtop, "L", 5, "A", data.barCode)
|
|
|
command.setPagePrint(1,data.currentInven)
|