fix: обновить панель Организации

This commit is contained in:
maxim 2026-10-19 20:38:41 +03:00
parent 96f2b9a6d9
commit a7600444e6
4 changed files with 53 additions and 9 deletions

View File

@ -64,9 +64,8 @@ export function ConsoleLegalEntitiesTable({ onDrawerOpen, reloadKey }: { onDrawe
onDrawerOpen(); onDrawerOpen();
}, },
}); });
if (consolidationData === null) {
return ( return (
<>
<div style={{ display: 'flex', flexDirection: 'column', height: '100%' }}> <div style={{ display: 'flex', flexDirection: 'column', height: '100%' }}>
<Space <Space
style={{ style={{
@ -74,6 +73,7 @@ export function ConsoleLegalEntitiesTable({ onDrawerOpen, reloadKey }: { onDrawe
justifyContent: 'space-between', justifyContent: 'space-between',
padding: '12px 16px', padding: '12px 16px',
flex: 0, flex: 0,
borderBottom: '1px solid rgba(0, 0, 0, 0.05)',
}}> }}>
<div style={{ display: 'flex', alignItems: 'baseline', gap: 8, margin: 0 }}> <div style={{ display: 'flex', alignItems: 'baseline', gap: 8, margin: 0 }}>
<h2 <h2
@ -86,17 +86,61 @@ export function ConsoleLegalEntitiesTable({ onDrawerOpen, reloadKey }: { onDrawe
}}> }}>
Организации Организации
</h2> </h2>
<span style={{ fontSize: 13, color: 'rgb(102, 112, 133)' }}>{rawRows.length} шт.</span> <span style={{ fontSize: 13, color: 'rgb(102, 112, 133)' }}>Выберите консолидацию</span>
</div>
</Space>
<div
style={{
flex: '1',
display: 'flex',
fontStyle: 'normal',
alignItems: 'center',
fontSize: '13px',
color: '#667085',
justifyContent: 'center',
borderTop: '1px solid #f1f5f9',
}}>
Выберите консолидацию выше
</div>
</div>
);
}
return (
<>
<div style={{ display: 'flex', flexDirection: 'column', height: '100%' }}>
<Space
style={{
width: '100%',
justifyContent: 'space-between',
padding: '12px 16px',
flex: 0,
}}>
<div style={{ display: 'flex', alignItems: 'baseline', gap: 4, margin: 0, flexDirection: 'column' }}>
<div style={{ display: 'flex', alignItems: 'baseline', gap: 8, margin: 0 }}>
<h2
style={{
display: 'block',
boxSizing: 'border-box',
fontSize: 17,
fontWeight: 600,
margin: 0,
}}>
Организации
</h2>
<span style={{ fontSize: 13, color: 'rgb(102, 112, 133)' }}>{rawRows.length} шт.</span>
</div>
{consolidationData && ( {consolidationData && (
// «Утверждён в РФ» / «Верифицирован в ГО» — маршрут согласования, Срез 7 // «Утверждён в РФ» / «Верифицирован в ГО» — маршрут согласования, Срез 7
<span <div
style={{ style={{
fontSize: 13, fontSize: 13,
color: 'rgb(102, 112, 133)', color: 'rgb(102, 112, 133)',
marginLeft: 8, marginLeft: 8,
}}> }}>
Ответственный: {responsibleName(consolidationData)}&nbsp;&nbsp; Утверждён в РФ: —&nbsp;&nbsp; Верифицирован в ГО: — Ответственный: {responsibleName(consolidationData)}&nbsp;&nbsp; Утверждён в РФ: —&nbsp;&nbsp; Верифицирован в ГО: —
</span> </div>
)} )}
</div> </div>
<div> <div>

View File

@ -47,7 +47,7 @@ export const membersConfig: TableConfig<MemberRow> = {
key: 'uploaded_osvs', key: 'uploaded_osvs',
title: 'ОСВ', title: 'ОСВ',
features: { multiselect: true }, features: { multiselect: true },
render: (v) => <TableTag {...TAG_PRESETS.default} text={String(v ?? '')} />, render: (v) => <TableTag color='#667085' bgColor='rgb(248, 250, 252)' borderColor='rgb(208, 213, 221)' text={String(v ?? '')} />,
}, },
{ key: 'inn', title: 'ИНН', features: { search: true, multiselect: true } }, { key: 'inn', title: 'ИНН', features: { search: true, multiselect: true } },

View File

@ -13,7 +13,7 @@ export const statusMapping: Record<FileStatus, FileRussianStatus> = {
export const statusColorMapping: Record<FileRussianStatus, Preset> = { export const statusColorMapping: Record<FileRussianStatus, Preset> = {
'В обработке': TAG_PRESETS.geekblue, 'В обработке': TAG_PRESETS.geekblue,
Загружен: TAG_PRESETS.green, Загружен: TAG_PRESETS.green,
Отсутствует: TAG_PRESETS.red, Отсутствует: TAG_PRESETS.default,
Ошибка: TAG_PRESETS.red, Ошибка: TAG_PRESETS.red,
Распознан: TAG_PRESETS.gold, Распознан: TAG_PRESETS.gold,
'Требуется проверка': TAG_PRESETS.orange, 'Требуется проверка': TAG_PRESETS.orange,

View File

@ -7,7 +7,7 @@
.section { .section {
margin-bottom: 0px; margin-bottom: 0px;
padding: 12px; /* padding: 12px; */
border-radius: 10px; border-radius: 10px;
} }