diff --git a/resources/js/Pages/Statistic/Components/OutcomeColumn.vue b/resources/js/Pages/Statistic/Components/OutcomeColumn.vue index d222128..9a0162e 100644 --- a/resources/js/Pages/Statistic/Components/OutcomeColumn.vue +++ b/resources/js/Pages/Statistic/Components/OutcomeColumn.vue @@ -43,6 +43,13 @@ const typePlan = computed(() => { if (props.plan.debt_from_year > 10) return 'warning' return 'success' }) + +// % выполнения плана именно за выбранный период (не с начала года) +const periodPercent = computed(() => { + const planForPeriod = Number(props.plan?.period_plan ?? 0) + if (!planForPeriod) return 0 + return Math.round((Number(props.value) * 100) / planForPeriod) +})