docs(test): 更新电表箱装配业务回归测试文档

- 将文档从代码审计任务转换为端到端业务回归测试链路
- 重新组织文档结构为链路总览、示例数据基线和详细步骤
- 添加完整的业务场景清单涵盖WMS/MES/工位终端三大系统
- 定义统一的测试数据包括产品型号、物料清单、工位派工等
- 提供详细的步骤断言和数量等式验证方法
- 建立贯穿全链路的数据流向和状态变更追踪体系
This commit is contained in:
SunYF
2026-09-21 10:48:53 +08:00
parent 0d34bcd6a3
commit 132c3ed6bd
63 changed files with 3309 additions and 5784 deletions
+34
View File
@@ -219,6 +219,36 @@ var (
},
},
}
// DockColumns holds the columns for the "dock" table.
DockColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt, Increment: true},
{Name: "dock_code", Type: field.TypeString, Unique: true, Size: 20},
{Name: "name", Type: field.TypeString, Size: 64, Default: ""},
{Name: "dock_type", Type: field.TypeString, Size: 16, Default: "line"},
{Name: "station_no", Type: field.TypeInt, Default: 0},
{Name: "has_pallet", Type: field.TypeBool, Default: false},
{Name: "pallet_ref", Type: field.TypeString, Nullable: true, Size: 64, Default: ""},
{Name: "status", Type: field.TypeString, Size: 20, Default: "ENABLED"},
{Name: "created_at", Type: field.TypeTime},
}
// DockTable holds the schema information for the "dock" table.
DockTable = &schema.Table{
Name: "dock",
Columns: DockColumns,
PrimaryKey: []*schema.Column{DockColumns[0]},
Indexes: []*schema.Index{
{
Name: "dock_dock_code",
Unique: true,
Columns: []*schema.Column{DockColumns[1]},
},
{
Name: "dock_dock_type",
Unique: false,
Columns: []*schema.Column{DockColumns[3]},
},
},
}
// EventLogColumns holds the columns for the "event_log" table.
EventLogColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt, Increment: true},
@@ -1129,6 +1159,7 @@ var (
AttachmentTable,
WorkOrderBomTable,
DailyPlanTable,
DockTable,
EventLogTable,
InspectionRecordTable,
LinePointTable,
@@ -1176,6 +1207,9 @@ func init() {
DailyPlanTable.Annotation = &entsql.Annotation{
Table: "daily_plan",
}
DockTable.Annotation = &entsql.Annotation{
Table: "dock",
}
EventLogTable.Annotation = &entsql.Annotation{
Table: "event_log",
}