|
@@ -521,11 +521,15 @@ export default {
|
|
list.forEach(item => {
|
|
list.forEach(item => {
|
|
const { numTotal, salesTotal, purchaseTotal } = this.bottomCalc
|
|
const { numTotal, salesTotal, purchaseTotal } = this.bottomCalc
|
|
this.bottomCalc = {
|
|
this.bottomCalc = {
|
|
- numTotal: (Number(numTotal) + Number(item.goodsQuantity)).toFixed(4),
|
|
|
|
- salesTotal: (Number(salesTotal) + Number(item.salesTotalPrice)).toFixed(4),
|
|
|
|
- purchaseTotal: (Number(purchaseTotal) + Number(item.purchaseTotalPrice)).toFixed(4)
|
|
|
|
|
|
+ numTotal: (Number(numTotal) + Number(item.goodsQuantity)),
|
|
|
|
+ salesTotal: (Number(salesTotal) + (Number(item.goodsQuantity) * Number(item.salesPrice))),
|
|
|
|
+ purchaseTotal: (Number(purchaseTotal) + Number(item.purchaseTotalPrice))
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ this.bottomCalc.numTotal = this.bottomCalc.numTotal.toFixed(2)
|
|
|
|
+ this.bottomCalc.salesTotal = this.bottomCalc.salesTotal.toFixed(2)
|
|
|
|
+ this.bottomCalc.purchaseTotal = this.bottomCalc.purchaseTotal.toFixed(2)
|
|
},
|
|
},
|
|
// 底层信息计算
|
|
// 底层信息计算
|
|
getReceivableCalc(list) {
|
|
getReceivableCalc(list) {
|
|
@@ -537,9 +541,9 @@ export default {
|
|
list.forEach(item => {
|
|
list.forEach(item => {
|
|
const { numTotal, accountsTotal, netAccounts } = this.bottomInfoCalc
|
|
const { numTotal, accountsTotal, netAccounts } = this.bottomInfoCalc
|
|
this.bottomInfoCalc = {
|
|
this.bottomInfoCalc = {
|
|
- numTotal: (Number(numTotal) + Number(item.goodsQuantity)).toFixed(4),
|
|
|
|
- accountsTotal: (Number(accountsTotal) + Number(item.accountsReceivableAmount)).toFixed(4),
|
|
|
|
- netAccounts: (Number(netAccounts) + Number(item.netAccountsReceivableAmount)).toFixed(4)
|
|
|
|
|
|
+ numTotal: (Number(numTotal) + Number(item.goodsQuantity)).toFixed(2),
|
|
|
|
+ accountsTotal: (Number(accountsTotal) + Number(item.accountsReceivableAmount)).toFixed(2),
|
|
|
|
+ netAccounts: (Number(netAccounts) + Number(item.netAccountsReceivableAmount)).toFixed(2)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|