|
@@ -64,14 +64,14 @@ export default {
|
|
/* 完成额 = 月销售额 - 月退货额 **/
|
|
/* 完成额 = 月销售额 - 月退货额 **/
|
|
const completion = subtraction(month, monthReturn)
|
|
const completion = subtraction(month, monthReturn)
|
|
/* 完成率 = 完成额 / 月指标 **/
|
|
/* 完成率 = 完成额 / 月指标 **/
|
|
- const completionRate = multiplication(division(completion,total_tips) || 0, 100).toFixed(2)
|
|
|
|
|
|
+ const completionRate = multiplication(division(completion,total_tips) || 0, 100)
|
|
return {
|
|
return {
|
|
/* 月指标 **/
|
|
/* 月指标 **/
|
|
total_tips: unit2TenThousand(total_tips),
|
|
total_tips: unit2TenThousand(total_tips),
|
|
/* 完成额 **/
|
|
/* 完成额 **/
|
|
month: unit2TenThousand(completion),
|
|
month: unit2TenThousand(completion),
|
|
/* 完成率 **/
|
|
/* 完成率 **/
|
|
- completionRate: completionRate + '%'
|
|
|
|
|
|
+ completionRate: completionRate ? completionRate.toFixed(2) + '%' : completionRate + '%'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|