fix: Исправлен расчёт прогресса загрузки документов

- Было: (currentDocNumber / totalDocs) * 100
  Документ 2/2 показывал 100% ДО загрузки

- Стало: ((currentDocNumber - 1) / totalDocs) * 100
  Документ 1/2: 0% (до загрузки) → 50% (после)
  Документ 2/2: 50% (до загрузки) → 100% (после)
This commit is contained in:
AI Assistant
2025-10-29 13:56:33 +03:00
parent 67f054d0b9
commit 145a9bd205

View File

@@ -215,11 +215,11 @@ const StepDocumentUpload: React.FC<Props> = ({
Документ {currentDocNumber} из {totalDocs}
</span>
<span style={{ fontSize: 12, color: '#666' }}>
{Math.round((currentDocNumber / totalDocs) * 100)}% завершено
{Math.round(((currentDocNumber - 1) / totalDocs) * 100)}% завершено
</span>
</div>
<Progress
percent={Math.round((currentDocNumber / totalDocs) * 100)}
percent={Math.round(((currentDocNumber - 1) / totalDocs) * 100)}
showInfo={false}
strokeColor="#1890ff"
/>