fix: обновить панель Организации
This commit is contained in:
parent
96f2b9a6d9
commit
a7600444e6
@ -64,9 +64,8 @@ export function ConsoleLegalEntitiesTable({ onDrawerOpen, reloadKey }: { onDrawe
|
||||
onDrawerOpen();
|
||||
},
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
if (consolidationData === null) {
|
||||
return (
|
||||
<div style={{ display: 'flex', flexDirection: 'column', height: '100%' }}>
|
||||
<Space
|
||||
style={{
|
||||
@ -74,6 +73,7 @@ export function ConsoleLegalEntitiesTable({ onDrawerOpen, reloadKey }: { onDrawe
|
||||
justifyContent: 'space-between',
|
||||
padding: '12px 16px',
|
||||
flex: 0,
|
||||
borderBottom: '1px solid rgba(0, 0, 0, 0.05)',
|
||||
}}>
|
||||
<div style={{ display: 'flex', alignItems: 'baseline', gap: 8, margin: 0 }}>
|
||||
<h2
|
||||
@ -86,17 +86,61 @@ export function ConsoleLegalEntitiesTable({ onDrawerOpen, reloadKey }: { onDrawe
|
||||
}}>
|
||||
Организации
|
||||
</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 && (
|
||||
// «Утверждён в РФ» / «Верифицирован в ГО» — маршрут согласования, Срез 7
|
||||
<span
|
||||
<div
|
||||
style={{
|
||||
fontSize: 13,
|
||||
color: 'rgb(102, 112, 133)',
|
||||
marginLeft: 8,
|
||||
}}>
|
||||
Ответственный: {responsibleName(consolidationData)} Утверждён в РФ: — Верифицирован в ГО: —
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@ -47,7 +47,7 @@ export const membersConfig: TableConfig<MemberRow> = {
|
||||
key: 'uploaded_osvs',
|
||||
title: 'ОСВ',
|
||||
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 } },
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ export const statusMapping: Record<FileStatus, FileRussianStatus> = {
|
||||
export const statusColorMapping: Record<FileRussianStatus, Preset> = {
|
||||
'В обработке': TAG_PRESETS.geekblue,
|
||||
Загружен: TAG_PRESETS.green,
|
||||
Отсутствует: TAG_PRESETS.red,
|
||||
Отсутствует: TAG_PRESETS.default,
|
||||
Ошибка: TAG_PRESETS.red,
|
||||
Распознан: TAG_PRESETS.gold,
|
||||
'Требуется проверка': TAG_PRESETS.orange,
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
|
||||
.section {
|
||||
margin-bottom: 0px;
|
||||
padding: 12px;
|
||||
/* padding: 12px; */
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user