Commit cc89de3a by liangjianmin

js

parent c368acd5
......@@ -168,7 +168,7 @@
console.log('搜索设备start', res);
uni.onBluetoothDeviceFound(function(el) {
//找到对应蓝牙设备名字
if (el.devices[0].name == 'HM-A300-87d9') {
if (el.devices[0].name == 'HM-A300-647a') {
that.deviceId = el.devices[0].deviceId; //成功后存储设备id
that.stopBluetoothDevicesDiscovery(); //关闭搜索
console.log("成功搜索设备", el);
......@@ -264,7 +264,7 @@
//发送数据 二进制
let data = [];
if (this.printLabelData.length > 0) {
data.push("! 10 200 200 200 1\r\n");
data.push("! 60 200 200 200 1\r\n");
data.push("T 8 0 10 20 入仓号:" + this.printLabelData[this.print_number].erp_order_sn + "\r\n");
if (this.form.print_type == 1) {
data.push("T 8 0 10 70 总箱数:" + this.printLabelData[this.print_number].label_num + "箱\r\n");
......
......@@ -146,7 +146,7 @@
console.log('搜索设备start', res);
uni.onBluetoothDeviceFound(function(el) {
//找到对应蓝牙设备名字
if (el.devices[0].name == 'HM-A300-87d9') {
if (el.devices[0].name == 'HM-A300-647a') {
that.deviceId = el.devices[0].deviceId; //成功后存储设备id
that.stopBluetoothDevicesDiscovery(); //关闭搜索
console.log("成功搜索设备", el);
......@@ -241,7 +241,7 @@
//发送数据 二进制
let data = [];
if (this.printLabelData.length > 0) {
data.push("! 10 200 200 200 1\r\n");
data.push("! 60 200 200 200 1\r\n");
data.push("T 8 0 10 20 入仓号:" + this.printLabelData[this.print_number].erp_order_sn + "\r\n");
if (this.print_type == 1) {
data.push("T 8 0 10 70 总箱数:" + this.printLabelData[this.print_number].label_num + "箱\r\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment