Files
one-pipe-system/openspec/changes/update-refund-voucher-multi-image/tasks.md
break 0c3065f970
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 7m52s
让凭证数组与套餐作废任务进入可联调状态
Constraint: 后端订单套餐作废接口使用 /api/admin/order-package-invalidate-tasks,上传
  purpose 只能使用 attachment。
  Rejected: 继续提交逗号拼接凭证字符串 | 新提交路径必须使用 string[],历史字符串只做读取归一化。
  Confidence: high
  Scope-risk: broad
  Directive: 新增订单套餐作废权限时需同时配置菜单 URL 与
  order_package_invalidate_task:create/detail 按钮权限。
  Tested: bun run build;development 真实后端联调上传、创建、列表、详情通过;复机接口未触发。
  Not-tested: 未逐一手工覆盖所有历史凭证数据、全部角色权限组合和所有文件扩展名预览
2026-06-23 09:50:12 +08:00

824 B

1. Implementation

  • 1.1 Update refund detail to render voucher images inline when voucher keys exist.
  • 1.2 Add click-to-preview/enlarge behavior for refund detail voucher images.
  • 1.3 Add payment_status: 2 to the order number search/select request used by create refund application.
  • 1.4 Update refund management voucher upload to allow multiple image uploads.
  • 1.5 Submit uploaded voucher file keys as string[] in refund_voucher_key; do not submit comma-separated strings for new records.
  • 1.6 Validate that at least one voucher image is uploaded before submission when voucher is required.
  • 1.7 Verify refund detail display, order selector filtering, and multi-image payload behavior.
  • 1.8 Allow requested refund amount 0 while blocking negative and over-actual amounts.