|
@@ -77,6 +77,7 @@ export default {
|
|
|
}
|
|
|
// 监听来自串行设备的数据
|
|
|
while (true) {
|
|
|
+
|
|
|
const { value, done } = await this.reader.read()
|
|
|
// console.log('value',value);
|
|
|
if (done) {
|
|
@@ -149,6 +150,7 @@ export default {
|
|
|
result += tmp
|
|
|
}
|
|
|
}
|
|
|
+ debugger
|
|
|
if (this.information.indexOf('毛重') > -1) {
|
|
|
if (parseInt(result) || parseInt(result) == 0) {
|
|
|
this.grossWeightVal = parseInt(result)
|