qingyiay
2023-07-14 f5d9fc10d155aed63fdf91217380610faa60f9e0
pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
@@ -221,8 +221,14 @@
      },
      watch: {
         realTimeWeigh(newV, oldV) {
            if (this.weighList.orderType == '外销' || this.weighList.orderType == '内销' || this.weighList.orderType ==
               '转出') {
         },
         // 监听重量变化
         globalweigh: {
            handler: function(newV) {
               this.weighData.weigh = this.realTimeWeigh = newV;
               if (this.weighList.orderType == '外销' || this.weighList.orderType == '内销' || this.weighList
                  .orderType == '转出') {
               if (!this.showWeigh.skin) {
                  this.temporaryWeighObj.skin = newV;
               } else {
@@ -236,16 +242,11 @@
                  this.temporaryWeighObj.hair = newV;
               } else {
                  this.temporaryWeighObj.skin = newV;
                  this.isweigh = Number(this.currentClean) < 0 || this.showWeigh.skin < newV && this.showWeigh
                     this.isweigh = Number(this.currentClean) < 0 || this.showWeigh.skin < newV && this
                        .showWeigh
                     .skin > 0;
               }
            }
         },
         // 监听重量变化
         globalweigh: {
            handler: function(newV) {
               this.weighData.weigh = this.realTimeWeigh = newV;
               console.log(this.realTimeWeigh, '真实重量改变了');
            },
            deep: true
         }
@@ -294,7 +295,13 @@
         },
         currentClean() {
            if (!this.currentSkin) return ''
            if (this.weighList.orderType == '外购' || this.weighList.orderType == '内购' || this.weighList
               .orderType == '转入') {
            return (this.currentHair - this.currentSkin).toFixed(2)
            } else {
               return !this.showWeigh.skin ? this.currentSkin : (this.currentHair - this.currentSkin).toFixed(2)
            }
         }
      },
      methods: {