You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dianshang-qianduan/docs/superpowers/plans/2026-08-17-product-pricing-...

20 lines
970 B
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 新产品定价第 4 步实施计划
## 已确认范围
- 实现“新产品定价”第 4 步 PSM 价格敏感度测试页面。
- 固定保留 6 个默认价格区间;学生可新增、删除自定义区间。
- 学生手动填写 4 组累计占比和 3 个价格点,保存到现有通用实训答案。
- 支持导出 PSM 表格,以及上传并预览 PSM 价格折线图。
## 实现方式
- 仅修改 `src/views/product/price.vue`,复用 `step4Answer` 和通用附件上传接口,不增加数据库、后端接口或迁移。
- 对占比字段校验为 0–100 的数值;价格点校验为非空正数,价格范围校验为非空。
- 上传仅接受常见图片格式且限制 5 MB;保存上传后的地址与文件名,并用现有图片组件提供预览。
## 验证
- 检查默认行不可删除、自定义行可删、表格导出和保存负载的字段完整性。
- 运行生产构建,确认 Vue 模板与静态资源可编译。