This commit is contained in:
aihe 2024-06-25 21:07:23 +08:00
parent 26e4b368c9
commit ca2d3aab31
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ export default {
data () { data () {
return { return {
prtPercentage: 0, // 打印进度 prtPercentage: 0, // 打印进度
paperWidth: 480, paperWidth: 560,
imgRes: {}, imgRes: {},
prtQueList: [], prtQueList: [],
lastExeMark: undefined, lastExeMark: undefined,
@ -58,7 +58,7 @@ export default {
return reject('打印参数校验不通过') return reject('打印参数校验不通过')
} }
let prtInstance = tanexPrinterUniSdk.createInstance() let prtInstance = tanexPrinterUniSdk.createInstance()
// prtInstance.init(that.imgRes.height) prtInstance.init(that.imgRes.heigh)
// prtInstance.diyCode(`PAGE-WIDTH 600\r\n`) // prtInstance.diyCode(`PAGE-WIDTH 600\r\n`)
prtInstance.addBitmapByEG(0, 0, that.imgRes.imgData) prtInstance.addBitmapByEG(0, 0, that.imgRes.imgData)
prtInstance.setPagePrint() prtInstance.setPagePrint()

View File

@ -66,7 +66,7 @@ export default {
previewModel: { show: false }, previewModel: { show: false },
printModel: { show: false }, printModel: { show: false },
imageUrl: [], imageUrl: [],
paperWidth: 480, paperWidth: 560,
show: false, show: false,
} }
}, },