|
@@ -397,46 +397,86 @@
|
|
|
if (!this.paymentList.unitDeduction) {
|
|
|
this.paymentList.unitDeduction = 0
|
|
|
}
|
|
|
- // 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
|
|
|
+ let compIdTmp = localStorage.getItem('ws-pf_compId')
|
|
|
+ //白城市鹏羽粮食贸易有限公司 扣重比1.25 干粮水分15
|
|
|
+ if(compIdTmp == '6a713699e08c4cbc97a87f7648a95e3d'){
|
|
|
+ // this.paymentList.buckleWeightRatio = this.paymentList.qualityInspectionManagement.buckleWeightRatio
|
|
|
+ this.paymentList.buckleWeightRatio = 1.25
|
|
|
+ this.ganwater = 14.5
|
|
|
+ this.paymentList.tidalGrainPrice = this.paymentList.tidalGrainPrice.toFixed(4)
|
|
|
+ if (this.paymentList.qualityInspectionManagement.paramType == '2') {
|
|
|
+ this.paymentList.qualityInspectionManagement.weightDeduction = (this.paymentList
|
|
|
+ .qualityInspectionManagement.waterContent - 15) *
|
|
|
+ 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 = 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 - 14) *
|
|
|
- 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)
|
|
|
+ // 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
|
|
|
+ .qualityInspectionManagement.waterContent - 14) *
|
|
|
+ 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
|
|
|
+ } 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)
|
|
|
}
|
|
|
- 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
|
|
|
+ if (!this.paymentList.dryGrainPrice) {
|
|
|
+ this.paymentList.dryGrainPrice = this.paymentList.qualityInspectionManagement.tidalGrainPrice / this
|
|
|
+ .paymentList.base
|
|
|
+ }
|
|
|
}
|
|
|
this.grainMoney()
|
|
|
})
|