|
|
@@ -112,19 +112,23 @@ export default {
|
|
|
plug.state({},ret=>{
|
|
|
if(ret.state == 1){
|
|
|
that.$util.confirmModal({content:'您还没有连接标签机,请先连接'},() => {
|
|
|
- plug.connectUSB({setBackgroundColor:"#2088d2"},ret=>{ })
|
|
|
+ plug.connectUSB({setBackgroundColor:"#2088d2"},ret=>{
|
|
|
+ //console.log(ret)
|
|
|
+ })
|
|
|
})
|
|
|
}else{
|
|
|
let currentNum = Number(doNum[index])
|
|
|
if(Number(currentNum)<0){
|
|
|
- this.$msg('请选择打印数量')
|
|
|
+ that.$msg('请选择打印数量')
|
|
|
return false
|
|
|
}
|
|
|
let data = []
|
|
|
let label = that.createLable(item.name,item.itemId,currentNum)
|
|
|
data.push(label)
|
|
|
//说明地址 https://ext.dcloud.net.cn/plugin?id=462
|
|
|
- plug.printer({"TSC":data,isArray:true},result=>{ })
|
|
|
+ plug.printer({"TSC":data,isArray:true},result=>{
|
|
|
+ //console.log(result)
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
// #endif
|