|
type: 2,
tscSetting: {
width: 60, // 60
height: 30, // 50
gap: 2,
},
问题出在这里,posPrinter 支持热敏打印机 和 标签打印机, 以type 区分,
type:1, //打印机类型,默认是1。1:小票打印机,2:tsc标签打印机,你这里选的是标签打印机
是打印不干胶标签的,
如果用于热敏小票打印机就要用
var printModule = api.require('posPrinter');
var param =
{
taskList:
[
{
printerAddr: '983:31:20:23:4A',
content: orderInfo,
keepAlive:true, //蓝牙打印机,建议把keepAlive设为true
copyNum: 2
},
{
printerAddr: '192.168.1.10',
content: orderInfo,
copyNum: 2
}
]
};
printModule.print(param); |
|