feat: add production order number column to BOM extraction output
All checks were successful
NTFY Notification / notify (push) Successful in 4s

- Add 生产订单号 as the first column in output (13 columns total)
- Read production order number from column A of input worksheet
- Only display production order number on first row for each product model
- Set material code column to text format to preserve leading zeros
- Update OutputColumns enum indices in M04_Config.bas
- Update ReadInputModels to return 2 columns (order number + model)
- Update ProcessSingleModel, GenerateMaterialRow, GenerateErrorRow signatures
- Update WriteExtractionResults to write 13 columns with text formatting

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-02-24 14:28:24 +08:00
parent 0579a546d3
commit 24a54bd1ea
2 changed files with 104 additions and 72 deletions

View File

@@ -28,18 +28,19 @@ Public Const INPUT_COL_PRODUCT_MODEL As String = "产品型号"
' 输出列枚举
Public Enum OutputColumns
oc_OriginalModel = 1 ' 原始产品型
oc_Azxs = 2 ' 安装形式
oc_Bkxs = 3 ' 表壳形式
oc_Gclj = 4 ' 过程连接
oc_Jycz = 5 ' 接液材质
oc_Lcfw = 6 ' 量程范围
oc_Fjgn = 7 ' 附加功能
oc_MaterialType = 8 ' 物料类型
oc_MaterialName = 9 ' 物料名称
oc_MaterialCode = 10 ' 物料编码
oc_MaterialQty = 11 ' 物料数量
oc_Remarks = 12 ' 提取备注
oc_ProductionOrderNo = 1 ' 生产订单
oc_OriginalModel = 2 ' 原始产品型号
oc_Azxs = 3 ' 安装形式
oc_Bkxs = 4 ' 表壳形式
oc_Gclj = 5 ' 过程连
oc_Jycz = 6 ' 接液材质
oc_Lcfw = 7 ' 量程范围
oc_Fjgn = 8 ' 附加功能
oc_MaterialType = 9 ' 物料类型
oc_MaterialName = 10 ' 物料名称
oc_MaterialCode = 11 ' 物料编码
oc_MaterialQty = 12 ' 物料数量
oc_Remarks = 13 ' 提取备注
End Enum
' 型号解析常量