精油价目导出改为 Excel #36

Merged
fam merged 2 commits from feat/oil-price-export-excel into main 2026-04-15 08:54:31 +00:00
Contributor

改动

  • 原「📥 导出PDF」改成「📥 导出Excel」
  • 用 xlsx 库(已是依赖),动态 import 减小初始 bundle
  • 导出列:精油 / 英文名 / 会员价 / 零售价 / 容量 / 单价(¥/单位) / 状态
  • 数字价格存为 Number,Excel 里可直接参与计算
  • 文件名 精油价目表YYYY-MM-DD.xlsx

测试

  • vitest 353/353
  • cypress 259/259(含新 oil-price-export.cy.js 2 条:按钮可见、点击出「导出成功」toast)
**改动** - 原「📥 导出PDF」改成「📥 导出Excel」 - 用 xlsx 库(已是依赖),动态 import 减小初始 bundle - 导出列:精油 / 英文名 / 会员价 / 零售价 / 容量 / 单价(¥/单位) / 状态 - 数字价格存为 Number,Excel 里可直接参与计算 - 文件名 `精油价目表YYYY-MM-DD.xlsx` **测试** - vitest 353/353 - cypress 259/259(含新 `oil-price-export.cy.js` 2 条:按钮可见、点击出「导出成功」toast)
fam added 1 commit 2026-04-14 22:31:26 +00:00
feat: 精油价目导出改为 Excel(.xlsx)
All checks were successful
Test / unit-test (push) Successful in 6s
Test / build-check (push) Successful in 5s
PR Preview / teardown-preview (pull_request) Has been skipped
Test / e2e-test (push) Successful in 3m2s
PR Preview / test (pull_request) Successful in 6s
PR Preview / deploy-preview (pull_request) Successful in 15s
a28ba1ef57
- 按钮从「导出PDF」改「导出Excel」,动态 import xlsx
- 列:精油/英文名/会员价/零售价/容量/单价/状态
- 文件名:精油价目表YYYY-MM-DD.xlsx
- 新增 e2e(按钮可见 + 点击出 toast)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Owner

🚀 Preview: https://pr-36.oil.oci.euphon.net

DB is a copy of production.

🚀 **Preview**: https://pr-36.oil.oci.euphon.net DB is a copy of production.
fam added 1 commit 2026-04-14 22:37:59 +00:00
fix: 导出 Excel 合并「单价」为一列,值形如 ¥X.XX/ml|g|颗|滴
Some checks failed
PR Preview / test (pull_request) Has been skipped
Deploy Production / test (push) Successful in 7s
PR Preview / teardown-preview (pull_request) Successful in 14s
PR Preview / deploy-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 6s
Test / build-check (push) Successful in 4s
Deploy Production / deploy (push) Successful in 6s
Test / e2e-test (push) Failing after 6m55s
2dca4d13b9
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Owner

🚀 Preview: https://pr-36.oil.oci.euphon.net

DB is a copy of production.

🚀 **Preview**: https://pr-36.oil.oci.euphon.net DB is a copy of production.
fam merged commit 2dca4d13b9 into main 2026-04-15 08:54:31 +00:00
Owner

🗑️ Preview torn down.

🗑️ Preview torn down.
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hera/oil-formula-calculator#36