qingyiay
2023-10-27 ab6404eb9a63f990d1e734dbfc38eb5910dee681
pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
@@ -158,7 +158,7 @@
               <view class="suffix">{{ weighList.orderSurplus ||""  }}</view>
               <text style="color: #ff6363;font-weight: bold;font-size: 26rpx;"
                  class="error-tip"
                  v-show="orderSurplusLess">* 订单余量不足</text>
                  v-show="orderSurplusLess&&!isSpecial">* 订单余量不足</text>
            </view>
         </view>
      </view>
@@ -393,7 +393,8 @@
            afterEvacuationStatus: null, //放空后提煤单状态状态为21时提示‘等待磅房确认’
            afterEvacuationText: '',
            TwoEvacuationLoading: false,
            addAndSubtractCoalLoading: false
            addAndSubtractCoalLoading: false,
            isSpecial: null //1 是特殊 0不是特殊
         };
      },
      watch: {
@@ -422,9 +423,9 @@
                     this.temporaryWeighObj.clean = x.minus(y).toNumber().toFixed(2)
                     // this.temporaryWeighObj.clean = (this.temporaryWeighObj.hair - this.weighList.skin).toFixed(
                     //    2);
                     this.isweigh = this.temporaryWeighObj.clean > this.weighList.orderSurplus || this
                     this.isweigh = (this.temporaryWeighObj.clean > this.weighList.orderSurplus || this
                        .temporaryWeighObj
                        .clean < 0;
                        .clean < 0) && !this.isSpecial
                     this.orderSurplusLess = this.temporaryWeighObj.clean > this.weighList.orderSurplus
                     // this.mergeStateShow = this.weighList.source !== 0 && this.orderSurplusLess
                  }
@@ -447,9 +448,9 @@
                     this.temporaryWeighObj.clean = x.minus(y).toNumber().toFixed(2)
                     // this.temporaryWeighObj.clean = (this.weighList.hair - this.temporaryWeighObj.skin).toFixed(
                     //    2);
                     this.isweigh = this.temporaryWeighObj.clean > this.weighList.orderSurplus || this
                     this.isweigh = (this.temporaryWeighObj.clean > this.weighList.orderSurplus || this
                        .temporaryWeighObj
                        .clean < 0;
                        .clean < 0) && !this.isSpecial
                     this.orderSurplusLess = this.temporaryWeighObj.clean > this.weighList.orderSurplus
                     // this.mergeStateShow = this.weighList.source !== 0 && this.orderSurplusLess
                  }
@@ -486,6 +487,9 @@
         },
         sideline() {
            return this.weighList.orderType == '内购' || this.weighList.orderType == '转入';
         },
         isNeedOrigin() {
            return uni.getStorageSync('isNeedOrigin')
         }
      },
@@ -503,6 +507,7 @@
               if (res.code == 0) {
                  uni.hideLoading()
                  this.weighList = res.data;
                  this.isSpecial = res.data.isSpecial
                  this.weighData.deptId = res.data.deptId;
                  this.weighData.tmId = res.data.id;
                  this.weighData.carNo = res.data.carNo;
@@ -699,19 +704,6 @@
         skinAbnormal() {
            this.$reqPost('skinAbnormal', { sceneId: this.weighData.sceneId, tmId: this.weighData.tmId }, 'params')
         },
         // mergeStateChange(e) {
         //    if (e.length !== 0) {
         //       this.weighData.isMerge = 1
         //       this.MergeState = true
         //       this.isweigh = false
         //       this.orderSurplusLess = false
         //    } else {
         //       this.weighData.isMerge = 0
         //       this.MergeState = false
         //       this.isweigh = true
         //       this.orderSurplusLess = true
         //    }
         // },
         confirmWeighConfirm() {
            this.changeconfirmWeighVisiable(false)
            this.isConfirmWeighLoading = false