|
@@ -553,7 +553,8 @@ import {
|
|
|
setenabledinfo,
|
|
|
getbyname,
|
|
|
sponsorWithdraw,
|
|
|
- exportOrder
|
|
|
+ exportOrder,
|
|
|
+ getdryweight
|
|
|
} from '@/model/warehouse/index'
|
|
|
import {
|
|
|
selectWarehouseSelf,
|
|
@@ -995,6 +996,9 @@ export default {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ },
|
|
|
+ warehouseweightfocus(){
|
|
|
+
|
|
|
},
|
|
|
warehousefocus1() {
|
|
|
getposition({ baseId: this.fieldrationsList.baseId }).toPromise()
|
|
@@ -1312,7 +1316,7 @@ export default {
|
|
|
interestrate() {
|
|
|
this.interestrateshow = true
|
|
|
},
|
|
|
- fieldrations() {
|
|
|
+ async fieldrations() {
|
|
|
let _this = this
|
|
|
console.log(this.multipleSelection1)
|
|
|
var arr = []
|
|
@@ -1402,20 +1406,17 @@ export default {
|
|
|
this.fieldrationsList.warehousingOrderList = this.currectdata
|
|
|
this.fieldrationsList.baseId = this.currectdata[0].baseId
|
|
|
this.fieldrationsList.beforeWeight = weight.toFixed(3)
|
|
|
- getbyname({ warehouseId: this.currectdata[0].baseId, goodsName: this.currectdata[0].goodsName }).toPromise()
|
|
|
- .then((response) => {
|
|
|
- if (response) {
|
|
|
+ var response=await getbyname({ warehouseId: this.currectdata[0].baseId, goodsName: this.currectdata[0].goodsName }).toPromise()
|
|
|
+ var response1=await getdryweight({ warehousingOrderList: arr1 }).toPromise()
|
|
|
+ if (response) {
|
|
|
let weight2 = 0
|
|
|
for (let i = 0; i < this.currectdata.length; i++) {
|
|
|
var weightedMoisture = (this.currectdata[i].weightedMoisture - 14)
|
|
|
var deductWeight = 100 - (weightedMoisture * response.deductWeight)
|
|
|
- this.currectdata[i].afterWeight = ((deductWeight / 100) * this.currectdata[i].surplusWeight)
|
|
|
- weight2 += ((deductWeight / 100) * this.currectdata[i].surplusWeight)
|
|
|
}
|
|
|
- this.fieldrationsList.afterWeight = weight2.toFixed(3)
|
|
|
+ this.fieldrationsList.afterWeight = response1
|
|
|
this.fieldrationsshow = true
|
|
|
}
|
|
|
- })
|
|
|
// this.fieldrationsList.beforeCost=this.currectdata[0].avgCost
|
|
|
},
|
|
|
distribution() {
|