|
@@ -791,7 +791,7 @@
|
|
|
this.paymentList.unitDeduction = 0
|
|
|
}
|
|
|
if(this.paymentList.warehouseName =='杜尔伯特家禾库' && this.types == 1){
|
|
|
- this.paymentList.unloadDeduction = (Number(this.paymentList.netWeight)/1000*5).toFixed(0)
|
|
|
+ this.paymentList.unloadDeduction = (Number(this.paymentList.netWeight)/1000*5).rewriteToFixed(0)
|
|
|
}
|
|
|
let compIdTmp = localStorage.getItem('ws-pf_compId')
|
|
|
//白城市鹏羽粮食贸易有限公司 扣重比1.25 干粮水分14.5
|
|
@@ -799,15 +799,15 @@
|
|
|
// this.paymentList.buckleWeightRatio = this.paymentList.qualityInspectionManagement.buckleWeightRatio
|
|
|
this.paymentList.buckleWeightRatio = 1.25
|
|
|
this.ganwater = 14.5
|
|
|
- this.paymentList.tidalGrainPrice = this.paymentList.tidalGrainPrice.toFixed(4)
|
|
|
+ this.paymentList.tidalGrainPrice = this.paymentList.tidalGrainPrice.rewriteToFixed(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(5)
|
|
|
+ .qualityInspectionManagement.weightDeduction.rewriteToFixed(5)
|
|
|
this.paymentList.base = (100 - this.paymentList.qualityInspectionManagement.weightDeduction) / 100
|
|
|
- this.paymentList.base = this.paymentList.base.toFixed(5)
|
|
|
+ this.paymentList.base = this.paymentList.base.rewriteToFixed(5)
|
|
|
if (this.paymentList.type == '潮粮') {
|
|
|
if(this.paymentList.base > 1){
|
|
|
this.paymentList.base = 1
|
|
@@ -843,15 +843,16 @@
|
|
|
else{
|
|
|
this.paymentList.buckleWeightRatio = 1.3 - (30 - this.paymentList.qualityInspectionManagement.waterContent)*0.01
|
|
|
}
|
|
|
- this.paymentList.tidalGrainPrice = this.paymentList.tidalGrainPrice.toFixed(4)
|
|
|
+ this.paymentList.tidalGrainPrice = this.paymentList.tidalGrainPrice.rewriteToFixed(4)
|
|
|
+ debugger
|
|
|
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)
|
|
|
+ .qualityInspectionManagement.weightDeduction.rewriteToFixed(2)
|
|
|
this.paymentList.base = (100 - this.paymentList.qualityInspectionManagement.weightDeduction) / 100
|
|
|
- this.paymentList.base = this.paymentList.base.toFixed(3)
|
|
|
+ this.paymentList.base = this.paymentList.base.rewriteToFixed(3)
|
|
|
if (this.paymentList.type == '潮粮') {
|
|
|
if(this.paymentList.base > 1){
|
|
|
this.paymentList.base = 1
|
|
@@ -889,18 +890,18 @@
|
|
|
}else{
|
|
|
this.paymentList.grainMoney = (this.paymentList.qualityInspectionManagement.dryGrainPrice - this.paymentList.unitDeduction) * this.paymentList.contractManagement.weight
|
|
|
}
|
|
|
- this.paymentList.solidGrainPrice = (Number(this.paymentList.grainMoney) / Number(this.paymentList.pureWeight)).toFixed(4)
|
|
|
+ this.paymentList.solidGrainPrice = (Number(this.paymentList.grainMoney) / Number(this.paymentList.pureWeight)).rewriteToFixed(4)
|
|
|
this.paymentList.calculationPayable = Number(this.paymentList.grainMoney) + Number(this.paymentList .weighingSubsidy) + Number(this.paymentList.freightSubsidy) + Number(this.paymentList.unloadSubsidy) +
|
|
|
Number(this.paymentList.otherSubsidy) - Number(this.paymentList.weighingDeduction) - this.paymentList.freightDeduction - Number(this.paymentList.unloadDeduction) - Number(this.paymentList.otherDeduction) - Number(this.paymentList.qualityDeduction)
|
|
|
- this.paymentList.calculationPayable = this.paymentList.calculationPayable.toFixed(2)
|
|
|
+ this.paymentList.calculationPayable = this.paymentList.calculationPayable.rewriteToFixed(2)
|
|
|
this.paymentList.actualPayment = this.paymentList.calculationPayable
|
|
|
this.actualPayment(this.paymentList.actualPayment)
|
|
|
}else if (this.paymentList.type == '潮粮') {
|
|
|
this.paymentList.grainMoney = (this.paymentList.qualityInspectionManagement.tidalGrainPrice - this.paymentList.unitDeduction) * this.paymentList.weighingManagement.netWeight
|
|
|
- this.paymentList.solidGrainPrice = (Number(this.paymentList.grainMoney) / Number(this.paymentList.pureWeight)).toFixed(4)
|
|
|
+ this.paymentList.solidGrainPrice = (Number(this.paymentList.grainMoney) / Number(this.paymentList.pureWeight)).rewriteToFixed(4)
|
|
|
this.paymentList.calculationPayable = Number(this.paymentList.grainMoney) + Number(this.paymentList .weighingSubsidy) + Number(this.paymentList.freightSubsidy) + Number(this.paymentList.unloadSubsidy) +
|
|
|
Number(this.paymentList.otherSubsidy) - Number(this.paymentList.weighingDeduction) - this.paymentList.freightDeduction - Number(this.paymentList.unloadDeduction) - Number(this.paymentList.otherDeduction) - Number(this.paymentList.qualityDeduction)
|
|
|
- this.paymentList.calculationPayable = this.paymentList.calculationPayable.toFixed(2)
|
|
|
+ this.paymentList.calculationPayable = this.paymentList.calculationPayable.rewriteToFixed(2)
|
|
|
|
|
|
this.paymentList.actualPayment = this.paymentList.calculationPayable
|
|
|
this.actualPayment(this.paymentList.actualPayment)
|
|
@@ -910,11 +911,11 @@
|
|
|
Number(this.paymentList.otherSubsidy) - Number(this.paymentList.weighingDeduction) - this.paymentList
|
|
|
.freightDeduction - Number(this.paymentList.unloadDeduction) - Number(this.paymentList.otherDeduction) -
|
|
|
Number(this.paymentList.qualityDeduction)
|
|
|
- this.paymentList.calculationPayable = this.paymentList.calculationPayable.toFixed(2)
|
|
|
+ this.paymentList.calculationPayable = this.paymentList.calculationPayable.rewriteToFixed(2)
|
|
|
this.paymentList.actualPayment = this.paymentList.calculationPayable
|
|
|
this.actualPayment(this.paymentList.actualPayment)
|
|
|
}
|
|
|
- this.paymentList.grainMoney = this.paymentList.grainMoney.toFixed(2)
|
|
|
+ this.paymentList.grainMoney = this.paymentList.grainMoney.rewriteToFixed(2)
|
|
|
},
|
|
|
/**
|
|
|
* 将金额数字转为汉字大写
|
|
@@ -1144,16 +1145,16 @@
|
|
|
.waterContent - 15) * this.paymentList
|
|
|
.buckleWeightRatio
|
|
|
this.paymentList.qualityInspectionManagement.weightDeduction = this.paymentList.qualityInspectionManagement
|
|
|
- .weightDeduction.toFixed(2)
|
|
|
+ .weightDeduction.rewriteToFixed(2)
|
|
|
this.paymentList.base = (100 - this.paymentList.qualityInspectionManagement.weightDeduction) / 100
|
|
|
- this.paymentList.base = this.paymentList.base.toFixed(3)
|
|
|
+ this.paymentList.base = this.paymentList.base.rewriteToFixed(3)
|
|
|
if(this.paymentList.base > 1){
|
|
|
this.paymentList.base = 1
|
|
|
}
|
|
|
this.paymentList.pureWeight = this.paymentList.base * this.paymentList.weighingManagement.netWeight
|
|
|
this.paymentList.solidGrainPrice = (Number(this.paymentList.grainMoney) / Number(this.paymentList.pureWeight))
|
|
|
- .toFixed(4)
|
|
|
- this.paymentList.pureWeight = this.paymentList.pureWeight.toFixed(2)
|
|
|
+ .rewriteToFixed(4)
|
|
|
+ this.paymentList.pureWeight = this.paymentList.pureWeight.rewriteToFixed(2)
|
|
|
|
|
|
} else {
|
|
|
this.$message({
|