增加其他附加费导入模板 #211

Merged
renshen merged 1 commits from feature/renshen-other-surcharge-template into main 2026-09-20 11:39:51 +08:00
Collaborator

实际改动

  • 为“其他附加费汇总”增加与“运费差”一致的导入弹窗和模板下载入口。
  • 新增空白 Excel 模板,字段为日期、负责人、快递公司、快递单号、商品ID、条码、店铺、交易单号、金额、备注、成品条码。
  • 日期及编号列按文本保存,金额列保留数值格式;模板不包含用户提供文件中的真实业务数据。
  • 扩展模板下载路由与控制器映射,并补充权限、格式、长编号和实际导入回归测试。

修改文件

  • app/Http/Controllers/Business/CourierPayableSummaries.php
  • resources/templates/courier-payables/other-surcharge-import-template.xlsx
  • resources/views/business/pages/courier-payables/summary-table.blade.php
  • routes/admin.php
  • tests/Feature/Business/CourierPayableSummaryPagesTest.php

验证结果

  • CourierPayableSummaryPagesTest:8 passed,88 assertions。
  • Blade 编译:php artisan view:cache 通过。
  • git diff --check 通过。
  • 模板已核对为空白,且未提交真实财务数据。

风险检查

  • 涉及导入和页面权限,已增加对应回归测试。
  • 不涉及数据库迁移、生产配置或数据修复。
  • 前端复用现有 VIP 黑金组件样式,符合 DESIGN.md。
## 实际改动 - 为“其他附加费汇总”增加与“运费差”一致的导入弹窗和模板下载入口。 - 新增空白 Excel 模板,字段为日期、负责人、快递公司、快递单号、商品ID、条码、店铺、交易单号、金额、备注、成品条码。 - 日期及编号列按文本保存,金额列保留数值格式;模板不包含用户提供文件中的真实业务数据。 - 扩展模板下载路由与控制器映射,并补充权限、格式、长编号和实际导入回归测试。 ## 修改文件 - app/Http/Controllers/Business/CourierPayableSummaries.php - resources/templates/courier-payables/other-surcharge-import-template.xlsx - resources/views/business/pages/courier-payables/summary-table.blade.php - routes/admin.php - tests/Feature/Business/CourierPayableSummaryPagesTest.php ## 验证结果 - CourierPayableSummaryPagesTest:8 passed,88 assertions。 - Blade 编译:php artisan view:cache 通过。 - git diff --check 通过。 - 模板已核对为空白,且未提交真实财务数据。 ## 风险检查 - 涉及导入和页面权限,已增加对应回归测试。 - 不涉及数据库迁移、生产配置或数据修复。 - 前端复用现有 VIP 黑金组件样式,符合 DESIGN.md。
renshen added 1 commit 2026-09-20 11:39:28 +08:00
renshen merged commit 56949d6d29 into main 2026-09-20 11:39:51 +08:00
renshen deleted branch feature/renshen-other-surcharge-template 2026-09-20 11:39:53 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WuYongJie/CaiWuXiTong#211
No description provided.