新增银行流水模型两期实施计划
This commit is contained in:
@@ -0,0 +1,122 @@
|
||||
# Bank Tag Real Rule Phase 1 Frontend Implementation Plan
|
||||
|
||||
> **For agentic workers:** REQUIRED: Use superpowers:subagent-driven-development (if subagents available) or superpowers:executing-plans to implement this plan. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||||
|
||||
**Goal:** 固化第一期银行流水真实规则落地的前端边界,确认本期不改页面结构与交互,只做接口影响核验和联调预期沉淀。
|
||||
|
||||
**Architecture:** 前端继续沿用现有结果总览页面与模型区展示结构,不新增字段、不调整交互、不新增接口调用。第一期真实规则落地只影响后端打标结果和统计数据来源,前端本期只做边界校验、回归验证和文档记录。
|
||||
|
||||
**Tech Stack:** Vue 2, Element UI, Node.js
|
||||
|
||||
---
|
||||
|
||||
### Task 1: 锁定第一期前端无代码改造边界
|
||||
|
||||
**Files:**
|
||||
- Test: `ruoyi-ui/tests/unit/project-overview-api.test.js`
|
||||
- Test: `ruoyi-ui/tests/unit/preliminary-check-api-integration.test.js`
|
||||
- Test: `ruoyi-ui/tests/unit/preliminary-check-model-linkage-flow.test.js`
|
||||
|
||||
- [ ] **Step 1: Write the failing test**
|
||||
|
||||
补一个前端边界断言,锁定:
|
||||
|
||||
- 本期不新增前端 API 方法
|
||||
- `PreliminaryCheck.vue` 仍按现有接口集合取数
|
||||
- `RiskModelSection.vue` 不新增规则编码分支判断
|
||||
|
||||
可以在现有测试文件中加入如下静态断言思路:
|
||||
|
||||
```js
|
||||
assert(!source.includes('GAMBLING_SENSITIVE_KEYWORD'))
|
||||
assert(!source.includes('SPECIAL_AMOUNT_TRANSACTION'))
|
||||
```
|
||||
|
||||
- [ ] **Step 2: Run test to verify it fails**
|
||||
|
||||
Run:
|
||||
|
||||
```bash
|
||||
cd ruoyi-ui
|
||||
node tests/unit/project-overview-api.test.js
|
||||
node tests/unit/preliminary-check-api-integration.test.js
|
||||
node tests/unit/preliminary-check-model-linkage-flow.test.js
|
||||
```
|
||||
|
||||
Expected:
|
||||
|
||||
- 若当前测试尚未锁定边界,则至少有 1 个断言需要补充并先失败
|
||||
|
||||
- [ ] **Step 3: Write minimal implementation**
|
||||
|
||||
只补测试断言,不改前端业务代码,确保计划执行时能防止误把后端规则落地扩散成前端结构改造。
|
||||
|
||||
- [ ] **Step 4: Run test to verify it passes**
|
||||
|
||||
Run:
|
||||
|
||||
```bash
|
||||
cd ruoyi-ui
|
||||
node tests/unit/project-overview-api.test.js
|
||||
node tests/unit/preliminary-check-api-integration.test.js
|
||||
node tests/unit/preliminary-check-model-linkage-flow.test.js
|
||||
```
|
||||
|
||||
Expected:
|
||||
|
||||
- `PASS`
|
||||
|
||||
- [ ] **Step 5: Commit**
|
||||
|
||||
```bash
|
||||
git add ruoyi-ui/tests/unit/project-overview-api.test.js ruoyi-ui/tests/unit/preliminary-check-api-integration.test.js ruoyi-ui/tests/unit/preliminary-check-model-linkage-flow.test.js
|
||||
git commit -m "锁定第一期流水模型前端边界"
|
||||
```
|
||||
|
||||
### Task 2: 做第一期前端回归并补文档
|
||||
|
||||
**Files:**
|
||||
- Create: `docs/reports/implementation/2026-03-20-bank-tag-real-rule-phase1-frontend-record.md`
|
||||
- Create: `docs/tests/records/2026-03-20-bank-tag-real-rule-phase1-frontend-verification.md`
|
||||
|
||||
- [ ] **Step 1: Run focused frontend regression**
|
||||
|
||||
Run:
|
||||
|
||||
```bash
|
||||
cd ruoyi-ui
|
||||
node tests/unit/project-overview-api.test.js
|
||||
node tests/unit/preliminary-check-api-integration.test.js
|
||||
node tests/unit/preliminary-check-model-api.test.js
|
||||
node tests/unit/preliminary-check-model-data-loading.test.js
|
||||
node tests/unit/preliminary-check-model-linkage-flow.test.js
|
||||
```
|
||||
|
||||
Expected:
|
||||
|
||||
- `PASS`
|
||||
- 第一期开启真实规则后,前端现有接口依赖和模型区联动结构保持稳定
|
||||
|
||||
- [ ] **Step 2: Write implementation record**
|
||||
|
||||
在 `docs/reports/implementation/2026-03-20-bank-tag-real-rule-phase1-frontend-record.md` 中记录:
|
||||
|
||||
- 第一期前端无业务代码改造
|
||||
- 仅做边界锁定与联调预期说明
|
||||
- 前端受影响的仅是后端打标结果数据源更真实
|
||||
|
||||
- [ ] **Step 3: Write verification record**
|
||||
|
||||
在 `docs/tests/records/2026-03-20-bank-tag-real-rule-phase1-frontend-verification.md` 中记录:
|
||||
|
||||
- 执行命令
|
||||
- 执行时间
|
||||
- 结果摘要
|
||||
- 未启动额外前端长期进程;若临时启动,验证后需停止
|
||||
|
||||
- [ ] **Step 4: Commit**
|
||||
|
||||
```bash
|
||||
git add docs/reports/implementation/2026-03-20-bank-tag-real-rule-phase1-frontend-record.md docs/tests/records/2026-03-20-bank-tag-real-rule-phase1-frontend-verification.md
|
||||
git commit -m "补充第一期流水模型前端实施记录"
|
||||
```
|
||||
@@ -0,0 +1,123 @@
|
||||
# Bank Tag Real Rule Phase 2 Frontend Implementation Plan
|
||||
|
||||
> **For agentic workers:** REQUIRED: Use superpowers:subagent-driven-development (if subagents available) or superpowers:executing-plans to implement this plan. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||||
|
||||
**Goal:** 固化第二期银行流水真实规则落地后的前端边界与联调预期,确认本期仍不新增页面字段和交互改造,只做结果链路稳定性验证与文档沉淀。
|
||||
|
||||
**Architecture:** 第二期后端会补齐对象聚合、时间窗口和资产比对类规则,但前端继续只消费既有结果总览接口和模型区接口,不增加规则级展示逻辑。本期前端计划聚焦无改造边界校验、结果链路回归和最终收口记录。
|
||||
|
||||
**Tech Stack:** Vue 2, Element UI, Node.js
|
||||
|
||||
---
|
||||
|
||||
### Task 1: 锁定第二期前端结构无扩散
|
||||
|
||||
**Files:**
|
||||
- Test: `ruoyi-ui/tests/unit/preliminary-check-summary-and-people.test.js`
|
||||
- Test: `ruoyi-ui/tests/unit/preliminary-check-risk-people-binding.test.js`
|
||||
- Test: `ruoyi-ui/tests/unit/preliminary-check-model-and-detail.test.js`
|
||||
|
||||
- [ ] **Step 1: Write the failing test**
|
||||
|
||||
补静态/绑定断言,锁定:
|
||||
|
||||
- 第二期后端规则收口不引起 `RiskPeopleSection.vue` 新增列
|
||||
- 模型区与风险明细区不增加规则编码硬编码展示
|
||||
- 页面仍按现有 `riskPeople / riskModels / riskDetails` 结构消费结果
|
||||
|
||||
- [ ] **Step 2: Run test to verify it fails**
|
||||
|
||||
Run:
|
||||
|
||||
```bash
|
||||
cd ruoyi-ui
|
||||
node tests/unit/preliminary-check-summary-and-people.test.js
|
||||
node tests/unit/preliminary-check-risk-people-binding.test.js
|
||||
node tests/unit/preliminary-check-model-and-detail.test.js
|
||||
```
|
||||
|
||||
Expected:
|
||||
|
||||
- 若边界断言未写,则至少有 1 个测试需要先失败
|
||||
|
||||
- [ ] **Step 3: Write minimal implementation**
|
||||
|
||||
只补测试边界,不改前端业务代码。目标是避免在第二期后端复杂规则落地时,把结果字段变化误扩散成页面结构改造。
|
||||
|
||||
- [ ] **Step 4: Run test to verify it passes**
|
||||
|
||||
Run:
|
||||
|
||||
```bash
|
||||
cd ruoyi-ui
|
||||
node tests/unit/preliminary-check-summary-and-people.test.js
|
||||
node tests/unit/preliminary-check-risk-people-binding.test.js
|
||||
node tests/unit/preliminary-check-model-and-detail.test.js
|
||||
```
|
||||
|
||||
Expected:
|
||||
|
||||
- `PASS`
|
||||
|
||||
- [ ] **Step 5: Commit**
|
||||
|
||||
```bash
|
||||
git add ruoyi-ui/tests/unit/preliminary-check-summary-and-people.test.js ruoyi-ui/tests/unit/preliminary-check-risk-people-binding.test.js ruoyi-ui/tests/unit/preliminary-check-model-and-detail.test.js
|
||||
git commit -m "锁定第二期流水模型前端边界"
|
||||
```
|
||||
|
||||
### Task 2: 做第二期前端收口回归并补文档
|
||||
|
||||
**Files:**
|
||||
- Create: `docs/reports/implementation/2026-03-20-bank-tag-real-rule-phase2-frontend-record.md`
|
||||
- Create: `docs/tests/records/2026-03-20-bank-tag-real-rule-phase2-frontend-verification.md`
|
||||
|
||||
- [ ] **Step 1: Run final frontend regression**
|
||||
|
||||
Run:
|
||||
|
||||
```bash
|
||||
cd ruoyi-ui
|
||||
node tests/unit/project-overview-api.test.js
|
||||
node tests/unit/preliminary-check-api-integration.test.js
|
||||
node tests/unit/preliminary-check-summary-and-people.test.js
|
||||
node tests/unit/preliminary-check-risk-people-binding.test.js
|
||||
node tests/unit/preliminary-check-model-api.test.js
|
||||
node tests/unit/preliminary-check-model-data-loading.test.js
|
||||
node tests/unit/preliminary-check-model-match-mode.test.js
|
||||
node tests/unit/preliminary-check-model-filters.test.js
|
||||
node tests/unit/preliminary-check-model-table-columns.test.js
|
||||
node tests/unit/preliminary-check-model-linkage-flow.test.js
|
||||
node tests/unit/preliminary-check-model-and-detail.test.js
|
||||
node tests/unit/preliminary-check-states.test.js
|
||||
node tests/unit/preliminary-check-layout.test.js
|
||||
```
|
||||
|
||||
Expected:
|
||||
|
||||
- `PASS`
|
||||
- 第二期后端规则全量收口后,前端现有结果总览结构仍稳定
|
||||
|
||||
- [ ] **Step 2: Write implementation record**
|
||||
|
||||
在 `docs/reports/implementation/2026-03-20-bank-tag-real-rule-phase2-frontend-record.md` 中记录:
|
||||
|
||||
- 第二期前端仍无业务代码改造
|
||||
- 主要工作为结构边界锁定、联调预期确认与全量收口记录
|
||||
- 后端真实规则全量落地后,前端继续消费既有接口
|
||||
|
||||
- [ ] **Step 3: Write verification record**
|
||||
|
||||
在 `docs/tests/records/2026-03-20-bank-tag-real-rule-phase2-frontend-verification.md` 中记录:
|
||||
|
||||
- 执行命令
|
||||
- 执行时间
|
||||
- 结果摘要
|
||||
- 未启动额外前端长期进程;若临时启动,验证后需停止
|
||||
|
||||
- [ ] **Step 4: Commit**
|
||||
|
||||
```bash
|
||||
git add docs/reports/implementation/2026-03-20-bank-tag-real-rule-phase2-frontend-record.md docs/tests/records/2026-03-20-bank-tag-real-rule-phase2-frontend-verification.md
|
||||
git commit -m "补充第二期流水模型前端实施记录"
|
||||
```
|
||||
Reference in New Issue
Block a user