Browse Source

前端 sdy

zhongtianhaoyuan 3 years ago
parent
commit
57426db017

+ 2 - 0
src/views/houseSelfCollect/inspectInfo.vue

@@ -267,6 +267,8 @@
         }
       },
       closePrint(){
+           this.types = ""
+        this.inspect = [] 
         this.isShowPrint = false
         this.$router.push({path:'inspectionManagement'})
       },

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

@@ -473,8 +473,11 @@ export default {
           this.paymentList = response
           this.paymentList.qualityInspectionManagement.waterMin=this.$route.query.waterMin
           this.paymentList.qualityInspectionManagement.weightDeduction=(this.paymentList.qualityInspectionManagement.waterContent-this.paymentList.qualityInspectionManagement.waterMin)*this.paymentList.buckleWeightRatio
-          this.paymentList.base=(100-this.paymentList.qualityInspectionManagement.weightDeduction)/100
+        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(2)
           this.paymentList.pureWeight=this.paymentList.base*this.paymentList.weighingManagement.netWeight
+           this.paymentList.pureWeight =  this.paymentList.pureWeight.toFixed(2)
           if(!this.paymentList.solidGrainPrice){
             this.paymentList.solidGrainPrice=this.paymentList.qualityInspectionManagement.tidalGrainPrice/this.paymentList.base
           }
@@ -498,7 +501,8 @@ export default {
      this.paymentList.capitalize=this.convertCurrency(e)
     },
     grainMoney(){
-       this.paymentList.calculationPayable=(Number(this.paymentList.grainMoney)+Number(this.paymentList.weighingSubsidy)+Number(this.paymentList.freightSubsidy)+Number(this.paymentList.unloadSubsidy)+Number(this.paymentList.otherSubsidy))-this.paymentList.weighingDeduction-this.paymentList.freightDeduction-this.paymentList.unloadDeduction-this.paymentList.otherDeduction-this.paymentList.qualityDeduction
+       this.paymentList.calculationPayable=(Number(this.paymentList.grainMoney)+Number(this.paymentList.weighingSubsidy)+Number(this.paymentList.freightSubsidy)+Number(this.paymentList.unloadSubsidy)+Number(this.paymentList.otherSubsidy))-this.paymentList.weighingDeduction-this.paymentList.freightDeduction-this.paymentList.unloadDeduction-this.paymentList.otherDeduction-this.paymentList.qualityDeduction.toFixed(2)
+       this.paymentList.calculationPayable =  this.paymentList.calculationPayable.toFixed(2)
       this.paymentList.actualPayment = this.paymentList.calculationPayable
       this.actualPayment( this.paymentList.actualPayment)
       // this.paymentList.calculationPayable=num.toFixed(2)
@@ -719,8 +723,11 @@ export default {
     buckleWeightRatiochange(e){
       if(this.paymentList.buckleWeightRatio >= 0 && this.paymentList.buckleWeightRatio <= 2){
         this.paymentList.qualityInspectionManagement.weightDeduction=(this.paymentList.qualityInspectionManagement.waterContent-this.paymentList.qualityInspectionManagement.waterMin)*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(2)
       this.paymentList.pureWeight=this.paymentList.base*this.paymentList.weighingManagement.netWeight
+       this.paymentList.pureWeight =  this.paymentList.pureWeight.toFixed(2)
 
       }else{
          this.$message({
@@ -750,7 +757,7 @@ export default {
   border: none;
 }
 /deep/.ws-info-table .el-form-item .el-form-item__label {
-  width: 30%;
+  width: 40%;
   text-align: center;
   background: #ffffff;
   font-size: 14px;

+ 2 - 0
src/views/houseSelfCollect/weightCheck.vue

@@ -216,6 +216,7 @@ export default {
     this.warehouseId = this.$route.query.warehouseId
     this.weighingList.grossWeight = this.$route.query.grossWeight
     this.purchasePriceList = this.$route.query.purchasePriceList
+    console.log(this.purchasePriceList,"上限")
     this.allowEdit = this.$route.query.allowEdit
     if( this.allowEdit == 0){
       this.disabled = true
@@ -378,6 +379,7 @@ export default {
               .toPromise()
               .then((response) => {
                 for (let i = 0; i < this.purchasePriceList.length; i++) {
+                  console.log(this.purchasePriceList,"shangxiang")
                   if (
                     this.weighingList.goodsName == this.purchasePriceList[i].goodsName
                   ) {