|
@@ -259,15 +259,15 @@ export default {
|
|
|
|
|
|
const totalItem = this.tableData.reduce((prev, curr) => {
|
|
|
return {
|
|
|
- pure_sale: addition(prev.pure_sale, curr.pure_sale),
|
|
|
- pure_purch: addition(prev.pure_purch, curr.pure_purch),
|
|
|
- pure_profit: addition(prev.pure_profit, curr.pure_profit),
|
|
|
- completion_rate: addition(prev.completion_rate, curr.completion_rate),
|
|
|
- pure_interest_rate: addition(prev.pure_interest_rate, curr.pure_interest_rate),
|
|
|
+ pure_sale: Number(addition(prev.pure_sale, curr.pure_sale)).toFixed(2),
|
|
|
+ pure_purch: Number( addition(prev.pure_purch, curr.pure_purch)).toFixed(2),
|
|
|
+ pure_profit: Number(addition(prev.pure_profit, curr.pure_profit)).toFixed(2),
|
|
|
+ completion_rate:Number( addition(prev.completion_rate, curr.completion_rate)).toFixed(2),
|
|
|
+ pure_interest_rate:Number( addition(prev.pure_interest_rate, curr.pure_interest_rate)).toFixed(2),
|
|
|
+ total_tips:Number( addition(prev.total_tips, curr.total_tips)).toFixed(2),
|
|
|
+ cost_tips:Number( addition(prev.cost_tips, curr.cost_tips)).toFixed(2),
|
|
|
+ cost_rate:Number( addition(prev.cost_rate, curr.cost_rate)).toFixed(2),
|
|
|
month: '合计',
|
|
|
- cost_tips: addition(prev.cost_tips, curr.cost_tips),
|
|
|
- total_tips: addition(prev.total_tips, curr.total_tips),
|
|
|
- cost_rate: addition(prev.cost_rate, curr.cost_rate)
|
|
|
}
|
|
|
}, {
|
|
|
pure_sale: 0,
|