|
|
@@ -399,7 +399,20 @@ export default {
|
|
|
setTimeout(this._writeBLECharacteristicValue, j * delay, {deviceId:deviceId, serviceId:serviceId, characteristicId:characteristicId,buffer:subPackage});
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ //增加打印次数
|
|
|
+ addPrintNum({id:self.orderId}).then(res=>{
|
|
|
+ if(!self.$util.isEmpty(self.detailInfo)){
|
|
|
+ self.detailInfo.printNum++;
|
|
|
+ }
|
|
|
+ if(!self.$util.isEmpty(self.list.data)){
|
|
|
+ self.list.data.forEach(ele=>{
|
|
|
+ if (ele.id==self.orderId) {
|
|
|
+ ele.printNum++;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
// let arrPrint = [];
|
|
|
// //初始化打印机
|
|
|
// arrPrint.push(util.sendDirective([0x1B, 0x40])); //16进制
|
|
|
@@ -505,20 +518,6 @@ export default {
|
|
|
// }, 3000);
|
|
|
// }
|
|
|
// });
|
|
|
-
|
|
|
- // addPrintNum({id:self.orderId}).then(res=>{
|
|
|
- // if(!self.$util.isEmpty(self.detailInfo)){
|
|
|
- // self.detailInfo.printNum++;
|
|
|
- // }
|
|
|
- // if(!self.$util.isEmpty(self.list.data)){
|
|
|
- // self.list.data.forEach(ele=>{
|
|
|
- // if (ele.id==self.orderId) {
|
|
|
- // ele.printNum++;
|
|
|
- // }
|
|
|
- // })
|
|
|
- // }
|
|
|
-
|
|
|
- // })
|
|
|
// this.printInfo({deviceId:deviceId, serviceId:serviceId, characteristicId:characteristicId}, arrPrint);
|
|
|
|
|
|
},
|