feat: auto-generate markdown report after cleaner execution

- Add CleanerReportGenerator service to create execution reports
- Extend OrderCleanDetail with skippedMaterials for detailed tracking
- Record skip reasons for each material (protected range, pending qty, etc.)
- Generate timestamped markdown reports in logs/reports/ directory
- Reports include execution summary, order details, skip reasons, and errors
This commit is contained in:
Misaka_Company
2026-03-05 16:19:40 +08:00
parent 224a42e44b
commit a906f34ac2
4 changed files with 286 additions and 2 deletions

View File

@@ -27,11 +27,19 @@ export interface CleanerResult {
details: OrderCleanDetail[]
}
export interface SkippedMaterial {
materialCode: string
materialName: string
rowNumber: number
reason: string
}
export interface OrderCleanDetail {
orderNumber: string
materialsDeleted: number
materialsSkipped: number
errors: string[]
skippedMaterials: SkippedMaterial[]
}
/**