Files
bj_power/test/reports/RUN20261108-12-场景1.json
T
SunYF af554cea75 feat: 同步失败台账双向可重试 + 拧紧枪按工位配置 + 虚拟工位体系 + 去Redis与文档口径对齐
- 同步失败台账:MES/WMS 双端新增台账与页面,跨系统通知失败落台账、人工重试或标记已处理,不自动重传;重试前先判对端终态;叫料、配送、出库回写失败提示指向台账;补幂等建表脚本与菜单权限。
- 拧紧枪:新增按工位配置页,展示控制器地址与三把枪通道号(仅供查看,不参与采集校验);「允许手填」由全局开关改为每工位开关,关闭时校验该工位已配控制器;终端启动/登录上报配置并按本工位拉取,扭矩手填框按本工位置灰;补全局值迁移到各工位的脚本。
- 工位体系:终端未配置工位号时登录页可选(含虚拟工位),固定工位模式保留;虚拟/线下位不叫料、不退料、不作转产目标,未采集绑定放行并说明原因;叫料期望接驳台改为选填。
- AGV与出库:补「出库单已送达」回写;空车回充、接驳台传感器失联、配送状态更新失败均落预警或留痕并提示人工核对;人工出库不引入送达状态;出库单支持目标工位/接驳台并扩展导出列。
- 基础设施:看板缓存由Redis改为MES进程内实现,文档与启动脚本同步去Redis;扫码监听支持多地址、端口被占自动降级;PLC对账与工位报警在MES不可达时降级放行并留日志。
- 文档与帮助:案例与部署手册按实测订正(工位绑定、菜单名称、补料由班组长代提、菜单覆盖对照、虚拟工位);迁移脚本改为本地即时执行并登记7个已执行脚本;三端页面帮助改为「业务/操作/影响范围/后果」四要素。
- 测试:新增独立Go模块,按三个业务场景做真实HTTP与真实写库的流水测试,含运行报告。
2026-11-09 18:58:47 +08:00

