ccj %!s(int64=2) %!d(string=hai) anos
pai
achega
3ea8e1ca7b
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      src/views/houseSelfCollect/settlement.vue

+ 10 - 1
src/views/houseSelfCollect/settlement.vue

@@ -397,7 +397,16 @@
           if (!this.paymentList.unitDeduction) {
             this.paymentList.unitDeduction = 0
           }
-          this.paymentList.buckleWeightRatio = this.paymentList.qualityInspectionManagement.buckleWeightRatio
+          // this.paymentList.buckleWeightRatio = this.paymentList.qualityInspectionManagement.buckleWeightRatio
+          if(this.paymentList.qualityInspectionManagement.waterContent >= 30){
+            this.paymentList.buckleWeightRatio = 1.3
+          }
+          else if(this.paymentList.qualityInspectionManagement.waterContent <= 15){
+            this.paymentList.buckleWeightRatio = 1.15
+          }
+          else{
+            this.paymentList.buckleWeightRatio = 1.3 - (30 - this.paymentList.qualityInspectionManagement.waterContent)*0.01
+          }
           this.paymentList.tidalGrainPrice = this.paymentList.tidalGrainPrice.toFixed(4)
           if (this.paymentList.qualityInspectionManagement.paramType == '2') {
             this.paymentList.qualityInspectionManagement.weightDeduction = (this.paymentList