From aa23d0949b9d27292042b69ef4033d3beed7ff92 Mon Sep 17 00:00:00 2001 From: mzl Date: Thu, 6 Aug 2026 11:37:34 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=A4=87=E8=B4=A7=E5=8D=95/=E7=BB=88?= =?UTF-8?q?=E7=89=88=E5=88=97=E8=A1=A8=E8=A7=86=E5=9B=BE=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- .../2026-08-06-stocking-visibility-toggle.md | 272 ++++++++++++++++++ 1 file changed, 272 insertions(+) create mode 100644 docs/superpowers/plans/2026-08-06-stocking-visibility-toggle.md diff --git a/docs/superpowers/plans/2026-08-06-stocking-visibility-toggle.md b/docs/superpowers/plans/2026-08-06-stocking-visibility-toggle.md new file mode 100644 index 0000000..6e8b7e2 --- /dev/null +++ b/docs/superpowers/plans/2026-08-06-stocking-visibility-toggle.md @@ -0,0 +1,272 @@ +# 备货单 / 终版列表「全部 / 我的」视图切换 实现计划 + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** 在 `stocking_list.vue` 与 `final_list.vue` 给 `userId === 73` 的特权用户增加「全部 / 我的」视图切换,切换时给列表接口传 `view_scope=all|self`。 + +**Architecture:** 纯前端 UI + 传参改动。新增本地状态 `viewScope`,工具栏渲染条件 `canViewAll = userStore.getUserInfo.userId === 73`;`getList` 把 `viewScope.value` 作为 `view_scope` 随请求发出;切换时重置页码并重新请求。是否返回全量数据由后端按 token 鉴权决定(后端改造见 spec 第 3.4 节,不在本计划内)。 + +**Tech Stack:** Vue 3 `