{ "runBatch": "RUN20261108-08", "scenario": "场景1", "startedAt": "2026-11-09 09:23:56", "finishedAt": "2026-11-09 09:23:58", "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-08,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-08-IB-001-36575)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"RUN20261108-08-BATCH-001-36575\",\"inboundNo\":\"RUN20261108-08-IB-001-36575\",\"quantity\":8,\"snCount\":0}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/in1", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L2 数据库落库", "expect": "入库单 RUN20261108-08-IB-001-36575 落库", "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-08-IB-002-36575)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"RUN20261108-08-BATCH-002-36575\",\"inboundNo\":\"RUN20261108-08-IB-002-36575\",\"quantity\":8,\"snCount\":0}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/in2", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L2 数据库落库", "expect": "入库单 RUN20261108-08-IB-002-36575 落库", "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-08-IB-003-36575)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"RUN20261108-08-BATCH-003-36575\",\"inboundNo\":\"RUN20261108-08-IB-003-36575\",\"quantity\":8,\"snCount\":0}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/in3", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L2 数据库落库", "expect": "入库单 RUN20261108-08-IB-003-36575 落库", "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-08-IB-004-36575)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"\",\"inboundNo\":\"RUN20261108-08-IB-004-36575\",\"quantity\":20,\"snCount\":20}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/in4", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L2 数据库落库", "expect": "入库单 RUN20261108-08-IB-004-36575 落库", "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-08-SN-0001-36575", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"batchNo\":\"\",\"inboundNo\":\"RUN20261108-08-IB-005-36575\",\"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-08-IB-005-36575\",\"inboundType\":\"other\",\"ownershipType\":\"other\",\"ownershipNo\":\"RUN20261108-08-PROJ-001-36575\",\"materialCode\":\"DX-100\",\"materialName\":\"电表箱成品\",\"matManageMode\":3,\"snMode\":1,\"unInspectedQty\":1,\"detailsTotal\":1,\"inboundTime\":1794187437,\"inspectionNo\":\"RUN20261108-08-IBJ-001-36575\"},{\"inboundNo\":\"RUN20261108-08-I…", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-08-IB-001-36575", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":187,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-08-BATCH-001-36575\",\"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-08-IB-002-36575", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":188,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-08-BATCH-002-36575\",\"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-08-IB-003-36575", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":189,\"itemType\":1,\"matManageMode\":1,\"quantity\":8,\"snMode\":2,\"targetId\":\"RUN20261108-08-BATCH-003-36575\",\"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-08-IB-004-36575", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":190,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-08-QL-0001-36575\",\"zoneCode\":\"Z02\"},{\"id\":191,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-08-QL-0002-36575\",\"zoneCode\":\"Z02\"},{\"id\":192,\"itemType\":1,\"matManageMode\":2,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-08-QL-0003-36575\",\"z…", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-02/pending-detail", "caseLine": "案例.md:65-66 / 流水1-2 :143-149", "layer": "L1 接口响应", "expect": "待检明细可读 RUN20261108-08-IB-005-36575", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"list\":[{\"id\":210,\"itemType\":3,\"matManageMode\":3,\"quantity\":1,\"snMode\":1,\"targetId\":\"RUN20261108-08-SN-0001-36575\",\"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-08-WO-001-36575 创建成功", "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-08-WO-001-36575,真实工件号=RUN20261108-08-SN-0001-36575,真实路线组合=[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-08-SN-0001-36575", "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": "真实叫料单号=[MR1794187437572821800 MR1794187437572821801 MR1794187437613576000 MR1794187437632611100];真实叫料包号=[PK3-1794187437572821800 PK3-1794187437613576000 PK6-1794187437632611100]", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-06/complete1", "caseLine": "案例.md:85-87 / 流水1-6 :175-181", "layer": "L1 接口响应", "expect": "叫料单 MR1794187437572821800 完成备料(FIFO 选批/选 SN)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"agvNote\":\"(AGV 由 MES 自动派车)\",\"outboundNos\":\"OB20261109-017\",\"reqQty\":4,\"requestNo\":\"MR1794187437572821800\",\"sentQty\":4,\"short\":0}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-06/complete2", "caseLine": "案例.md:85-87 / 流水1-6 :175-181", "layer": "L1 接口响应", "expect": "叫料单 MR1794187437572821801 完成备料(FIFO 选批/选 SN)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"agvNote\":\"(AGV 由 MES 自动派车)\",\"outboundNos\":\"OB20261109-018,OB20261109-019\",\"reqQty\":6,\"requestNo\":\"MR1794187437572821801\",\"sentQty\":6,\"short\":0}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-06/complete3", "caseLine": "案例.md:85-87 / 流水1-6 :175-181", "layer": "L1 接口响应", "expect": "叫料单 MR1794187437613576000 完成备料(FIFO 选批/选 SN)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"agvNote\":\"(AGV 由 MES 自动派车)\",\"outboundNos\":\"OB20261109-020\",\"reqQty\":4,\"requestNo\":\"MR1794187437613576000\",\"sentQty\":4,\"short\":0}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-06/complete4", "caseLine": "案例.md:85-87 / 流水1-6 :175-181", "layer": "L1 接口响应", "expect": "叫料单 MR1794187437632611100 完成备料(FIFO 选批/选 SN)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"agvNote\":\"(AGV 由 MES 自动派车)\",\"outboundNos\":\"OB20261109-021,OB20261109-022,OB20261109-023,OB20261109-024,OB20261109-025,OB20261109-026,OB20261109-027,OB20261109-028,OB20261109-029,OB20261109-030,OB20261109-031,OB20261109-032\",\"reqQty\":12,\"requestNo\":\"MR1794187437632611100\",\"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": "出库单号已回写叫料单 MR1794187437572821800", "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": "出库单号已回写叫料单 MR1794187437572821801", "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": "出库单号已回写叫料单 MR1794187437613576000", "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": "出库单号已回写叫料单 MR1794187437632611100", "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-1794187437572821800 建配送单(2 张叫料单,实际接驳台 DOCK05)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"deliveryNo\":\"DL1794187437891647900\"}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-06/delivery1", "caseLine": "案例.md:85-87 / 流水1-6 :175-181", "layer": "L2 数据库落库", "expect": "配送单落库(包 PK3-1794187437572821800)", "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-1794187437613576000 建配送单(1 张叫料单,实际接驳台 DOCK05)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"deliveryNo\":\"DL1794187437912871700\"}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-06/delivery2", "caseLine": "案例.md:85-87 / 流水1-6 :175-181", "layer": "L2 数据库落库", "expect": "配送单落库(包 PK3-1794187437613576000)", "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-1794187437632611100 建配送单(1 张叫料单,实际接驳台 DOCK11)", "actual": "HTTP 200 / code=0 / message=\"ok\" / body={\"code\":0,\"message\":\"ok\",\"data\":{\"deliveryNo\":\"DL1794187437920382000\"}}", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-06/delivery3", "caseLine": "案例.md:85-87 / 流水1-6 :175-181", "layer": "L2 数据库落库", "expect": "配送单落库(包 PK6-1794187437632611100)", "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-017 OB20261109-018,OB20261109-019 OB20261109-020 OB20261109-021,OB20261109-022,OB20261109-023,OB20261109-024,OB20261109-025,OB20261109-026,OB20261109-027,OB20261109-028,OB20261109-029,OB20261109-030,OB20261109-031,OB20261109-032];本轮配送单号=[DL1794187437891647900 DL1794187437912871700 DL1794187437920382000](共 3 包)", "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/load", "caseLine": "案例.md:88-89 / 流水1-7 :183-189", "layer": "L1 接口响应", "expect": "到位待令后人工「确认装车并送货」", "actual": "HTTP 404 / code=-1 / message=\"响应非 JSON\" / body=404 page not found\n", "pass": false, "failReason": "HTTP 状态码期望 200 实际 404;业务码期望 0 实际 -1", "status": "失败" }, { "stepId": "S1-07/unload", "caseLine": "案例.md:88-89 / 流水1-7 :183-189", "layer": "L1 接口响应", "expect": "到实际接驳台后人工「卸货完成并放行」", "actual": "HTTP 404 / code=-1 / message=\"响应非 JSON\" / body=404 page not found\n", "pass": false, "failReason": "HTTP 状态码期望 200 实际 404;业务码期望 0 实际 -1", "status": "失败" }, { "stepId": "S1-07/done", "caseLine": "案例.md:88-89 / 流水1-7 :183-189", "layer": "L3 状态流转", "expect": "任务结束配送单自动置「已送达」(DONE)", "actual": "当前状态 = \"DISPATCHED\"", "pass": false, "failReason": "状态期望属于 [DONE],实际 \"DISPATCHED\"", "status": "失败" }, { "stepId": "S1-07/outbound", "caseLine": "案例.md:88-89 / 流水1-7 :183-189", "layer": "L3 状态流转", "expect": "任务结束出库单自动置「已送达」", "actual": "当前状态 = \"已出库\"", "pass": false, "failReason": "状态期望属于 [已送达],实际 \"已出库\"", "status": "失败" }, { "stepId": "S1-08/sign1", "caseLine": "案例.md:92 / 流水1-8 :191-197", "layer": "L1 接口响应", "expect": "工位待接料区「接料确认」MR1794187437572821800", "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": "工位待接料区「接料确认」MR1794187437572821801", "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": "工位待接料区「接料确认」MR1794187437613576000", "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": "工位待接料区「接料确认」MR1794187437632611100", "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-08-BATCH-001-36575\"],\"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-08-QL-0001-36575\",\"RUN20261108-08-QL-0002-36575\"],\"boundCount\":2,\"complete\":true}],\"complete\":true,\"missing\":\"\",\"stationNo\":6,\"flowId\":2,\"lastBinds\":[{\"id\":52,\"…", "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\":53,\"sn\":\"RUN20261108-08-SN-0001-36575\",\"orderNo\":\"RUN20261108-08-WO-001-36575\",\"flowId\":3,\"stationNo\":\"12\",\"materialCode\":\"DX100-MP-005\",\"materialName\":\"铭牌\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"snMode\":2,\"bindValue\":\"RUN20261108-08-B…", "pass": true, "failReason": "", "status": "通过" }, { "stepId": "S1-09/report1", "caseLine": "案例.md:93 / 流水1-9 :199-205", "layer": "L1 接口响应", "expect": "工位3 报工完成", "actual": "HTTP 200 / code=2104 / message=\"以下步骤需先完成检测确认后方可报工:螺丝安装\" / body={\"code\":2104,\"message\":\"以下步骤需先完成检测确认后方可报工:螺丝安装\"}\n", "pass": false, "failReason": "业务码期望 0 实际 2104", "status": "失败" }, { "stepId": "S1-09/report2", "caseLine": "案例.md:93 / 流水1-9 :199-205", "layer": "L1 接口响应", "expect": "工位6 报工完成", "actual": "HTTP 200 / code=2104 / message=\"不可跳工序:请先完成上一道工序\" / body={\"code\":2104,\"message\":\"不可跳工序:请先完成上一道工序\"}\n", "pass": false, "failReason": "业务码期望 0 实际 2104", "status": "失败" }, { "stepId": "S1-09/report3", "caseLine": "案例.md:93 / 流水1-9 :199-205", "layer": "L1 接口响应", "expect": "工位12 报工完成", "actual": "HTTP 200 / code=2104 / message=\"不可跳工序:请先完成上一道工序\" / body={\"code\":2104,\"message\":\"不可跳工序:请先完成上一道工序\"}\n", "pass": false, "failReason": "业务码期望 0 实际 2104", "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-08-QL-0001-36575\",\"RUN20261108-08-QL-0002-36575\",\"RUN20261108-08-QL-0003-36575\",\"RUN20261108-08-QL-0004-36575\",\"RUN20261108-08-QL-0005-36575\",\"RUN20261108-08-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 = \"0\"", "pass": false, "failReason": "期望 \"3\",实际 \"0\"", "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": false, "failReason": "期望 \"12\",实际 \"15\"", "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": "当前状态 = \"SEMI_STORED\"", "pass": false, "failReason": "状态期望属于 [DONE],实际 \"SEMI_STORED\"", "status": "失败" }, { "stepId": "S1-10/done", "caseLine": "案例.md:94-95 / 流水1-10 :207-213", "layer": "L2 数据库落库", "expect": "成品回流 WMS 成品库存 6 台", "actual": "select coalesce(sum(quantity),0) from inventories where material_code=$1 = \"5\"", "pass": false, "failReason": "期望 \"6\",实际 \"5\"", "status": "失败" }, { "stepId": "S1-10/wo-complete", "caseLine": "案例.md:94-95 / 流水1-10 :207-213", "layer": "L1 接口响应", "expect": "工单点「完工」→ 状态已完成", "actual": "HTTP 200 / code=3008 / message=\"工单尚有 6 台未报工完成(共 6 台,已完工 0 台),不能完工;请等全部工件报工完成后再点「完工」\" / body={\"code\":3008,\"message\":\"工单尚有 6 台未报工完成(共 6 台,已完工 0 台),不能完工;请等全部工件报工完成后再点「完工」\"}\n", "pass": false, "failReason": "业务码期望 0 实际 3008", "status": "失败" }, { "stepId": "S1-10/wo-complete", "caseLine": "案例.md:94-95 / 流水1-10 :207-213", "layer": "L3 状态流转", "expect": "工单终态 DONE(案例界面显示「已完成」)", "actual": "当前状态 = \"IN_PROGRESS\"", "pass": false, "failReason": "状态期望属于 [DONE],实际 \"IN_PROGRESS\"", "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\":[],\"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 09:12:30\",\"lastActiveAt\":\"2026-11-09 09:12:30\",\"durationSec\":0,\"doneCount\":0,\"efficiency\":0},{\"operato…", "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\":[],\"total\":0},\"byStation\":{\"list\":[],\"total\":0},\"detail\":{\"list\":[],\"total\":0},\"lossByOrder\":{\"list\":[],\"total\":0},\"lossTotal\":0,\"sessions\":{\"list\":[{\"operator\":\"自动化测试\",\"stationNo\":\"3\",\"date\"…", "pass": true, "failReason": "若 code≠0:绩效报表接口未返回当日数据", "status": "通过" }, { "stepId": "S1-12", "caseLine": "案例.md:113 / 流水1-12 :223-229", "layer": "L1 接口响应", "expect": "输入 RUN20261108-08-SN-0001-36575 可查全生命周期", "actual": "HTTP 200 / code=0 / message=\"success\" / body={\"code\":0,\"message\":\"success\",\"data\":{\"associationTrace\":null,\"bindTrace\":{\"binds\":[{\"id\":49,\"sn\":\"RUN20261108-08-SN-0001-36575\",\"orderNo\":\"RUN20261108-08-WO-001-36575\",\"flowId\":1,\"stationNo\":\"3\",\"materialCode\":\"DX100-XT-001\",\"materialName\":\"箱体\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"snMode\":2,\"bindValue\":\"RUN20261108-08-BATCH-001-36575\",\"bindType\":\"BATCH\",\"operator\":\"系统管理员\",\"created…", "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\":null,\"bindTrace\":{\"binds\":[{\"id\":49,\"sn\":\"RUN20261108-08-SN-0001-36575\",\"orderNo\":\"RUN20261108-08-WO-001-36575\",\"flowId\":1,\"stationNo\":\"3\",\"materialCode\":\"DX100-XT-001\",\"materialName\":\"箱体\",\"spec\":\"电表箱专用\",\"unit\":\"件\",\"snMode\":2,\"…", "pass": true, "failReason": "若为失败:追溯聚合缺工位节点或绑定未落库", "status": "通过" }, { "stepId": "S1-13", "caseLine": "案例.md:114 / 流水1-13 :231-237", "layer": "L4 交付物", "expect": "按工单可查主卡(工序实绩/用料清单/成品明细/签字区)(html 交付物,非 JSON)", "actual": "HTTP 200 / 长度 7582 字节 / 片段:\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"zh\"\u003e\n\u003chead\u003e\n\u003cmeta charset=\"utf-8\"\u003e\n\u003ctitle\u003e生产流程卡 RUN20261108-08-WO-001-36575\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-08-WO-001-36575\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 / 长度 36622 字节 / 片段:%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 / 长度 36622 字节", "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\":\"TH20261109092358178280\",\"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\":\"TH20261109092358184689\",\"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": "真实退料单号=[TH20261109092358178280 TH20261109092358184689]", "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 + 退料2 + 回流0)", "actual": "select coalesce(sum(quantity),0) - $2::int from inventories where material_code=$1 and quality_status='合格' = \"0\"", "pass": false, "failReason": "期望 \"2\",实际 \"0\"", "status": "失败" }, { "stepId": "S1-16/stock", "caseLine": "案例.md:109-110", "layer": "L2 数据库落库", "expect": "本轮 DX100-MB-002 库存净变化(入库8 − 出库6 + 退料0 + 回流0)", "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 + 退料0 + 回流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 库存净变化(入库20 − 出库12 + 退料0 + 回流0)", "actual": "select coalesce(sum(quantity),0) - $2::int from inventories where material_code=$1 and quality_status='合格' = \"20\"", "pass": false, "failReason": "期望 \"8\",实际 \"20\"", "status": "失败" }, { "stepId": "S1-16/stock", "caseLine": "案例.md:109-110", "layer": "L2 数据库落库", "expect": "本轮 DX-100 库存净变化(入库1 − 出库0 + 退料0 + 回流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/wo", "caseLine": "案例.md:109-110", "layer": "L3 状态流转", "expect": "工单 终态 DONE", "actual": "当前状态 = \"IN_PROGRESS\"", "pass": false, "failReason": "状态期望属于 [DONE],实际 \"IN_PROGRESS\"", "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": false, "failReason": "状态期望属于 [已送达],实际 \"已出库\"", "status": "失败" }, { "stepId": "S1-16/return", "caseLine": "案例.md:109-110", "layer": "L3 状态流转", "expect": "退料单 终态 RECEIVED", "actual": "当前状态 = \"RECEIVED\"", "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=3", "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\":3,\"reportNo\":\"QR3\",\"stationNo\":3,\"orderNo\":\"RUN20261108-08-WO-001-36575\",\"sn\":\"RUN20261108-08-SN-0001-36575\",\"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\":3,\"reportNo\":\"QR3\",\"stationNo\":3,\"orderNo\":\"RUN20261108-08-WO-001-36575\",\"sn\":\"RUN20261108-08-SN-0001-36575\",\"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\":3,\"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 09:23:58\",\"lastActiveAt\":\"2026-11-09 09:23:58\",\"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=\"3\" / 响应片段:{\"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 → \"5\"", "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'' → \"18\"", "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 → \"357\"", "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": 163, "pass": 146, "fail": 17, "block": 0, "passRate": "89.6%" } }