fix: 订单列表套餐显示销售价
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 7m33s

This commit is contained in:
sexygoat
2026-05-30 15:06:41 +08:00
parent ad56b82944
commit 322cd0dca5
4 changed files with 54 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
## ADDED Requirements
### Requirement: Create Order Suggested Retail Price
The system SHALL show the selected package `suggested_retail_price` as the package price in the admin order creation dialog.
#### Scenario: Display package suggested retail price in create order dialog
- **GIVEN** 用户正在订单管理创建订单弹窗选择套餐
- **AND** 套餐返回 `suggested_retail_price``2000` 分且 `cost_price``1000`
- **WHEN** 系统渲染套餐下拉选项
- **THEN** 套餐选项 MUST display `¥20.00`
- **AND** 套餐选项 MUST NOT display `¥10.00` as the package price
#### Scenario: Do not submit package price when creating an order
- **GIVEN** 用户已在创建订单弹窗选择套餐
- **AND** 所选套餐的 `suggested_retail_price``2000`
- **WHEN** 用户提交创建订单表单
- **THEN** 系统 MUST NOT include `suggested_retail_price` in the create-order request payload
- **AND** 系统 MUST NOT include the selected package `cost_price` in the create-order request payload