yangan
2023-11-02 292019d23db79aa99535735e13e6b3c129d87251
pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
@@ -29,7 +29,7 @@
            <view class="main-information"
               v-if="weighList.orderType=='转入'||weighList.orderType=='转出'">
               <view class="prefix">
                  发货地煤场:
                  发货地基地:
               </view>
               <view class="suffix">
                  {{ weighList.filedName || '' }}
@@ -38,7 +38,7 @@
            <view class="main-information"
               v-if="weighList.orderType=='转入'||weighList.orderType=='转出'">
               <view class="prefix">
                  收货地煤场:
                  收货地基地:
               </view>
               <view class="suffix">
                  {{ weighList.toFiledName || '' }}
@@ -60,7 +60,7 @@
               <view class="suffix">{{ weighList.filedName || '' }}</view>
            </view>
            <!-- <view class="main-information">
               <view class="prefix">煤种名称:</view>
               <view class="prefix">物料名称:</view>
               <view class="suffix">{{ weighList.coalName || '' }}</view>
            </view> -->
            <view class="main-information">
@@ -251,12 +251,26 @@
            deep: true
         }
      },
      onPullDownRefresh() {
         if (!this.globalisconnect && !this.globalisUploadimg && this.globalisLogin) {
            if (!this.is_open_socket) {
               this.$store.dispatch('websocketInit')
               this.changeisconnect(false);
               console.log('称重的ws');
               uni.stopPullDownRefresh();
            } else {
               uni.stopPullDownRefresh();
            }
         }
      },
      onShow() {
         this.init();
         // this.realTimeWeigh = 0
      },
      computed: {
         ...mapState(['globalweigh', 'globalinfraredStatus', 'globalWarning']),
         ...mapState(['globalweigh', 'globalinfraredStatus', 'globalWarning', 'globalisconnect', 'globalisUploadimg',
            'globalisLogin', 'is_open_socket'
         ]),
         token() {
            return uni.getStorageSync('token');
         },