|
@@ -56,7 +56,7 @@ export default {
|
|
|
// The Web Serial API is supported.
|
|
|
console.log('the Web Serial API is supported.')
|
|
|
const port = await navigator.serial.requestPort()
|
|
|
- if (this.deptBudgetList.warehouseName == '白城内陆港') {
|
|
|
+ if (this.deptBudgetList.warehouseName == '白城内陆港'||this.deptBudgetList.warehouseName == '肇东金信库') {
|
|
|
this.param = 1200
|
|
|
} else {
|
|
|
this.param = 9600
|
|
@@ -106,11 +106,18 @@ export default {
|
|
|
// this.deptBudgetList.tare = parseInt(result)
|
|
|
// }
|
|
|
// }
|
|
|
+
|
|
|
if(value.length > 3){
|
|
|
- console.log('value23:', value)
|
|
|
if(value.length <= 6){
|
|
|
continue
|
|
|
}
|
|
|
+ if(this.deptBudgetList.warehouseName == '肇东金信库' && value.length < 10){
|
|
|
+ var start = (new Date()).getTime();
|
|
|
+ while((new Date()).getTime() - start < 200) {
|
|
|
+ }
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ console.log('value23:', value)
|
|
|
}
|
|
|
else if(this.deptBudgetList.warehouseName == '白城内陆港'){
|
|
|
console.log('value:', value)
|
|
@@ -127,7 +134,8 @@ export default {
|
|
|
this.deptBudgetList.warehouseName == '鲅鱼圈祥腾库' ||
|
|
|
this.deptBudgetList.warehouseName == '哈尔滨依兰库' ||
|
|
|
this.deptBudgetList.warehouseName == '龙江金信库' ||
|
|
|
- this.deptBudgetList.warehouseName == '白城内陆港')
|
|
|
+ this.deptBudgetList.warehouseName == '白城内陆港'||
|
|
|
+ this.deptBudgetList.warehouseName == '肇东金信库')
|
|
|
) {
|
|
|
for (var i = 0; i < value.length; i++) {
|
|
|
var tmp = String.fromCharCode(value[i])
|