feat: implement Excel merge functionality for data extraction

- Add mergeFiles() method in ExtractorService to combine downloaded batch files
- Add saveMergedOrders() method to output full 31-column Excel format
- Update recordCount to return actual material record count
- Add missing field mappings in OrderHeader type and ExcelParser:
  - factory, materialStatus, planNumber, materialType
  - department, remark, createDate, approveDate
- Output file named with timestamp: merged_YYYYMMDDHHMMSS.xlsx

Co-Authored-By: Claude (glm-5) <noreply@anthropic.com>
This commit is contained in:
Misaka
2026-03-03 21:32:11 +08:00
parent 00b120c762
commit e13bb15969
3 changed files with 198 additions and 2 deletions

View File

@@ -81,6 +81,18 @@ export interface OrderHeader {
/** Order title (离散备料计划) */
title?: string
/** Factory (工厂) */
factory?: string
/** Material status (备料状态) */
materialStatus?: string
/** Plan number (备料计划单号) */
planNumber?: string
/** Material type (备料类型) */
materialType?: string
/** Production department (生产部门) */
productionDepartment?: string
@@ -102,12 +114,27 @@ export interface OrderHeader {
/** Unit (单位) */
unit?: string
/** Department (用料部门) */
department?: string
/** Remark (备注) */
remark?: string
/** Required date (需用日期) */
requiredDate?: string
/** Creator (制单人) */
creator?: string
/** Create date (制单日期) */
createDate?: string
/** Approver (审批人) */
approver?: string
/** Approve date (审批日期) */
approveDate?: string
/** Printer (打印人) */
printer?: string