qingyiay
2023-04-06 1ddeee845f9c7e4917d5c991820ed4d1baddfeae
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -100,7 +100,7 @@
            sceneId: '',
            gateCameraId: '',
            equipmentCode: '',
            weigh: 0
            weigh: 30
         }
      };
   },
@@ -248,7 +248,9 @@
               uni.navigateTo({
                  url: `/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice?takeCoalId=${this.orderPlanId}&sceneId=${
                     res.data.id
                  }&gateCameraId=${res.data.lastEquipmentId}&gateCameraCode=${res.data.lastEquipmentCode}&weighHouseCode=${res.data.code}`
                  }&gateCameraId=${res.data.lastEquipmentId}&gateCameraCode=${res.data.lastEquipmentCode}&weighHouseCode=${res.data.code}&getWeightHouseObj=${JSON.stringify(
                     this.getWeightHouseObj
                  )}`
               });
            } else {
               this.$u.toast('未在磅房,请前往磅房后再试!!');
@@ -286,11 +288,11 @@
         });
         socket.onClose(() => {
            console.log('webSocketClose');
            this.$u.toast('磅房接口终端');
            this.$u.toast('磅房中断');
         });
         socket.onError(err => {
            console.log('socket报错', err);
            this.$u.toast('磅房接口暂时不能使用,请重新进入该页面,重试!!');
            this.$u.toast('出现错误,请重新进入该页面,重试!!');
         });
      },
      // 放空
@@ -302,7 +304,13 @@
         let mix = Object.assign(this.weighData, this.getWeightHouseObj);
         this.$reqPost('getOneEvacuation', mix, 'json').then(res => {
            console.log(res, '第一次放空');
            this.evacuationModalShow = false;
            if (res.code == 0) {
               this.$u.toast('已放空');
               this.evacuationModalShow = false;
            } else {
               this.$u.toast('放空失败,请稍后重试');
               this.evacuationModalShow = false;
            }
         });
      },
      // 放空弹窗取消