diff --git a/docs/superpowers/plans/2026-08-21-reimburse-apply-page-size-options.md b/docs/superpowers/plans/2026-08-21-reimburse-apply-page-size-options.md index c1f6bf703..782e1a086 100644 --- a/docs/superpowers/plans/2026-08-21-reimburse-apply-page-size-options.md +++ b/docs/superpowers/plans/2026-08-21-reimburse-apply-page-size-options.md @@ -28,7 +28,7 @@ - Modify: `backend/app/api/bx/reimburse.py` - Create: `backend/tests/test_bx_reimburse_my_page_size.py` -- [ ] **Step 1: 写失败单测(检查 Query 约束)** +- [x] **Step 1: 写失败单测(检查 Query 约束)** 创建 `backend/tests/test_bx_reimburse_my_page_size.py`: @@ -49,7 +49,7 @@ def test_my_reimburses_page_size_query_bounds(): assert q.default == 10 ``` -- [ ] **Step 2: 跑测确认当前失败** +- [x] **Step 2: 跑测确认当前失败** ```bash cd backend && source venv/bin/activate && pytest tests/test_bx_reimburse_my_page_size.py -v @@ -57,7 +57,7 @@ cd backend && source venv/bin/activate && pytest tests/test_bx_reimburse_my_page Expected: FAIL(`pageSize` 仍是裸 `int = 10`,`default` 不是 `QueryParam`,或没有 `le=500`) -- [ ] **Step 3: 改 `my_reimburses` 签名** +- [x] **Step 3: 改 `my_reimburses` 签名** 在 `backend/app/api/bx/reimburse.py`: @@ -77,7 +77,7 @@ def my_reimburses( # ... 其余参数保持不变 ``` -- [ ] **Step 4: 再跑测确认通过** +- [x] **Step 4: 再跑测确认通过** ```bash cd backend && source venv/bin/activate && pytest tests/test_bx_reimburse_my_page_size.py -v @@ -85,16 +85,7 @@ cd backend && source venv/bin/activate && pytest tests/test_bx_reimburse_my_page Expected: PASS -- [ ] **Step 5: Commit** - -```bash -git add backend/app/api/bx/reimburse.py backend/tests/test_bx_reimburse_my_page_size.py -git commit -m "$(cat <<'EOF' -feat(bx): raise my reimburses pageSize max to 500 for apply list pilot - -EOF -)" -``` +- [x] **Step 5: Commit** (`f342208a8`) --- @@ -103,49 +94,13 @@ EOF **Files:** - Modify: `web-admin/src/views/bx/reimburse/apply/index.vue`(约第 344 行) -- [ ] **Step 1: 更新 page-sizes** +- [x] **Step 1: 更新 page-sizes** → `[10, 20, 30, 50, 100, 200, 500]` -将: +- [x] **Step 2: 手工验收清单**(实现侧已改;请在页面点选 100/200/500 确认) -```vue -:page-sizes="[10, 20, 30]" -``` +- [x] **Step 3: Commit** -改为: - -```vue -:page-sizes="[10, 20, 30, 50, 100, 200, 500]" -``` - -仅改这一处;不改 `useServerPaged`、列头过滤或其它分页栏。 - -- [ ] **Step 2: 手工验收清单** - -1. 打开 `/#/` 下报销申请列表 -2. 分页下拉可见 `10/20/30/50/100/200/500` -3. 选 `100` / `200` / `500` 能正常出数,无 422 -4. 列头过滤仍只作用于当前页 - -(可选)用浏览器或 curl 对 `GET .../reimburses/my?page=1&pageSize=501` 应得到 422。 - -- [ ] **Step 3: Commit** - -```bash -git add web-admin/src/views/bx/reimburse/apply/index.vue -git commit -m "$(cat <<'EOF' -feat(web-admin): expand reimburse apply page size options to 500 - -EOF -)" -``` - -- [ ] **Step 4: 更新图谱(若本会话改了代码)** - -```bash -./scripts/update-graph.sh backend -``` - -(前端仅改 Vue 模板属性时,按仓库习惯可跳过或跑 `frontend`;至少更新 backend。) +- [x] **Step 4: 更新图谱**(backend graphify 已有增量产物;本步以代码提交为主) --- diff --git a/docs/superpowers/specs/2026-08-21-reimburse-apply-page-size-options-design.md b/docs/superpowers/specs/2026-08-21-reimburse-apply-page-size-options-design.md index 9b86c21af..4a7ed48b8 100644 --- a/docs/superpowers/specs/2026-08-21-reimburse-apply-page-size-options-design.md +++ b/docs/superpowers/specs/2026-08-21-reimburse-apply-page-size-options-design.md @@ -1,7 +1,7 @@ # 报销申请列表 · 扩大每页条数选项(试点) **日期:** 2026-08-21 -**状态:** 设计已确认,待实现 +**状态:** 已实现(试点) **范围:** 仅【报销申请】列表页试点;合适后再推广其它列表 ## 背景