|
@@ -85,13 +85,13 @@
|
|
const dealer = this.$store.state.vuex_userData
|
|
const dealer = this.$store.state.vuex_userData
|
|
console.log(opt,data,'opt')
|
|
console.log(opt,data,'opt')
|
|
let top = 10 // 距离顶部10点像素
|
|
let top = 10 // 距离顶部10点像素
|
|
- const left = 32 // 距离左边
|
|
|
|
|
|
+ const left = 8 // 距离左边
|
|
const lightHeight = 24 // 行高3mm,1mm = 8点
|
|
const lightHeight = 24 // 行高3mm,1mm = 8点
|
|
const pageW = 40 // 页签宽度mm
|
|
const pageW = 40 // 页签宽度mm
|
|
const pageH = 30 // 页签高度mm
|
|
const pageH = 30 // 页签高度mm
|
|
const maxFontNums = Math.floor((pageW*8-left*2)/lightHeight) // 每行最多字体数
|
|
const maxFontNums = Math.floor((pageW*8-left*2)/lightHeight) // 每行最多字体数
|
|
let rightTop = 0
|
|
let rightTop = 0
|
|
- let rightLeft = Math.floor(maxFontNums*0.7)*lightHeight
|
|
|
|
|
|
+ let rightLeft = Math.floor(maxFontNums*0.6)*lightHeight
|
|
// 初始化打印机
|
|
// 初始化打印机
|
|
const command = tsc.jpPrinter.createNew()
|
|
const command = tsc.jpPrinter.createNew()
|
|
command.init()
|
|
command.init()
|
|
@@ -104,7 +104,6 @@
|
|
top = top+10
|
|
top = top+10
|
|
rightTop = top
|
|
rightTop = top
|
|
const lwidth = Math.floor(maxFontNums*0.6)
|
|
const lwidth = Math.floor(maxFontNums*0.6)
|
|
- rightLeft = (lwidth + 1.5) * lightHeight
|
|
|
|
top = textFormat(command,this.basicInfoData.shelfInfo.shelfName,lwidth,left,top,lightHeight,"left",1)
|
|
top = textFormat(command,this.basicInfoData.shelfInfo.shelfName,lwidth,left,top,lightHeight,"left",1)
|
|
// 产品编码
|
|
// 产品编码
|
|
top = top+10
|
|
top = top+10
|