|
|
@@ -96,28 +96,25 @@ export default {
|
|
|
moreToDo(item){
|
|
|
//查询是否已经连接蓝牙
|
|
|
let _this=this;
|
|
|
+ let doList = ['打印标签', '打印标签2个', '打印标签5个','打印标签10个','打印标签20个']
|
|
|
+ let doNum = [1,2,5,10,20]
|
|
|
+ uni.showActionSheet({
|
|
|
+ itemList: doList,
|
|
|
+ success: function (respond) {
|
|
|
+ let index = respond.tapIndex
|
|
|
|
|
|
- plug.state({},ret=>{
|
|
|
- if(ret.code == 1){
|
|
|
-
|
|
|
-
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '您还没有连接蓝牙,请先链接',
|
|
|
- success: function (res) {
|
|
|
- if (res.confirm) {
|
|
|
- _this.pageTo({url:'/admin/tools/blue'})
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- }else{
|
|
|
- let doList = ['打印标签', '打印标签2个', '打印标签5个','打印标签10个','打印标签20个']
|
|
|
- let doNum = [1,2,5,10,20]
|
|
|
- uni.showActionSheet({
|
|
|
- itemList: doList,
|
|
|
- success: function (respond) {
|
|
|
- let index = respond.tapIndex
|
|
|
+ plug.state({},ret=>{
|
|
|
+ if(ret.code == 1){
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '您还没有连接蓝牙,请先链接',
|
|
|
+ success: function (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ _this.pageTo({url:'/admin/tools/blue'})
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
let currentNum = Number(doNum[index])
|
|
|
console.log(currentNum)
|
|
|
for (let i = 0; i < currentNum; i++) {
|
|
|
@@ -127,8 +124,10 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
},
|
|
|
// #endif
|
|
|
OrderLable(itemName,itemId){
|