|
|
|
|
@ -593,18 +593,22 @@ export default {
|
|
|
|
|
// });
|
|
|
|
|
let curPlan = res?.map(i => {
|
|
|
|
|
const { use_money_total,paid_plan_total,money_total_2,money_total_1 } = i
|
|
|
|
|
return Number(money_total_2) ? (Math.round((Number(paid_plan_total||0) / Number(money_total_2 ||0)) * 10000) / 100) :
|
|
|
|
|
(Math.round((Number(paid_plan_total||0) / Number(money_total_1 ||0)) * 10000) / 100);
|
|
|
|
|
let curPlan_total = Math.round(Number(paid_plan_total||0)) + Math.round(Number(use_money_total||0))
|
|
|
|
|
return Number(money_total_2) ? ((( curPlan_total / Number(money_total_2 ||0)) * 10000) / 100).toFixed(2) :
|
|
|
|
|
((( curPlan_total / Number(money_total_1 ||0)) * 10000) / 100).toFixed(2)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
let curAct = res?.map(i => {
|
|
|
|
|
const { use_money_total,money_total_2,money_total_1 } = i
|
|
|
|
|
return Number(money_total_2) ? (Math.round((Number(use_money_total||0) / Number(money_total_2||0)) * 10000) / 100) :
|
|
|
|
|
(Math.round((Number(use_money_total||0) / Number(money_total_1||0)) * 10000) / 100);
|
|
|
|
|
return Number(money_total_2) ? (Math.round((Number(use_money_total||0) / Number(money_total_2||0)) * 10000) / 100).toFixed(2) :
|
|
|
|
|
(Math.round((Number(use_money_total||0) / Number(money_total_1||0)) * 10000) / 100).toFixed(2);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
let nextPlan = res?.map(i => {
|
|
|
|
|
const { use_money_total_next,paid_plan_total_next,money_total_2,money_total_1 } = i
|
|
|
|
|
return Number(money_total_2) ? (Math.round((Number(paid_plan_total_next||0) / Number(money_total_2||0)) * 10000) / 100) :
|
|
|
|
|
(Math.round((Number(paid_plan_total_next||0) / Number(money_total_1||0)) * 10000) / 100);
|
|
|
|
|
const { use_money_total,use_money_total_next,paid_plan_total_next,money_total_2,money_total_1 } = i
|
|
|
|
|
let nextPlan_total = Math.round(Number(paid_plan_total_next||0)) + Math.round(Number(use_money_total||0))
|
|
|
|
|
return Number(money_total_2) ? (((nextPlan_total / Number(money_total_2||0)) * 10000) / 100).toFixed(2) :
|
|
|
|
|
(((nextPlan_total / Number(money_total_1||0)) * 10000) / 100).toFixed(2);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
let barWidth = 23;
|
|
|
|
|
|