ccj há 10 meses atrás
pai
commit
73d9dae30f
1 ficheiros alterados com 43 adições e 0 exclusões
  1. 43 0
      src/views/houseSelfCollect/settlement.vue

+ 43 - 0
src/views/houseSelfCollect/settlement.vue

@@ -831,6 +831,49 @@
                 .paymentList.base
             }
           }
+          else if(compIdTmp == 'bb902450e53e4145bb34d79d33af5b76' ){
+            this.ganwater = 14.5
+            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
+                  .qualityInspectionManagement.waterContent - this.ganwater) *
+                this.paymentList.buckleWeightRatio
+              this.paymentList.qualityInspectionManagement.weightDeduction = this.paymentList
+                .qualityInspectionManagement.weightDeduction.toFixed(2)
+              this.paymentList.base = (100 - this.paymentList.qualityInspectionManagement.weightDeduction) / 100
+              this.paymentList.base = this.paymentList.base.toFixed(3)
+              if (this.paymentList.type == '潮粮') {
+                if(this.paymentList.base > 1){
+                  this.paymentList.base = 1
+                }
+                this.paymentList.pureWeight = this.paymentList.base * this.paymentList.weighingManagement.netWeight
+                this.paymentList.pureWeight = Math.round(this.paymentList.pureWeight)
+              }
+
+            } else {
+              if (this.paymentList.type == '潮粮') {
+                let paramtmp = (100 - this.paymentList.param) / 100
+                if(paramtmp > 1){
+                  paramtmp = 1
+                }
+                this.paymentList.pureWeight = this.paymentList.weighingManagement.netWeight * paramtmp
+                this.paymentList.pureWeight = Math.round(this.paymentList.pureWeight)
+              }
+            }
+            if (!this.paymentList.dryGrainPrice) {
+              this.paymentList.dryGrainPrice = this.paymentList.qualityInspectionManagement.tidalGrainPrice / this
+                .paymentList.base
+            }
+          }
           else{
             // this.paymentList.buckleWeightRatio = this.paymentList.qualityInspectionManagement.buckleWeightRatio
             if(this.paymentList.qualityInspectionManagement.waterContent >= 30){