首页tongji

master
lion 4 months ago
parent 5ea3d95610
commit 02fe6bf922

@ -92,7 +92,7 @@
<template v-slot:btns>
<el-table-column header-align="center" align="left" :width="150" label="操作" >
<template #default="{ row }">
<Button v-if="row.pid === 0" size="small" type="primary" @click="$refs['payPlan'].rowName = row.name,$refs['payPlan'].setId(row.id),$refs['payPlan'].show();"></Button>
<Button v-if="row.pid != 0" size="small" type="primary" @click="$refs['payPlan'].rowName = row.name,$refs['payPlan'].setId(row.id),$refs['payPlan'].show();"></Button>
<Button
v-if="row.pid == 0"
class="slot-btns-item"

@ -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;

Loading…
Cancel
Save