feat: import reports from Excel

The /Import/StroyBot/Reports endpoint only validates the file, so the
check now runs as soon as a file is picked. When there are no errors,
"Import" builds the reports from the ids in the response and saves them
with the same Dataverse code as the report form: one report per date,
company, shift and object; resources nested under their work; idle and
repair hours as separate rows.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Тимур Городецкий
2026-10-22 17:01:27 +05:00
parent eb646193fa
commit 1ba67fe4c1
32 changed files with 1382 additions and 4 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ export const PAGE_IDS = [
'import',
'resources',
'binder',
'weather'
'weather',
'reportImport'
] as const;
export type PageId = (typeof PAGE_IDS)[number];