|
@@ -551,17 +551,17 @@ export default {
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then(response => {
|
|
.then(response => {
|
|
- for (var i = 0; i < response.records.length; i++) {
|
|
|
|
- if((response.records[i].transactionPrice-response.records[i].closeRate+response.records[i].basisPrice)*response.records[i].closingQuantity>0){
|
|
|
|
- response.records[i].amountIngPayable=(response.records[i].transactionPrice-response.records[i].closeRate+response.records[i].basisPrice)*response.records[i].closingQuantity
|
|
|
|
- }
|
|
|
|
- else{
|
|
|
|
- response.records[i].collectionIngPayable=response.records[i].collectionIngPayable+Math.abs((response.records[i].transactionPrice-response.records[i].closeRate+response.records[i].basisPrice)*response.records[i].closingQuantity)
|
|
|
|
- response.records[i].amountIngPayable=0
|
|
|
|
- response.records[i].amountEdPayable=0
|
|
|
|
- response.records[i].amountNotPayable=0
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ // for (var i = 0; i < response.records.length; i++) {
|
|
|
|
+ // if((response.records[i].transactionPrice-response.records[i].closeRate+response.records[i].basisPrice)*response.records[i].closingQuantity>0){
|
|
|
|
+ // response.records[i].amountIngPayable=(response.records[i].transactionPrice-response.records[i].closeRate+response.records[i].basisPrice)*response.records[i].closingQuantity
|
|
|
|
+ // }
|
|
|
|
+ // else{
|
|
|
|
+ // response.records[i].collectionIngPayable=response.records[i].collectionIngPayable+Math.abs((response.records[i].transactionPrice-response.records[i].closeRate+response.records[i].basisPrice)*response.records[i].closingQuantity)
|
|
|
|
+ // response.records[i].amountIngPayable=0
|
|
|
|
+ // response.records[i].amountEdPayable=0
|
|
|
|
+ // response.records[i].amountNotPayable=0
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
this.warehouseList = response
|
|
this.warehouseList = response
|
|
this.deptBudgetTotal=response.total
|
|
this.deptBudgetTotal=response.total
|
|
})
|
|
})
|