|
@@ -60,6 +60,12 @@ export default {
|
|
|
console.log('the Web Serial API is supported.')
|
|
|
console.log(this.param)
|
|
|
const port = await navigator.serial.requestPort()
|
|
|
+ if(this.deptBudgetList.warehouseName == '白城内陆港'){
|
|
|
+ this.param = 1200
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.param = 9600
|
|
|
+ }
|
|
|
await port.open({
|
|
|
baudRate: this.param,
|
|
|
}) // set baud rate
|
|
@@ -112,7 +118,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++) {
|