[AURORA-2014] - Расхождения с макетами в карточке консолидации, справочнике ГК и окне корректировки
- добавлен разделить над футером в модальном окне - в Блоках «Консолидация» и «Организация» добавлена обводка - модальное окно корректировок переведено на использование AppModal
This commit is contained in:
parent
ab46262bd9
commit
c08f7149a1
@ -7,7 +7,9 @@
|
|||||||
padding: 16px !important;
|
padding: 16px !important;
|
||||||
}
|
}
|
||||||
.appModal .ant-modal-footer {
|
.appModal .ant-modal-footer {
|
||||||
padding: 0px 16px 16px 16px !important;
|
margin-top: 0 !important;
|
||||||
|
padding: 16px !important;
|
||||||
|
border-top: 1px solid #f0f0f0 !important;
|
||||||
}
|
}
|
||||||
.appModal .ant-modal-header {
|
.appModal .ant-modal-header {
|
||||||
border-bottom: 1px solid #f0f0f0 !important;
|
border-bottom: 1px solid #f0f0f0 !important;
|
||||||
|
|||||||
@ -93,6 +93,7 @@ export function ConsolidationPage() {
|
|||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
minHeight: 0,
|
minHeight: 0,
|
||||||
borderRadius: 12,
|
borderRadius: 12,
|
||||||
|
border: '1px solid #e4e7ec',
|
||||||
}}>
|
}}>
|
||||||
{/* после «Взять в работу» перечитываем и панель «Организации»: в ней «Ответственный» */}
|
{/* после «Взять в работу» перечитываем и панель «Организации»: в ней «Ответственный» */}
|
||||||
<ConsoleTableWidget onVersionLocked={() => setReloadKey((k) => k + 1)} />
|
<ConsoleTableWidget onVersionLocked={() => setReloadKey((k) => k + 1)} />
|
||||||
@ -108,6 +109,7 @@ export function ConsolidationPage() {
|
|||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
minHeight: 0,
|
minHeight: 0,
|
||||||
borderRadius: 12,
|
borderRadius: 12,
|
||||||
|
border: '1px solid #e4e7ec',
|
||||||
}}>
|
}}>
|
||||||
<ConsoleLegalEntitiesTable reloadKey={reloadKey} onDrawerOpen={setPanelEntity} />
|
<ConsoleLegalEntitiesTable reloadKey={reloadKey} onDrawerOpen={setPanelEntity} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
// Окно «Корректировка операции»: исходные строки ОСВ и распределение корректировки по двум сторонам агрегата, живой контроль,
|
// Окно «Корректировка операции»: исходные строки ОСВ и распределение корректировки по двум сторонам агрегата, живой контроль,
|
||||||
// комментарий. Правки статей и комментария пишутся в черновик (localStorage); действия со строками ОСВ уходят на сервер сразу.
|
// комментарий. Правки статей и комментария пишутся в черновик (localStorage); действия со строками ОСВ уходят на сервер сразу.
|
||||||
import { Alert, App, Button, Input, Modal } from 'antd';
|
import { Alert, App, Button, Input } from 'antd';
|
||||||
import { useEffect, useMemo, useRef, useState } from 'react';
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
||||||
import { useCurrentUser } from '../../auth/MeContext';
|
import { useCurrentUser } from '../../auth/MeContext';
|
||||||
|
import { AppModal } from '../../components/AppModal/AppModal';
|
||||||
import { allocate, saveCorrection } from '../../services/api/corrections';
|
import { allocate, saveCorrection } from '../../services/api/corrections';
|
||||||
import type { CorrectionAggregateOut, CorrectionEntryOut, CorrectionTableOut, Side, UnallocatedEntryOut } from '../../types/corrections';
|
import type { CorrectionAggregateOut, CorrectionEntryOut, CorrectionTableOut, Side, UnallocatedEntryOut } from '../../types/corrections';
|
||||||
import { AllocationPicker } from './AllocationPicker';
|
import { AllocationPicker } from './AllocationPicker';
|
||||||
@ -277,7 +278,7 @@ export function CorrectionEditorModal({ versionId, table, aggregateKey, editable
|
|||||||
const hint = editable ? null : readOnlyHint(table.read_only_reason);
|
const hint = editable ? null : readOnlyHint(table.read_only_reason);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal
|
<AppModal
|
||||||
open
|
open
|
||||||
title='Корректировка операции'
|
title='Корректировка операции'
|
||||||
width={1100}
|
width={1100}
|
||||||
@ -399,6 +400,6 @@ export function CorrectionEditorModal({ versionId, table, aggregateKey, editable
|
|||||||
onClose={() => setPickerSide(null)}
|
onClose={() => setPickerSide(null)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Modal>
|
</AppModal>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user