Clone
5
Task-81-修复-SYB-查看-PDD-商品跳转
QiuSW edited this page 2026-09-21 16:13:32 +08:00
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.

81 修复 SYB“查看 PDD 商品”跳转

  • 类型:缺陷
  • 状态:待验收
  • 日期:2026-08-25
  • Gitea 工单:#81
  • Wiki revision:以本页线上 revision 为准

背景与目标

#80 验收时发现:SYB 商品的处理阶段显示“查看 PDD 商品”,点击后却进入蝦皮商品页面。目标是让该入口打开当前行关联的指定 PDD 商品详情。

最终方案

  • SYB 页的 open_pdd 动作改为使用预检结果中的 pddProductId。
  • 跳转到 /pdd-products/index?productId=<PDD商品ID>,不再调用蝦皮商品详情动作。
  • PDD 商品页读取路由中的有效 productId,自动打开既有详情抽屉。
  • PDD ID 缺失时显示“该明细尚未关联 PDD 商品”,不执行错误跳转。
  • 服务端处理阶段、接口、数据库、Android 和业务规则均未改变。

修改文件

  • web/src/views/goauto/syb-products/index.vue:增加 PDD 详情跳转并修正 open_pdd 动作。
  • web/src/views/goauto/pdd-products/index.vue:支持通过路由 productId 自动打开详情。
  • web/tests/e2e/syb-product-layout.spec.ts:覆盖 SYB 下一步跳转到正确 PDD ID。
  • web/tests/e2e/pdd-product-module.spec.ts:覆盖带 productId 路由自动打开详情。

验收结果

验收标准 结果
“查看 PDD 商品”不再进入蝦皮商品模块 自动化测试通过
打开当前行对应的 PDD 商品 ID 自动化测试通过
带 productId 的 PDD 路由自动打开详情 自动化测试通过
Web lint 和生产构建 通过
用户页面人工验收 待验收

测试

  • pnpm exec playwright test tests/e2e/syb-product-layout.spec.ts tests/e2e/pdd-product-module.spec.ts --grep "PDD 待采集的下一步|带 productId" --reporter=line:2/2 通过。
  • .\scripts\verify.ps1 -Component web:通过;lint 0 error、30 条存量 warning,生产构建成功。
  • python dev_scripts/harness.py check --strict:通过。
  • 未验证部分:未在用户当前实际数据上进行页面人工点击验收;未执行真机采集、采购、创建订单或支付。

遗留问题

  • 两个既有 PDD E2E 用例仍使用页面改版前的“PDD 商品”页标题和“批量创建采集任务”按钮文案,整文件运行会失败;与 #81 行为无关,本工单未扩大范围修复。

相关提交

  • 66ea01c fix(#81): open PDD detail from SYB stage