1883 lines
78 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"runBatch": "RUN20261108-12",
"scenario": "场景1",
"startedAt": "2026-11-09 10:03:30",
"finishedAt": "2026-11-09 10:03:31",
"probes": [
{
"name": "MES",
"url": "http://127.0.0.1:8888",
"ok": true,
"detail": "HTTP 405"
},
{
"name": "WMS",
"url": "http://127.0.0.1:8890",
"ok": true,
"detail": "HTTP 200"
},
{
"name": "工位终端",
"url": "http://127.0.0.1:8892",
"ok": true,
"detail": "HTTP 200"
},
{
"name": "看板",
"url": "http://127.0.0.1:5173",
"ok": true,
"detail": "HTTP 200"
}
],
"loginErrors": null,
"dbErrors": null,
"results": [
{
"stepId": "S1-00",
"caseLine": "案例.md:59,136",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "运行批次=RUN20261108-12,T=2026-11-09,T+1=2026-11-10,T+2=2026-11-11(日期相对化,无写死日期)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-00",
"caseLine": "案例.md:59,136",
"layer": "L2 数据库落库",
"expect": "工位 3/6/12 全部启用",
"actual": "select count(*) from station where station_no in (3,6,12) and status='ENABLED' = \"3\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-00",
"caseLine": "案例.md:59,136",
"layer": "L2 数据库落库",
"expect": "存在启用产品工艺(工单必选工艺)",
"actual": "select count(*) from product_process where status='ACTIVE' = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-00",
"caseLine": "案例.md:59,136",
"layer": "L2 数据库落库",
"expect": "工位终端本地无离线索列表(2026-11-05 已拆)",
"actual": "select count(*) from sqlite_master where type='table' and name in ('report_queue','torque_results') = \"0\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-00",
"caseLine": "案例.md:59,136",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "取到真实 product_process.id=\"1\";路线工位真实 flow_id 将在 S1-03 现查",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/1",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "物料 DX100-XT-001 已在档(幂等跳过创建,不重复写库)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/1",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "WMS 物料档案落库 DX100-XT-001",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/1",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "MES 物料副本同源同步 DX100-XT-001",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/2",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "物料 DX100-MB-002 已在档(幂等跳过创建,不重复写库)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/2",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "WMS 物料档案落库 DX100-MB-002",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/2",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "MES 物料副本同源同步 DX100-MB-002",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/3",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "物料 DX100-MP-005 已在档(幂等跳过创建,不重复写库)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/3",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "WMS 物料档案落库 DX100-MP-005",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/3",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "MES 物料副本同源同步 DX100-MP-005",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/4",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "物料 DX100-QL-004 已在档(幂等跳过创建,不重复写库)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/4",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "WMS 物料档案落库 DX100-QL-004",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/4",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "MES 物料副本同源同步 DX100-QL-004",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/5",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "物料 DX-100 已在档(幂等跳过创建,不重复写库)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/5",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "WMS 物料档案落库 DX-100",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01/5",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L2 数据库落库",
"expect": "MES 物料副本同源同步 DX-100",
"actual": "select count(*) from materials where code=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-01",
"caseLine": "案例.md:62 / 流水1-1 :135-141",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "主数据真实编码:DX100-XT-001、DX100-MB-002、DX100-MP-005、DX100-QL-004、DX-100;口径差异:案例:62 走 Excel 批量导入,本步走同源单条建档(同一 materials 表)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/in1",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "入库 DX100-XT-001 ×8 成功(RUN20261108-12-IB-001-10700)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"RUN20261108-12-BATCH-001-10700\",\"inboundNo\":\"RUN20261108-12-IB-001-10700\",\"quantity\":8,\"snCount\":0}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/in1",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L2 数据库落库",
"expect": "入库单 RUN20261108-12-IB-001-10700 落库",
"actual": "select count(*) from inbound_orders where inbound_no=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/in2",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "入库 DX100-MB-002 ×8 成功(RUN20261108-12-IB-002-10700)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"RUN20261108-12-BATCH-002-10700\",\"inboundNo\":\"RUN20261108-12-IB-002-10700\",\"quantity\":8,\"snCount\":0}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/in2",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L2 数据库落库",
"expect": "入库单 RUN20261108-12-IB-002-10700 落库",
"actual": "select count(*) from inbound_orders where inbound_no=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/in3",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "入库 DX100-MP-005 ×8 成功(RUN20261108-12-IB-003-10700)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"RUN20261108-12-BATCH-003-10700\",\"inboundNo\":\"RUN20261108-12-IB-003-10700\",\"quantity\":8,\"snCount\":0}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/in3",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L2 数据库落库",
"expect": "入库单 RUN20261108-12-IB-003-10700 落库",
"actual": "select count(*) from inbound_orders where inbound_no=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/in4",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "入库 DX100-QL-004 ×20 成功(RUN20261108-12-IB-004-10700)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"\",\"inboundNo\":\"RUN20261108-12-IB-004-10700\",\"quantity\":20,\"snCount\":20}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/in4",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L2 数据库落库",
"expect": "入库单 RUN20261108-12-IB-004-10700 落库",
"actual": "select count(*) from inbound_orders where inbound_no=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/in5",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "成品工件 SN 入库登记 RUN20261108-12-SN-0001-10700",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"\",\"inboundNo\":\"RUN20261108-12-IB-005-10700\",\"quantity\":1,\"snCount\":1}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/in5",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L2 数据库落库",
"expect": "成品 SN 入库单落库",
"actual": "select count(*) from inbound_orders where inbound_no=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/pending",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "待检清单可读",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"inboundNo\":\"RUN20261108-12-IB-005-10700\",\"inboundType\":\"other\",\"ownershipType\":\"other\",\"ownershipNo\":\"RUN20261108-12-PROJ-001-10700\",\"materialCode\":\"DX-100\",\"materialName\":\"电表箱成品\",\"matManageMode\":3,\"snMode\":1,\"unInspectedQty\":1,\"detailsTotal\":1,\"inboundTime\":1794189811,\"inspectionNo\":\"RUN20261108-12-IBJ-001-10700\"},{\"inboundNo\":\"RUN20261108-12-I…",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/pending-detail",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "待检明细可读 RUN20261108-12-IB-001-10700",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":351,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-12-BATCH-001-10700\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/pending-detail",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "待检明细可读 RUN20261108-12-IB-002-10700",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":352,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-12-BATCH-002-10700\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/pending-detail",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "待检明细可读 RUN20261108-12-IB-003-10700",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":353,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-12-BATCH-003-10700\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/pending-detail",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "待检明细可读 RUN20261108-12-IB-004-10700",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":354,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-12-QL-0001-10700\",\"zoneCode\":\"Z02\"},{\"id\":355,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-12-QL-0002-10700\",\"zoneCode\":\"Z02\"},{\"id\":356,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-12-QL-0003-10700\",\"z…",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/pending-detail",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "待检明细可读 RUN20261108-12-IB-005-10700",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":374,\"itemType\":3,\"matManageMode\":3,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-12-SN-0001-10700\",\"zoneCode\":\"Z02\"}],\"page\":1,\"pageSize\":500,\"total\":1}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/pending",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "本轮入库单待检明细取得 24 条 targetId(按 Run 批次隔离,不触碰历史未检数据)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/inspect",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L1 接口响应",
"expect": "逐条判合格并提交检验结论",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"flipped\":24}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/quality",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L3 状态流转",
"expect": "DX100-XT-001 检验后质量状态=合格(仅合格可被 FIFO 选中)",
"actual": "当前状态 = \"合格\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/quality",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L3 状态流转",
"expect": "DX100-MB-002 检验后质量状态=合格(仅合格可被 FIFO 选中)",
"actual": "当前状态 = \"合格\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/quality",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L3 状态流转",
"expect": "DX100-MP-005 检验后质量状态=合格(仅合格可被 FIFO 选中)",
"actual": "当前状态 = \"合格\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/quality",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L3 状态流转",
"expect": "DX100-QL-004 检验后质量状态=合格(仅合格可被 FIFO 选中)",
"actual": "当前状态 = \"合格\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-02/inspect",
"caseLine": "案例.md:65-66 / 流水1-2 :143-149",
"layer": "L2 数据库落库",
"expect": "本批检验记录落库",
"actual": "select count(*) from inspection_records where inspection_no=$1 = \"24\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-03",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "工艺1 物料清单已存在(2 条),幂等跳过保存",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-03",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "工艺2 物料清单已存在(1 条),幂等跳过保存",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-03",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "工艺3 物料清单已存在(1 条),幂等跳过保存",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-03/create",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L1 接口响应",
"expect": "工单 RUN20261108-12-WO-001-10700 创建成功",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"warnings\":[]}}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-03/create",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L3 状态流转",
"expect": "工单初始状态 CREATED",
"actual": "当前状态 = \"CREATED\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-03/schedule",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L1 接口响应",
"expect": "自动排产生成 2026-11-09 计划",
"actual": "HTTP 200 / code=0 / message=\"排产已确认(待人工启用)\" / body={\"code\":0,\"message\":\"排产已确认(待人工启用)\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-03/schedule",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L2 数据库落库",
"expect": "日排产落库 1 行",
"actual": "select count(*) from daily_plan where order_no=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-03/plan-confirm",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L1 接口响应",
"expect": "启用日排产(PENDING→CONFIRMED,派生叫料池)",
"actual": "HTTP 200 / code=0 / message=\"保存成功\" / body={\"code\":0,\"message\":\"保存成功\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-03/release",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L1 接口响应",
"expect": "下发并开工(状态 CREATED→IN_PROGRESS)",
"actual": "HTTP 200 / code=0 / message=\"状态已更新\" / body={\"code\":0,\"message\":\"状态已更新\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-03/release",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L3 状态流转",
"expect": "工单状态 IN_PROGRESS",
"actual": "当前状态 = \"IN_PROGRESS\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-03",
"caseLine": "案例.md:69-70 / 流水1-3 :151-157",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "真实工单号=RUN20261108-12-WO-001-10700,真实工件号=RUN20261108-12-SN-0001-10700,真实路线组合=[map[flowId:1 stationNo:3] map[flowId:2 stationNo:6] map[flowId:3 stationNo:12]](flowId 取自 station 表现值)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-04",
"caseLine": "案例.md:73 / 流水1-4 :159-165",
"layer": "L1 接口响应",
"expect": "备料清单可读(只读页)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"rows\":[{\"planDate\":\"2026-11-09\",\"orderNo\":\"RUN20261108-04-WO-001-94686\",\"productName\":\"电表箱\",\"stationNo\":3,\"stationQty\":6,\"materialCode\":\"DX100-MB-002\",\"materialName\":\"面板\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"qty\":6,\"unitQty\":1,\"status\":\"PROCESSING\"},{\"planDate\":\"2026-11-09\",\"orderNo\":\"RUN20261108-04-WO-001-94686\",\"productName\":\"电表箱\",\"stationNo\":3…",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-04",
"caseLine": "案例.md:73 / 流水1-4 :159-165",
"layer": "L4 交付物",
"expect": "清单含工位3 箱体6/面板6、工位6 断路器12、工位12 铭牌6",
"actual": "响应片段:{\"code\":0,\"message\":\"ok\",\"data\":{\"rows\":[{\"planDate\":\"2026-11-09\",\"orderNo\":\"RUN20261108-04-WO-001-94686\",\"productName\":\"电表箱\",\"stationNo\":3,\"stationQty\":6,\"materialCode\":\"DX100-MB-002\",\"materialName\":\"面板\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"qty\":6…",
"pass": true,
"failReason": "若为空:备料需求由 MES 实时计算,需工单已下发开工且排产日期为今天及以后",
"status": "通过"
},
{
"stepId": "S1-04",
"caseLine": "案例.md:73 / 流水1-4 :159-165",
"layer": "L2 数据库落库",
"expect": "备料清单只读:GET 前后叫料池行数不变(案例:184 D16)",
"actual": "select count(*) from call_pool = \"4\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-05/online",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L1 接口响应",
"expect": "上线建档 RUN20261108-12-SN-0001-10700",
"actual": "HTTP 200 / code=0 / message=\"进线登记成功\" / body={\"code\":0,\"message\":\"进线登记成功\",\"data\":null}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-05/online",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L3 状态流转",
"expect": "在制工件上线(ONLINE)",
"actual": "当前状态 = \"ONLINE\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-05/call1",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L1 接口响应",
"expect": "工位3 第1 次叫料提交成包",
"actual": "HTTP 200 / code=0 / message=\"叫料已提交\" / body={\"code\":0,\"message\":\"叫料已提交\",\"data\":{\"count\":2}}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-05/call2",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L1 接口响应",
"expect": "工位3 第2 次叫料提交成包",
"actual": "HTTP 200 / code=0 / message=\"叫料已提交\" / body={\"code\":0,\"message\":\"叫料已提交\",\"data\":{\"count\":1}}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-05/call3",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L1 接口响应",
"expect": "工位6 第3 次叫料提交成包",
"actual": "HTTP 200 / code=0 / message=\"叫料已提交\" / body={\"code\":0,\"message\":\"叫料已提交\",\"data\":{\"count\":1}}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-05/call",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L2 数据库落库",
"expect": "叫料单落库(按包、按工位×物料聚合)",
"actual": "select count(distinct package_no) from material_request where id \u003e $1 = \"3\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-05/call",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L3 状态流转",
"expect": "叫料包内单据初始状态 PENDING(待备料)",
"actual": "当前状态 = \"PENDING\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-05",
"caseLine": "案例.md:76-82 / 流水1-5 :167-173",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "真实叫料单号=[MR1794189811196974100 MR1794189811196974101 MR1794189811215083700 MR1794189811225242200];真实叫料包号=[PK3-1794189811196974100 PK3-1794189811215083700 PK6-1794189811225242200]",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/complete1",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L1 接口响应",
"expect": "叫料单 MR1794189811196974100 完成备料(FIFO 选批/选 SN)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"agvNote\":\"(AGV 由 MES 自动派车)\",\"outboundNos\":\"OB20261109-111\",\"reqQty\":4,\"requestNo\":\"MR1794189811196974100\",\"sentQty\":4,\"short\":0}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/complete2",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L1 接口响应",
"expect": "叫料单 MR1794189811196974101 完成备料(FIFO 选批/选 SN)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"agvNote\":\"(AGV 由 MES 自动派车)\",\"outboundNos\":\"OB20261109-112\",\"reqQty\":6,\"requestNo\":\"MR1794189811196974101\",\"sentQty\":6,\"short\":0}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/complete3",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L1 接口响应",
"expect": "叫料单 MR1794189811215083700 完成备料(FIFO 选批/选 SN)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"agvNote\":\"(AGV 由 MES 自动派车)\",\"outboundNos\":\"OB20261109-113\",\"reqQty\":4,\"requestNo\":\"MR1794189811215083700\",\"sentQty\":4,\"short\":0}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/complete4",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L1 接口响应",
"expect": "叫料单 MR1794189811225242200 完成备料(FIFO 选批/选 SN)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"agvNote\":\"(AGV 由 MES 自动派车)\",\"outboundNos\":\"OB20261109-114,OB20261109-115,OB20261109-116,OB20261109-117,OB20261109-118,OB20261109-119,OB20261109-120,OB20261109-121,OB20261109-122,OB20261109-123,OB20261109-124,OB20261109-125\",\"reqQty\":12,\"requestNo\":\"MR1794189811225242200\",\"sentQty\":12,\"short\":0}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/complete",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L3 状态流转",
"expect": "叫料单状态 PENDING→SHIPPED",
"actual": "当前状态 = \"SHIPPED\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/out1",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L2 数据库落库",
"expect": "出库单号已回写叫料单 MR1794189811196974100",
"actual": "select count(*) from material_request where request_no=$1 and outbound_no is not null and outbound_no\u003c\u003e'' = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/out2",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L2 数据库落库",
"expect": "出库单号已回写叫料单 MR1794189811196974101",
"actual": "select count(*) from material_request where request_no=$1 and outbound_no is not null and outbound_no\u003c\u003e'' = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/out3",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L2 数据库落库",
"expect": "出库单号已回写叫料单 MR1794189811215083700",
"actual": "select count(*) from material_request where request_no=$1 and outbound_no is not null and outbound_no\u003c\u003e'' = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/out4",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L2 数据库落库",
"expect": "出库单号已回写叫料单 MR1794189811225242200",
"actual": "select count(*) from material_request where request_no=$1 and outbound_no is not null and outbound_no\u003c\u003e'' = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/delivery1",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L1 接口响应",
"expect": "按叫料包 PK3-1794189811196974100 建配送单(2 张叫料单,实际接驳台 DOCK05)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"deliveryNo\":\"DL1794189811316050400\"}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/delivery1",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L2 数据库落库",
"expect": "配送单落库(包 PK3-1794189811196974100)",
"actual": "select count(*) from delivery_order where package_no=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/delivery2",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L1 接口响应",
"expect": "按叫料包 PK3-1794189811215083700 建配送单(1 张叫料单,实际接驳台 DOCK05)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"deliveryNo\":\"DL1794189811323225300\"}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/delivery2",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L2 数据库落库",
"expect": "配送单落库(包 PK3-1794189811215083700)",
"actual": "select count(*) from delivery_order where package_no=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/delivery3",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L1 接口响应",
"expect": "按叫料包 PK6-1794189811225242200 建配送单(1 张叫料单,实际接驳台 DOCK11)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"deliveryNo\":\"DL1794189811328002600\"}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/delivery3",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L2 数据库落库",
"expect": "配送单落库(包 PK6-1794189811225242200)",
"actual": "select count(*) from delivery_order where package_no=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06/delivery",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L2 数据库落库",
"expect": "配送单明细快照落库(按包聚合)",
"actual": "select count(*) from delivery_order_item where delivery_no=$1 = \"2\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-06",
"caseLine": "案例.md:85-87 / 流水1-6 :175-181",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "真实出库单号=[OB20261109-111 OB20261109-112 OB20261109-113 OB20261109-114,OB20261109-115,OB20261109-116,OB20261109-117,OB20261109-118,OB20261109-119,OB20261109-120,OB20261109-121,OB20261109-122,OB20261109-123,OB20261109-124,OB20261109-125];本轮配送单号=[DL1794189811316050400 DL1794189811323225300 DL1794189811328002600](共 3 包)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-07/cancel-inflight1",
"caseLine": "案例.md:88-89 / 流水1-7 :183-189",
"layer": "L1 接口响应",
"expect": "收口历史在途任务 AGV5CC3D73A-9(GO_LOAD 段,biz=DL1794189618438476900)",
"actual": "HTTP 200 / code=0 / message=\"已取消\" / body={\"code\":0,\"message\":\"已取消\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-07/dispatch",
"caseLine": "案例.md:88-89 / 流水1-7 :183-189",
"layer": "L1 接口响应",
"expect": "库管按配送单手动派车(提交单据本身不派车)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"message\":\"配送单已派车(空车前往装货点,到位待令后确认装车)\"}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-07/dispatch",
"caseLine": "案例.md:88-89 / 流水1-7 :183-189",
"layer": "L3 状态流转",
"expect": "配送单状态 PENDING→DISPATCHED",
"actual": "当前状态 = \"DISPATCHED\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-07/dispatch",
"caseLine": "案例.md:88-89 / 流水1-7 :183-189",
"layer": "L2 数据库落库",
"expect": "AGV 任务落库(按配送单驱动)",
"actual": "select count(*) from agv_tasks where biz_no=$1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-07",
"caseLine": "案例.md:88-89 / 流水1-7 :183-189",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "GO_LOAD 任务=AGV0383AA96-3,送货目标接驳台=DOCK05",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-07/clear-dock",
"caseLine": "案例.md:88-89 / 流水1-7 :183-189",
"layer": "L1 接口响应",
"expect": "人工清台 DOCK05(台账兜底,不碰库存)",
"actual": "HTTP 200 / code=3234 / message=\"该接驳台账账本无托盘,无需清台\" / body={\"code\":3234,\"message\":\"该接驳台账账本无托盘,无需清台\"}\n",
"pass": false,
"failReason": "业务码期望 0 实际 3234",
"status": "失败"
},
{
"stepId": "S1-07/arrive1",
"caseLine": "案例.md:88-89 / 流水1-7 :183-189",
"layer": "L1 接口响应",
"expect": "刷新状态:GO_LOAD 段到位待令",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"changed\":1}}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-07/load",
"caseLine": "案例.md:88-89 / 流水1-7 :183-189",
"layer": "L1 接口响应",
"expect": "到位待令后人工「确认装车并送货」(含强提确认)",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"ok\":true}}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-07/arrive2",
"caseLine": "案例.md:88-89 / 流水1-7 :183-189",
"layer": "L1 接口响应",
"expect": "刷新状态:TRANSPORT 段到位待令",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"changed\":1}}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-07/unload",
"caseLine": "案例.md:88-89 / 流水1-7 :183-189",
"layer": "L1 接口响应",
"expect": "到实际接驳台后人工「卸货完成并放行」",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"ok\":true}}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-07/arrive3",
"caseLine": "案例.md:88-89 / 流水1-7 :183-189",
"layer": "L1 接口响应",
"expect": "刷新状态:回充段自动结束",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"changed\":1}}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-07/done",
"caseLine": "案例.md:88-89 / 流水1-7 :183-189",
"layer": "L3 状态流转",
"expect": "任务结束配送单自动置「已送达」(DONE)",
"actual": "当前状态 = \"DONE\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-07/outbound",
"caseLine": "案例.md:88-89 / 流水1-7 :183-189",
"layer": "L3 状态流转",
"expect": "任务结束出库单自动置「已送达」",
"actual": "当前状态 = \"已送达\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-08/sign1",
"caseLine": "案例.md:92 / 流水1-8 :191-197",
"layer": "L1 接口响应",
"expect": "工位待接料区「接料确认」MR1794189811196974100",
"actual": "HTTP 200 / code=0 / message=\"已签收\" / body={\"code\":0,\"message\":\"已签收\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-08/sign2",
"caseLine": "案例.md:92 / 流水1-8 :191-197",
"layer": "L1 接口响应",
"expect": "工位待接料区「接料确认」MR1794189811196974101",
"actual": "HTTP 200 / code=0 / message=\"已签收\" / body={\"code\":0,\"message\":\"已签收\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-08/sign3",
"caseLine": "案例.md:92 / 流水1-8 :191-197",
"layer": "L1 接口响应",
"expect": "工位待接料区「接料确认」MR1794189811215083700",
"actual": "HTTP 200 / code=0 / message=\"已签收\" / body={\"code\":0,\"message\":\"已签收\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-08/sign4",
"caseLine": "案例.md:92 / 流水1-8 :191-197",
"layer": "L1 接口响应",
"expect": "工位待接料区「接料确认」MR1794189811225242200",
"actual": "HTTP 200 / code=0 / message=\"已签收\" / body={\"code\":0,\"message\":\"已签收\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-08",
"caseLine": "案例.md:92 / 流水1-8 :191-197",
"layer": "L3 状态流转",
"expect": "叫料单状态 SHIPPED→DONE(已完成)",
"actual": "当前状态 = \"DONE\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-09/bind-flow1",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L1 接口响应",
"expect": "工位3 按真实工艺物料清单前置绑定(2 条,批次号来自本轮入库)",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"bound\":2,\"panel\":{\"enabled\":true,\"required\":[{\"materialCode\":\"DX100-XT-001\",\"materialName\":\"箱体\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"snMode\":2,\"unitQty\":2,\"need\":2,\"bound\":[\"RUN20261108-12-BATCH-001-10700\"],\"boundCount\":1,\"complete\":true},{\"materialCode\":\"DX100-MB-002\",\"materialName\":\"面板\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"snMode\":2,\"unitQty\":1,…",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-09/bind-flow2",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L1 接口响应",
"expect": "工位6 按真实工艺物料清单前置绑定(2 条,批次号来自本轮入库)",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"bound\":2,\"panel\":{\"enabled\":true,\"required\":[{\"materialCode\":\"DX100-QL-004\",\"materialName\":\"微型断路器\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"snMode\":1,\"unitQty\":2,\"need\":2,\"bound\":[\"RUN20261108-12-QL-0001-10700\",\"RUN20261108-12-QL-0002-10700\"],\"boundCount\":2,\"complete\":true}],\"complete\":true,\"missing\":\"\",\"stationNo\":6,\"flowId\":2,\"lastBinds\":[{\"id\":192,…",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-09/bind-flow3",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L1 接口响应",
"expect": "工位12 按真实工艺物料清单前置绑定(1 条,批次号来自本轮入库)",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"bound\":1,\"panel\":{\"enabled\":false,\"required\":[],\"complete\":true,\"missing\":\"\",\"stationNo\":12,\"flowId\":3,\"lastBinds\":[{\"id\":193,\"sn\":\"RUN20261108-12-SN-0001-10700\",\"orderNo\":\"RUN20261108-12-WO-001-10700\",\"flowId\":3,\"stationNo\":\"12\",\"materialCode\":\"DX100-MP-005\",\"materialName\":\"铭牌\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"snMode\":2,\"bindValue\":\"RUN20261108-12-…",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-09/report1",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L1 接口响应",
"expect": "工位3 报工完成(steps 检测确认 1 条、signs 签字 1 条)",
"actual": "HTTP 200 / code=0 / message=\"报工成功\" / body={\"code\":0,\"message\":\"报工成功\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-09/report2",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L1 接口响应",
"expect": "工位6 报工完成(steps 检测确认 0 条、signs 签字 1 条)",
"actual": "HTTP 200 / code=0 / message=\"报工成功\" / body={\"code\":0,\"message\":\"报工成功\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-09/report3",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L1 接口响应",
"expect": "工位12 报工完成(steps 检测确认 0 条、signs 签字 0 条)",
"actual": "HTTP 200 / code=0 / message=\"报工成功\" / body={\"code\":0,\"message\":\"报工成功\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-09/bind",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L1 接口响应",
"expect": "工位6 装配物料逐颗绑定",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"bound\":10,\"panel\":{\"enabled\":true,\"required\":[{\"materialCode\":\"DX100-QL-004\",\"materialName\":\"微型断路器\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"snMode\":1,\"unitQty\":2,\"need\":2,\"bound\":[\"RUN20261108-12-QL-0001-10700\",\"RUN20261108-12-QL-0002-10700\",\"RUN20261108-12-QL-0003-10700\",\"RUN20261108-12-QL-0004-10700\",\"RUN20261108-12-QL-0005-10700\",\"RUN20261108-12-Q…",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-09/torque",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L1 接口响应",
"expect": "拧紧步骤逐颗录入扭矩",
"actual": "HTTP 200 / code=0 / message=\"拧紧成功\" / body={\"code\":0,\"message\":\"拧紧成功\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-09",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L2 数据库落库",
"expect": "工序实绩落库(workpiece_process)",
"actual": "select count(*) from workpiece_process where sn=$1 = \"3\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-09",
"caseLine": "案例.md:93 / 流水1-9 :199-205",
"layer": "L2 数据库落库",
"expect": "装机绑定落库(workpiece_bind)",
"actual": "select count(*) from workpiece_bind where sn=$1 = \"15\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-10/done",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L1 接口响应",
"expect": "确认完工入库(回流 WMS)",
"actual": "HTTP 200 / code=0 / message=\"完工成功\" / body={\"code\":0,\"message\":\"完工成功\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-10/done",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L3 状态流转",
"expect": "工件状态 DONE",
"actual": "当前状态 = \"DONE\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-10/done",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L2 数据库落库",
"expect": "成品回流 WMS:完工工件 SN 回到合格在库",
"actual": "select count(*) from inventories where material_code=$1 and sn_code=$2 and quality_status='合格' and status='在库' = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-10/extra-inbound",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L1 接口响应",
"expect": "补入库断路器 10 颗(供 5 台工件的 SN 防重绑定)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"\",\"inboundNo\":\"RUN20261108-12-IB-006-10700\",\"quantity\":10,\"snCount\":10}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-10/extra-detail",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L1 接口响应",
"expect": "补料待检明细可读",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":375,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-12-QLX-0001-10700\",\"zoneCode\":\"Z02\"},{\"id\":376,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-12-QLX-0002-10700\",\"zoneCode\":\"Z02\"},{\"id\":377,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-12-QLX-0003-10700\"…",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-10/extra-inspect",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L1 接口响应",
"expect": "补料 10 颗判合格",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"flipped\":10}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-10/wp2",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L4 交付物",
"expect": "工件 RUN20261108-12-WO-001-10700-002 全链路完成(NEW→上线→3 道报工→完工)",
"actual": "",
"pass": true,
"failReason": "若失败:逐条错误见实际值",
"status": "通过"
},
{
"stepId": "S1-10/wp2",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L3 状态流转",
"expect": "工件状态 DONE",
"actual": "当前状态 = \"DONE\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-10/wp3",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L4 交付物",
"expect": "工件 RUN20261108-12-WO-001-10700-003 全链路完成(NEW→上线→3 道报工→完工)",
"actual": "",
"pass": true,
"failReason": "若失败:逐条错误见实际值",
"status": "通过"
},
{
"stepId": "S1-10/wp3",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L3 状态流转",
"expect": "工件状态 DONE",
"actual": "当前状态 = \"DONE\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-10/wp4",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L4 交付物",
"expect": "工件 RUN20261108-12-WO-001-10700-004 全链路完成(NEW→上线→3 道报工→完工)",
"actual": "",
"pass": true,
"failReason": "若失败:逐条错误见实际值",
"status": "通过"
},
{
"stepId": "S1-10/wp4",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L3 状态流转",
"expect": "工件状态 DONE",
"actual": "当前状态 = \"DONE\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-10/wp5",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L4 交付物",
"expect": "工件 RUN20261108-12-WO-001-10700-005 全链路完成(NEW→上线→3 道报工→完工)",
"actual": "",
"pass": true,
"failReason": "若失败:逐条错误见实际值",
"status": "通过"
},
{
"stepId": "S1-10/wp5",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L3 状态流转",
"expect": "工件状态 DONE",
"actual": "当前状态 = \"DONE\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-10/wp6",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L4 交付物",
"expect": "工件 RUN20261108-12-WO-001-10700-006 全链路完成(NEW→上线→3 道报工→完工)",
"actual": "",
"pass": true,
"failReason": "若失败:逐条错误见实际值",
"status": "通过"
},
{
"stepId": "S1-10/wp6",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L3 状态流转",
"expect": "工件状态 DONE",
"actual": "当前状态 = \"DONE\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-10/wo-complete",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L1 接口响应",
"expect": "工单点「完工」→ 状态已完成",
"actual": "HTTP 200 / code=0 / message=\"状态已更新\" / body={\"code\":0,\"message\":\"状态已更新\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-10/wo-complete",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L3 状态流转",
"expect": "工单终态 DONE(案例界面显示「已完成」)",
"actual": "当前状态 = \"DONE\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-10/backflush",
"caseLine": "案例.md:94-95 / 流水1-10 :207-213",
"layer": "L2 数据库落库",
"expect": "完工无反冲扣账(案例.md:232)",
"actual": "select count(*) from event_log where work_order_no=$1 and (event_type like '%backflush%' or description like '%反冲%') = \"0\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-11",
"caseLine": "案例.md:112 / 流水1-11 :215-221",
"layer": "L1 接口响应",
"expect": "绩效报表按工位/人员/日期可读",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"byOperator\":{\"list\":[{\"operator\":\"系统管理员\",\"stationNo\":\"\",\"date\":\"\",\"orderNo\":\"\",\"flowId\":0,\"processName\":\"\",\"doneCount\":48,\"okCount\":48,\"ngCount\":0,\"totalDurationSec\":0,\"avgDurationSec\":0,\"efficiency\":0}],\"total\":1},\"byStation\":{\"list\":[{\"operator\":\"\",\"stationNo\":\"12\",\"date\":\"\",\"orderNo\":\"\",\"flowId\":0,\"processName\":\"\",\"doneCount\":16,\"okCount\":16,\"ngC…",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-11",
"caseLine": "案例.md:112 / 流水1-11 :215-221",
"layer": "L4 交付物",
"expect": "含当日合格数、上机时长、工单损耗列(本场景损耗=0)",
"actual": "响应片段:{\"code\":0,\"message\":\"success\",\"data\":{\"byOperator\":{\"list\":[{\"operator\":\"系统管理员\",\"stationNo\":\"\",\"date\":\"\",\"orderNo\":\"\",\"flowId\":0,\"processName\":\"\",\"doneCount\":48,\"okCount\":48,\"ngCount\":0,\"totalDurationSec\":0,\"avgDurationSec\":0,\"efficiency\":0}],\"total\"…",
"pass": true,
"failReason": "若 code≠0:绩效报表接口未返回当日数据",
"status": "通过"
},
{
"stepId": "S1-12",
"caseLine": "案例.md:113 / 流水1-12 :223-229",
"layer": "L1 接口响应",
"expect": "输入 RUN20261108-12-SN-0001-10700 可查全生命周期",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"associationTrace\":{\"id\":11,\"finishedSn\":\"RUN20261108-12-SN-0001-10700\",\"orderNo\":\"RUN20261108-12-WO-001-10700\",\"processCode\":\"3,6,12\",\"operator\":\"系统管理员\",\"createdAt\":\"2026-11-09T10:03:31.445001+08:00\"},\"bindTrace\":{\"binds\":[{\"id\":189,\"sn\":\"RUN20261108-12-SN-0001-10700\",\"orderNo\":\"RUN20261108-12-WO-001-10700\",\"flowId\":1,\"stationNo\":\"3\",\"materialCode\":…",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-12",
"caseLine": "案例.md:113 / 流水1-12 :223-229",
"layer": "L4 交付物",
"expect": "时间线 3→6→12、步骤考核、拧紧数据、装机绑定全绑齐",
"actual": "响应片段:{\"code\":0,\"message\":\"success\",\"data\":{\"associationTrace\":{\"id\":11,\"finishedSn\":\"RUN20261108-12-SN-0001-10700\",\"orderNo\":\"RUN20261108-12-WO-001-10700\",\"processCode\":\"3,6,12\",\"operator\":\"系统管理员\",\"createdAt\":\"2026-11-09T10:03:31.445001+08:00\"},\"bindTrace\":{\"binds\":[{\"id\":189,\"sn\":\"RUN20261108-…",
"pass": true,
"failReason": "若为失败:追溯聚合缺工位节点或绑定未落库",
"status": "通过"
},
{
"stepId": "S1-13",
"caseLine": "案例.md:114 / 流水1-13 :231-237",
"layer": "L4 交付物",
"expect": "按工单可查主卡(工序实绩/用料清单/成品明细/签字区)(html 交付物,非 JSON)",
"actual": "HTTP 200 / 长度 8183 字节 / 片段:\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"zh\"\u003e\n\u003chead\u003e\n\u003cmeta charset=\"utf-8\"\u003e\n\u003ctitle\u003e生产流程卡 RUN20261108-12-WO-001-10700\u003c/title…",
"pass": true,
"failReason": "若失败:交付物未生成或不是预期的 html 内容",
"status": "通过"
},
{
"stepId": "S1-13",
"caseLine": "案例.md:114 / 流水1-13 :231-237",
"layer": "L4 交付物",
"expect": "主卡四段内容齐全",
"actual": "响应片段:\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"zh\"\u003e\n\u003chead\u003e\n\u003cmeta charset=\"utf-8\"\u003e\n\u003ctitle\u003e生产流程卡 RUN20261108-12-WO-001-10700\u003c/title\u003e\n\u003cstyle\u003e\n * { margin:0; padding:0; box-sizing:border-box; }\n body { font-family:\"Microsoft YaHei\",sans-serif; color:#1f2937; padding:24px…",
"pass": true,
"failReason": "若为失败:流程卡未生成",
"status": "通过"
},
{
"stepId": "S1-13/pdf",
"caseLine": "案例.md:114 / 流水1-13 :231-237",
"layer": "L4 交付物",
"expect": "备份导出格式 pdf 可用(pdf 交付物,非 JSON)",
"actual": "HTTP 200 / 长度 38074 字节 / 片段:%PDF-1.3\n3 0 obj\n\u003c\u003c/Type /Page\n/Parent 1 0 R\n/Resources 2 0 R\n/Contents 4 0 R\u003e\u003e\nendobj\n4 0 obj\n\u003c\u003c/Filter /FlateDecode /L…",
"pass": true,
"failReason": "若失败:交付物未生成或不是预期的 pdf 内容",
"status": "通过"
},
{
"stepId": "S1-13/pdf",
"caseLine": "案例.md:114 / 流水1-13 :231-237",
"layer": "L4 交付物",
"expect": "导出 pdf 有交付物",
"actual": "HTTP 200 / 长度 38074 字节",
"pass": true,
"failReason": "若不可用:导出链路缺实现",
"status": "通过"
},
{
"stepId": "S1-13/excel",
"caseLine": "案例.md:114 / 流水1-13 :231-237",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "跳过:MES 未注册 /api/v1/process-card/excel 接口(T6 核实),该格式不计入本步断言",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-13/print",
"caseLine": "案例.md:114 / 流水1-13 :231-237",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "跳过:MES 未注册 /api/v1/process-card/print 接口(T6 核实),该格式不计入本步断言",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-14/return1",
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
"layer": "L1 接口响应",
"expect": "第1 张分批退料单(箱体 1 个、必选接驳台、必填原因)",
"actual": "HTTP 200 / code=0 / message=\"退库单已提交\" / body={\"code\":0,\"message\":\"退库单已提交\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-14/return2",
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
"layer": "L1 接口响应",
"expect": "第2 张分批退料单(箱体 1 个、必选接驳台、必填原因)",
"actual": "HTTP 200 / code=0 / message=\"退库单已提交\" / body={\"code\":0,\"message\":\"退库单已提交\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-14",
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
"layer": "L2 数据库落库",
"expect": "两张「待确认收货」单并存互不吞并(案例:101 D10)",
"actual": "select count(*) from return_orders where order_no=$1 and material_code=$2 and status='PENDING' = \"2\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-14/confirm1",
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
"layer": "L1 接口响应",
"expect": "库管逐张「确认收货」(扣减在确认时发生)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"addedQty\":1,\"qualityStatus\":\"未检\",\"receiveDiff\":0,\"returnNo\":\"TH20261109100331746306\",\"status\":\"RECEIVED\"}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-14/confirm2",
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
"layer": "L1 接口响应",
"expect": "库管逐张「确认收货」(扣减在确认时发生)",
"actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"addedQty\":1,\"qualityStatus\":\"未检\",\"receiveDiff\":0,\"returnNo\":\"TH20261109100331751652\",\"status\":\"RECEIVED\"}}",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-14/confirm",
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
"layer": "L3 状态流转",
"expect": "退料单终态 RECEIVED(已收货)",
"actual": "当前状态 = \"RECEIVED\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-14",
"caseLine": "案例.md:98-102 / 流水1-14 :239-245",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "真实退料单号=[TH20261109100331746306 TH20261109100331751652]",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-15",
"caseLine": "案例.md:105 / 流水1-15 :247-253",
"layer": "L1 接口响应",
"expect": "下班/结束作业(左右接驳台均空才放行)",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"ok\":true}}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-15",
"caseLine": "案例.md:105 / 流水1-15 :247-253",
"layer": "L2 数据库落库",
"expect": "下班动作在工位终端操作日志留痕(存在 off 事件)",
"actual": "select case when count(*) \u003e 0 then '1' else '0' end from event_log where action like '%off%' = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/stock",
"caseLine": "案例.md:109-110",
"layer": "L2 数据库落库",
"expect": "本轮 DX100-XT-001 合格库存净变化(入库8 − 出库8)",
"actual": "select coalesce(sum(quantity),0) - $2::int from inventories where material_code=$1 and quality_status='合格' = \"0\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/stock-return",
"caseLine": "案例.md:109-110",
"layer": "L2 数据库落库",
"expect": "本轮 DX100-XT-001 退料回补 2 落「未检」分组(不进合格)",
"actual": "select coalesce(sum(quantity),0) - $2::int from inventories where material_code=$1 and sn_mode=2 and quality_status='未检' and status='在库' = \"2\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/stock",
"caseLine": "案例.md:109-110",
"layer": "L2 数据库落库",
"expect": "本轮 DX100-MB-002 合格库存净变化(入库8 − 出库6)",
"actual": "select coalesce(sum(quantity),0) - $2::int from inventories where material_code=$1 and quality_status='合格' = \"2\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/stock",
"caseLine": "案例.md:109-110",
"layer": "L2 数据库落库",
"expect": "本轮 DX100-MP-005 合格库存净变化(入库8 − 出库0)",
"actual": "select coalesce(sum(quantity),0) - $2::int from inventories where material_code=$1 and quality_status='合格' = \"8\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/stock",
"caseLine": "案例.md:109-110",
"layer": "L2 数据库落库",
"expect": "本轮 DX100-QL-004(SN 类)出库 12 颗:翻状态不改数量",
"actual": "select case when (count(*) filter (where status='出库') - $2::int = $3::int) and (count(*) filter (where status='在库' and quality_status='合格') - $4::int = $6::int - $3::int) and (coalesce(sum(quantity),0) - $5::int = $6::int) then '1' else '0' end from inventories where material_code=$1 and sn_mode=1 and sn_code is not null and sn_code\u003c\u003e'' = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/stock",
"caseLine": "案例.md:109-110",
"layer": "L2 数据库落库",
"expect": "本轮 DX-100 合格库存净变化(入库1 − 出库0)",
"actual": "select coalesce(sum(quantity),0) - $2::int from inventories where material_code=$1 and quality_status='合格' = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/stock-finished",
"caseLine": "案例.md:109-110",
"layer": "L2 数据库落库",
"expect": "本轮成品完工回流(workpiece DONE)",
"actual": "select count(*) from workpiece where order_no=$1 and status='DONE' = \"6\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/call",
"caseLine": "案例.md:109-110",
"layer": "L3 状态流转",
"expect": "叫料单 终态 DONE",
"actual": "当前状态 = \"DONE\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/outbound",
"caseLine": "案例.md:109-110",
"layer": "L3 状态流转",
"expect": "出库单 终态 已送达",
"actual": "当前状态 = \"已送达\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/return",
"caseLine": "案例.md:109-110",
"layer": "L3 状态流转",
"expect": "退料单 终态 RECEIVED",
"actual": "当前状态 = \"RECEIVED\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/wo",
"caseLine": "案例.md:109-110",
"layer": "L3 状态流转",
"expect": "工单 终态 DONE",
"actual": "当前状态 = \"DONE\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/deliverable",
"caseLine": "案例.md:109-110",
"layer": "L4 交付物",
"expect": "绩效报表(含工单损耗)",
"actual": "见 S1-11 / S1-12 / S1-13 各步实际响应",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/deliverable",
"caseLine": "案例.md:109-110",
"layer": "L4 交付物",
"expect": "工件追溯(3→6→12 时间线、装机绑定全绑齐)",
"actual": "见 S1-11 / S1-12 / S1-13 各步实际响应",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-16/deliverable",
"caseLine": "案例.md:109-110",
"layer": "L4 交付物",
"expect": "生产流程卡(工序实绩/用料清单/成品明细/签字区,PDF/Excel/打印三格式)",
"actual": "见 S1-11 / S1-12 / S1-13 各步实际响应",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-17/report",
"caseLine": "案例.md:143 / MES 数量不符处理",
"layer": "L1 接口响应",
"expect": "工位上报数量不符(正常 HTTP 接口造数)",
"actual": "HTTP 200 / code=0 / message=\"数量不符已上报\" / body={\"code\":0,\"message\":\"数量不符已上报\"}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-17/created",
"caseLine": "案例.md:143 / MES 数量不符处理",
"layer": "L2 数据库落库",
"expect": "差异单落库 material_qty_report",
"actual": "select count(*) from material_qty_report where order_no=$1 and material_code=$2 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-17/diff",
"caseLine": "案例.md:143 / MES 数量不符处理",
"layer": "L2 数据库落库",
"expect": "差异量 = 应发 6 − 实收 5 = 1",
"actual": "select diff_qty from material_qty_report where order_no=$1 and material_code=$2 order by id desc limit 1 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-17",
"caseLine": "案例.md:143 / MES 数量不符处理",
"layer": "L1 接口响应",
"expect": "记录本步真实产出供下一步使用",
"actual": "本轮真实差异单 id=9",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-17/page",
"caseLine": "案例.md:143 / MES 数量不符处理",
"layer": "L1 接口响应",
"expect": "数量不符处理列表可读",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"list\":[{\"id\":9,\"reportNo\":\"QR9\",\"stationNo\":3,\"orderNo\":\"RUN20261108-12-WO-001-10700\",\"sn\":\"RUN20261108-12-SN-0001-10700\",\"materialCode\":\"DX100-XT-001\",\"materialName\":\"箱体\",\"planQty\":6,\"actualQty\":5,\"diffQty\":1,\"cause\":\"自动化流水测试差异\",\"status\":\"PENDING\",\"handleType\":\"\",\"handleDocNo\":\"\",\"handleNote\":\"\",\"handledBy\":\"\",\"handledAt\":0,\"operator\":\"…",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-17/listed",
"caseLine": "案例.md:143 / MES 数量不符处理",
"layer": "L4 交付物",
"expect": "本轮差异单出现在页面列表(data.total\u003e0)",
"actual": "code=0 / total=\"1\" / 响应片段:{\"code\":0,\"message\":\"success\",\"data\":{\"list\":[{\"id\":9,\"reportNo\":\"QR9\",\"stationNo\":3,\"orderNo\":\"RUN20261108-12-WO-001-10700\",\"sn\":\"RUN20261108-12-SN-0001-10700\",\"materialCode\":\"DX100-XT-001\",\"materialName\":\"箱体\",\"plan…",
"pass": true,
"failReason": "若为空:上报未落库或列表未按 orderNo 过滤",
"status": "通过"
},
{
"stepId": "S1-17/handle",
"caseLine": "案例.md:143 / MES 数量不符处理",
"layer": "L1 接口响应",
"expect": "人工处理差异(ADJUST 调整口径,note 必填)",
"actual": "HTTP 200 / code=0 / message=\"处理完成\" / body={\"code\":0,\"message\":\"处理完成\",\"data\":{\"handleDocNo\":\"\",\"handleType\":\"ADJUST\",\"id\":9,\"status\":\"CLOSED\"}}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-17/terminal",
"caseLine": "案例.md:143 / MES 数量不符处理",
"layer": "L3 状态流转",
"expect": "差异单终态 CLOSED",
"actual": "当前状态 = \"CLOSED\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-18/checkin",
"caseLine": "案例.md:142 / MES 绩效报表",
"layer": "L1 接口响应",
"expect": "开工签到(正常 HTTP 接口造上机实绩)",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"message\":\"巡检记录已提交\"}}\n",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-18/record",
"caseLine": "案例.md:142 / MES 绩效报表",
"layer": "L2 数据库落库",
"expect": "签到实绩落库 inspection_record",
"actual": "select count(*) from inspection_record where order_no=$1 and category='CHECKIN' and operator=$2 = \"1\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-18/performance",
"caseLine": "案例.md:142 / MES 绩效报表",
"layer": "L1 接口响应",
"expect": "绩效报表按当日/人员可读",
"actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"byOperator\":{\"list\":[],\"total\":0},\"byStation\":{\"list\":[],\"total\":0},\"detail\":{\"list\":[],\"total\":0},\"lossByOrder\":{\"list\":[],\"total\":0},\"lossTotal\":0,\"sessions\":{\"list\":[{\"operator\":\"自动化测试\",\"stationNo\":\"3\",\"date\":\"2026-11-09\",\"checkinAt\":\"2026-11-09 10:03:31\",\"lastActiveAt\":\"2026-11-09 10:03:31\",\"durationSec\":0,\"doneCount\":0,\"efficiency\":0},{\"operato…",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "S1-18/data",
"caseLine": "案例.md:142 / MES 绩效报表",
"layer": "L4 交付物",
"expect": "绩效报表含当日上机实绩(data.sessions.total\u003e0)",
"actual": "code=0 / sessions.total=\"9\" / 响应片段:{\"code\":0,\"message\":\"success\",\"data\":{\"byOperator\":{\"list\":[],\"total\":0},\"byStation\":{\"list\":[],\"total\":0},\"detail\":{\"list\":[],\"total\":0},\"lossByOrder\":{\"list\":[],\"total\":0},\"lossTotal\":0,\"sessions\":{\"list\":[{\"operator\":…",
"pass": true,
"failReason": "若为 0:签到实绩未被绩效聚合读取,或报表按其它口径过滤",
"status": "通过"
},
{
"stepId": "C-01",
"caseLine": "案例.md:540-545",
"layer": "L4 交付物",
"expect": "叫料时接驳台非必填(允许空值行)(期望 \u003e=0)",
"actual": "select count(*) from material_request where target_dock is null or target_dock='' → \"8\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-02",
"caseLine": "案例.md:543,601-611",
"layer": "L4 交付物",
"expect": "退料必须指定左/右接驳台(空值行应为 0)(期望 0)",
"actual": "select count(*) from return_orders where return_dock is null or return_dock='' → \"0\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-03",
"caseLine": "案例.md:544,282",
"layer": "L4 交付物",
"expect": "叫料池按工位×物料聚合、不认工单(期望 \u003e=0)",
"actual": "select count(*) from call_pool → \"4\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-04",
"caseLine": "案例.md:551-560",
"layer": "L4 交付物",
"expect": "AGV 任务按配送单驱动(biz_no 关联配送单)(期望 \u003e=0)",
"actual": "select count(*) from agv_tasks → \"10\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-05",
"caseLine": "案例.md:613-617",
"layer": "L4 交付物",
"expect": "损耗原因在 WMS 确认收货时落账(期望 \u003e=0)",
"actual": "select count(*) from return_orders where loss_reason is not null and loss_reason\u003c\u003e'' → \"30\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-06",
"caseLine": "案例.md:623-625",
"layer": "L4 交付物",
"expect": "MES 物料副本与 WMS 主数据源同源(期望 同源)",
"actual": "MES=11 / WMS=11(差集需按 code 逐条核)",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-07",
"caseLine": "案例.md:547-549",
"layer": "L4 交付物",
"expect": "设备失联降级动作有事件日志留痕(期望 \u003e=0)",
"actual": "select count(*) from event_log → \"831\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-08",
"caseLine": "案例.md:449,547-549",
"layer": "L4 交付物",
"expect": "工位终端本地无离线队列/重试缓存表(期望 0)",
"actual": "select count(*) from sqlite_master where type='table' and name in ('report_queue','torque_results') → \"0\"",
"pass": true,
"failReason": "",
"status": "通过"
},
{
"stepId": "C-09",
"caseLine": "案例.md:619-621",
"layer": "L4 交付物",
"expect": "看板免登录可读、报喜不报忧",
"actual": "HTTP 200 / 首页长度 935 字节",
"pass": true,
"failReason": "若非 200:看板未就绪",
"status": "通过"
}
],
"summary": {
"total": 184,
"pass": 183,
"fail": 1,
"block": 0,
"passRate": "99.5%"
}
}