完成008A功能开发
This commit is contained in:
@ -991,17 +991,17 @@
|
||||
});
|
||||
}
|
||||
|
||||
for (let i = 0; i < this.EquipMents.length; i++) {
|
||||
let element = this.EquipMents[i];
|
||||
if (!element.isValid) {
|
||||
task(element).catch(ex => {
|
||||
if (ex === null && element.advertisData) {
|
||||
console.log("广播自动入库");
|
||||
this.uploadItem(element);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
// for (let i = 0; i < this.EquipMents.length; i++) {
|
||||
// let element = this.EquipMents[i];
|
||||
// if (!element.isValid) {
|
||||
// task(element).catch(ex => {
|
||||
// if (ex === null && element.advertisData) {
|
||||
// console.log("广播自动入库");
|
||||
// this.uploadItem(element);
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
},
|
||||
scan() {
|
||||
@ -1111,9 +1111,7 @@
|
||||
this.EquipMents = [];
|
||||
this.PairEquip = [];
|
||||
setTimeout(() => {
|
||||
ble.StartSearch().then(result => {
|
||||
|
||||
}).catch(err => {
|
||||
ble.StartSearch().then(result => {}).catch(err => {
|
||||
console.error("err=", err);
|
||||
MsgError("出现错误:" + err.msg, '', these);
|
||||
}).finally(() => {
|
||||
@ -1228,8 +1226,16 @@
|
||||
|
||||
these.PairEquip.push(item);
|
||||
}
|
||||
console.log("连接成功", these.device);
|
||||
console.log("连接成功,开始发送识别指令", these.device);
|
||||
hideLoading(these);
|
||||
|
||||
let json = {
|
||||
ins_disc: 1
|
||||
}
|
||||
ble.sendString(item.deviceId, json, item.writeServiceId, item.wirteCharactId, 30).then(res => {
|
||||
}).catch(ex => {
|
||||
console.error("蓝牙识别指令发送失败", ex);
|
||||
});
|
||||
}
|
||||
let execLink = () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
Reference in New Issue
Block a user