feat: implement Excel parser service
Implement Excel parsing module for ERP exported files following TDD principles. Key features: - Parse Excel files with multiple orders per file - Extract order header information (production order, product code, etc.) - Extract material data rows with 13 fields - Handle empty orders gracefully - Detect footer rows (制单人/打印人) - Map Chinese field names to English property names - Support field name mapping from Python reference Implementation: - ExcelParser class with parse() method - DiscreteMaterialPlan and ExcelParseOptions types - OrderHeader interface for order metadata - Test fixtures with realistic Excel structure - Comprehensive unit tests (3 tests, all passing) Reference: playwrite/utils/excel_converter.py Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
BIN
tests/fixtures/test-export.xlsx
vendored
Normal file
BIN
tests/fixtures/test-export.xlsx
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user