qingyiay
2023-04-19 3fd84886a15713ece1ba34954f49fd1e075ef7be
pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
@@ -72,13 +72,13 @@
let socket = null;
import { webSocketUrl } from '@/api/request.js';
import { mapState, mapMutations } from 'vuex';
import toast from '../../../../../uni_modules/uview-ui/libs/config/props/toast';
export default {
   onLoad(params) {
      this.takeCoalId = params.takeCoalId;
      this.weighData.sceneId = params.sceneId;
      this.weighData.gateCameraId = params.gateCameraId;
      this.weighData.equipmentCode = params.gateCameraCode;
      this.weighData.sceneInOut = params.sceneInOut;
      this.weighHouseCode = params.weighHouseCode;
      this.primarySkin = params.primarySkin;
      this.primaryHair = params.primaryHair;
@@ -96,7 +96,8 @@
            gateCameraId: '',
            equipmentCode: '',
            weigh: 0,
            tmCode: ''
            tmCode: '',
            sceneInOut: ''
         },
         takeCoalId: null,
         weighHouseCode: '',
@@ -154,8 +155,13 @@
         }
      },
      // 监听重量变化
      globalweigh(v) {
      globalweigh: {
         handler(v) {
         this.weighData.weigh = this.realTimeWeigh = v;
            console.log(this.realTimeWeigh, '真实重量改变了');
         },
         immediate: true,
         deep: true
      }
   },
   onShow() {