ccjgmwz %!s(int64=3) %!d(string=hai) anos
pai
achega
23d1a2ded6

+ 2 - 0
src/components/balanceAlert.vue

@@ -72,6 +72,7 @@ export default {
           }
         // 监听来自串行设备的数据
         while (true) {
+          
           const { value, done } = await this.reader.read()
           // console.log("value",value);
           if (done) {
@@ -112,6 +113,7 @@ export default {
               this.deptBudgetList.warehouseName == '哈尔滨依兰库'||
               this.deptBudgetList.warehouseName == '龙江金信库')
           ) {
+            
             for (var i = 0; i < value.length; i++) {
               var tmp = String.fromCharCode(value[i])
               if (tmp == '+') {

+ 5 - 2
src/views/houseSelfCollect/weightCheck.vue

@@ -12,7 +12,7 @@
     </el-row>
     <div class="substance">
       <div class="left">
-        <BalanceAlert v-if='isShowBalance' ref="weightChild" :deptBudgetList='weighingList'
+        <BalanceAlert v-if='isShowBalance' ref="weightChild" :deptBudgetList='deptBudgetList'
             :information='information' v-on:balanceListen="setVal"></BalanceAlert>
         <div class="top">
           <div class="car-type">{{carWeightInfo.type}}</div>
@@ -237,6 +237,9 @@
           buckleMiscellaneous: 0,
           netWeight: 0,
           receivableWeighingFee:'',
+        },
+        deptBudgetList: {
+          
         },
         tpyeNo: 1,
         disabled: true,
@@ -271,7 +274,7 @@
       this.getList()
       this.tpyeNo = this.$route.query.tpyeNo
       this.warehouseName = this.$route.query.warehouseName
-      this.weighingList.warehouseName = this.$route.query.warehouseName
+      this.deptBudgetList.warehouseName = this.$route.query.warehouseName
       this.weighingList.number = this.$route.query.number
       this.weighingList.binNumber = this.$route.query.binNumber
       this.weighingList.customerNumberCard = this.$route.query.customerNumberCard