Files
loan-pricing/openspec/changes/add-bargaining-pool-display/specs/loan-pricing-workflow-ui/spec.md
2026-01-22 09:58:21 +08:00

43 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# loan-pricing-workflow-ui Spec Delta
## ADDED Requirements
### Requirement: 议价池信息展示
系统 SHALL 在流程详情页面的模型输出信息下方展示议价池信息。
#### Scenario: 显示议价池信息
- **WHEN** 用户访问流程详情页面
- **THEN** 系统在模型输出卡片下方显示"议价池"卡片,包含以下三个字段:
- 网点议价池:数值类型,默认值为 0
- 支行议价池:数值类型,默认值为 0
- 私域池:数值类型,默认值为 0
#### Scenario: 议价池数据格式化
- **WHEN** 议价池数据为 null、undefined 或空字符串
- **THEN** 系统将显示值格式化为 "0"
#### Scenario: 议价池卡片样式
- **WHEN** 用户查看流程详情页面
- **THEN** 议价池卡片的样式(标题栏、边框、内边距)与模型输出卡片保持一致
### Requirement: 议价池组件封装
系统 SHALL 将议价池展示功能封装为独立的 Vue 组件。
#### Scenario: 组件独立性
- **WHEN** 议价池显示组件被创建
- **THEN** 组件文件位于 `ruoyi-ui/src/views/loanPricing/workflow/components/BargainingPoolDisplay.vue`
#### Scenario: 组件 Props 接口
- **WHEN** 父组件使用议价池显示组件
- **THEN** 组件接收以下 props
- `branch-pool`网点议价池值Number/String默认值为 0
- `sub-branch-pool`支行议价池值Number/String默认值为 0
- `private-domain-pool`私域池值Number/String默认值为 0