|
|
@@ -137,20 +137,23 @@ export default {
|
|
|
that.pageTo({url:'/admin/tools/blue'})
|
|
|
})
|
|
|
}else{
|
|
|
- allProduct({classId:classId}).then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- let itemData = res.data.list
|
|
|
- if(!that.$util.isEmpty(itemData)){
|
|
|
- itemData.forEach((item)=>{
|
|
|
- console.log(item.name+item.id)
|
|
|
- plug.printer({"TSC":that.OrderLable(item.name,item.id)},ret=>{
|
|
|
- //uni.showToast({ title: JSON.stringify(ret), duration: 5000 })
|
|
|
+ that.$util.confirmModal({content:'确认打印?'},() => {
|
|
|
+ allProduct({classId:classId}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg(res.msg)
|
|
|
+ let itemData = res.data.list
|
|
|
+ if(!that.$util.isEmpty(itemData)){
|
|
|
+ itemData.forEach((item)=>{
|
|
|
+ console.log(item.name+item.id)
|
|
|
+ plug.printer({"TSC":that.OrderLable(item.name,item.id)},ret=>{
|
|
|
+ //uni.showToast({ title: JSON.stringify(ret), duration: 5000 })
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
- }else{
|
|
|
- that.$msg('此分类下没有花材')
|
|
|
+ }else{
|
|
|
+ that.$msg('此分类下没有花材')
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
})
|