|
@@ -1116,13 +1116,14 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
var weight2=0
|
|
|
for (let i = 0; i < arr1.length; i++) {
|
|
|
console.log(arr1[i].surplusWeight)
|
|
|
- weight+=arr1[i].surplusWeight
|
|
|
+ weight+=Number(arr1[i].surplusWeight)
|
|
|
}
|
|
|
// this.currectdata=item
|
|
|
this.currectdata=arr1
|
|
|
+ console.log(this.currectdata)
|
|
|
this.fieldrationsList.warehousingOrderList=this.currectdata
|
|
|
this.fieldrationsList.baseId=this.currectdata[0].baseId
|
|
|
- this.fieldrationsList.beforeWeight=weight
|
|
|
+ this.fieldrationsList.beforeWeight=weight.toFixed(2)
|
|
|
getbyname({warehouseId:this.currectdata[0].baseId,goodsName:this.currectdata[0].goodsName}).toPromise()
|
|
|
.then((response) => {
|
|
|
if(response){
|
|
@@ -1130,8 +1131,10 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
|
|
|
var weightedMoisture=(this.currectdata[i].weightedMoisture-14)
|
|
|
var deductWeight=100-(weightedMoisture*response.deductWeight)
|
|
|
// console.log(deductWeight,111111111)
|
|
|
+ this.currectdata[i].afterWeight=((deductWeight/100)*this.currectdata[i].surplusWeight)
|
|
|
weight2+=((deductWeight/100)*this.currectdata[i].surplusWeight)
|
|
|
}
|
|
|
+ console.log(this.currectdata)
|
|
|
this.fieldrationsList.afterWeight=weight2.toFixed(2)
|
|
|
this.fieldrationsshow=true
|
|
|
}
|