From 181cbd142f13ca8f180f86655fd31a3220701e8c Mon Sep 17 00:00:00 2001 From: anor Date: Tue, 18 Aug 2026 00:43:48 +1000 Subject: [PATCH] =?UTF-8?q?fix:=20=D1=81=D1=82=D0=BE=D0=BB=D0=B1=D1=86?= =?UTF-8?q?=D1=8B=20=D1=81=D1=80=D0=B0=D0=B2=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D1=81=20=D0=BF=D1=80=D0=BE=D1=88=D0=BB=D1=8B=D0=BC=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B8=D0=BE=D0=B4=D0=BE=D0=BC=20=D1=83=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D1=8B=20=D0=B2=D0=BE=20=D0=B2=D1=81=D0=B5=D1=85=20?= =?UTF-8?q?=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/sections/Deposits.tsx | 13 ++----------- client/src/sections/People.tsx | 8 ++------ 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/client/src/sections/Deposits.tsx b/client/src/sections/Deposits.tsx index ac2fbf5..a8f6bb3 100644 --- a/client/src/sections/Deposits.tsx +++ b/client/src/sections/Deposits.tsx @@ -1,7 +1,7 @@ import { useMemo } from 'react'; import type { Dataset } from '../types'; -import { AmountCard, Panel, SectionHeader, DataTable, Change, Empty } from '../components/ui'; -import { amount, percent, quarterLabel, ratio, signedPercent } from '../lib/format'; +import { AmountCard, Panel, SectionHeader, DataTable, Empty } from '../components/ui'; +import { amount, percent, quarterLabel, signedPercent } from '../lib/format'; import { groupSum, uniqueSorted, yearOf } from '../lib/aggregate'; export function Deposits({ dataset }: { dataset: Dataset }) { @@ -44,7 +44,6 @@ export function Deposits({ dataset }: { dataset: Dataset }) { const totalInterest = visibleQuarters.reduce((total, quarter) => total + interestOf(quarter), 0); const lastQuarter = visibleQuarters[visibleQuarters.length - 1] ?? ''; - const previousQuarter = visibleQuarters[visibleQuarters.length - 2] ?? ''; // Доходность заказчик считает сам. Если её прислали по холдингу - берём как есть, // иначе усредняем по дивизионам; своих расчётов не изобретаем. @@ -159,7 +158,6 @@ export function Deposits({ dataset }: { dataset: Dataset }) { { key: 'company', label: 'Юридическое лицо', align: 'left', width: '26%' }, ...quarters.map((quarter) => ({ key: quarter, label: quarterLabel(quarter) })), { key: 'total', label: 'Итого за период' }, - { key: 'change', label: 'Последний квартал к предыдущему' }, ]} rows={perQuarterRows.map((row) => ({ key: row.company, @@ -171,13 +169,6 @@ export function Deposits({ dataset }: { dataset: Dataset }) { )), {amount(row.visibleTotal)}, - , ], }))} footer={[ diff --git a/client/src/sections/People.tsx b/client/src/sections/People.tsx index ea6a0fe..7ebbb48 100644 --- a/client/src/sections/People.tsx +++ b/client/src/sections/People.tsx @@ -1,10 +1,10 @@ import { useMemo, useState } from 'react'; import type { Dataset } from '../types'; -import { AmountCard, MetricCard, Panel, SectionHeader, DataTable, Change, Empty } from '../components/ui'; +import { AmountCard, MetricCard, Panel, SectionHeader, DataTable, Empty } from '../components/ui'; import { BarChart, LineChart } from '../components/charts'; import { RussiaMap, shortLabel } from '../components/RussiaMap'; import type { RegionValue } from '../components/RussiaMap'; -import { amount, monthLabel, percent, ratio, people as peopleLabel } from '../lib/format'; +import { amount, monthLabel, percent, people as peopleLabel } from '../lib/format'; import { HEADCOUNT_METRICS, headcountByCompany, @@ -26,13 +26,11 @@ export function People({ dataset }: { dataset: Dataset }) { // раздел всегда показывает последний месяц в данных, фильтра периода нет const visibleMonths = months; const lastMonth = months[months.length - 1] ?? ''; - const previousMonth = months[months.length - 2] ?? ''; const yearMonths = useMemo(() => monthsOfLastYear(months), [months]); const regionMap = useMemo(() => regionByCompanyName(dataset), [dataset]); const companiesLast = headcountByCompany(dataset.people, lastMonth); - const companiesPrevious = headcountByCompany(dataset.people, previousMonth); const oprLast = peopleMetricByCompany(dataset.people, lastMonth, HEADCOUNT_METRICS[0]); const rppLast = peopleMetricByCompany(dataset.people, lastMonth, HEADCOUNT_METRICS[1]); const rssLast = peopleMetricByCompany(dataset.people, lastMonth, HEADCOUNT_METRICS[2]); @@ -214,7 +212,6 @@ export function People({ dataset }: { dataset: Dataset }) { { key: 'disabled', label: 'Инвалиды', width: '7%' }, { key: 'svo', label: 'Участники СВО', width: '8%' }, { key: 'payroll', label: 'ФОТ', unit: 'за месяц', width: '11%' }, - { key: 'change', label: 'К прошлому месяцу', width: '9%' }, ]} rows={sortedEntries(companiesLast).map(([company, total]) => ({ key: company, @@ -234,7 +231,6 @@ export function People({ dataset }: { dataset: Dataset }) { amount(disabledLast.get(company) ?? 0), amount(svoLast.get(company) ?? 0), payrollLast.has(company) ? `${amount((payrollLast.get(company) ?? 0) * 1e6)} руб.` : 'нет данных', - , ], }))} footer={[