chore: update graphify and mark batch outbound plan complete
Refresh knowledge graphs after storage facility batch outbound changes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
9978ae7724
commit
b105bd9b7d
11 files changed
+142
-142
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# 库位管理货架批量出库 Implementation Plan
|
||||
|
||||
> **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.
|
||||
> **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 (`- [x]`) syntax for tracking.
|
||||
|
||||
**Goal:** 在库位管理货架上对占用格常驻勾选,工具栏「出库已选」串行调用现有出库接口完成批量出库。
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
**Files:**
|
||||
- Modify: `backend/app/crud/storage_occupancy.py`(`enrich_slots_with_stored_cell_products`,约 306–325 行)
|
||||
|
||||
- [ ] **Step 1: 写入 storedOccupancyId**
|
||||
- [x] **Step 1: 写入 storedOccupancyId**
|
||||
|
||||
在循环内、设置 `storedItemType` 之前(或紧挨其后)增加:
|
||||
|
||||
@@ -50,7 +50,7 @@ for slot in slots:
|
||||
|
||||
更新函数 docstring 为:「为占用格附带在库占用 id 与物品摘要(名称/类型),供库位货架展示与批量出库。」
|
||||
|
||||
- [ ] **Step 2: 语法校验**
|
||||
- [x] **Step 2: 语法校验**
|
||||
|
||||
Run:
|
||||
|
||||
@@ -60,7 +60,7 @@ cd backend && source venv/bin/activate && python -c "from app.crud.storage_occup
|
||||
|
||||
Expected: `ok`
|
||||
|
||||
- [ ] **Step 3: Commit**
|
||||
- [x] **Step 3: Commit**
|
||||
|
||||
```bash
|
||||
git add backend/app/crud/storage_occupancy.py
|
||||
@@ -79,7 +79,7 @@ EOF
|
||||
**Files:**
|
||||
- Modify: `web-admin/src/views/operations/storage-facility/index.vue`
|
||||
|
||||
- [ ] **Step 1: 模板 — 改造 `.storage-toolbar`**
|
||||
- [x] **Step 1: 模板 — 改造 `.storage-toolbar`**
|
||||
|
||||
将现有工具栏(约 123–139 行)改为(保留「批量生成格子 / 清空格子」,并在前插入已选与出库):
|
||||
|
||||
@@ -153,7 +153,7 @@ EOF
|
||||
|
||||
(无格子时才显示「批量生成格子」;有格子时不显示该按钮——与当前「有格子则禁用」等价且更干净。)
|
||||
|
||||
- [ ] **Step 2: script — 选择 Map 与辅助函数**
|
||||
- [x] **Step 2: script — 选择 Map 与辅助函数**
|
||||
|
||||
在 script 中、`slotFilterKeyword` 附近增加:
|
||||
|
||||
@@ -226,7 +226,7 @@ function pruneOutboundSelection(slots: any[]) {
|
||||
}
|
||||
```
|
||||
|
||||
- [ ] **Step 3: script — handleBatchOutbound**
|
||||
- [x] **Step 3: script — handleBatchOutbound**
|
||||
|
||||
```ts
|
||||
const handleBatchOutbound = async () => {
|
||||
@@ -290,7 +290,7 @@ const handleBatchOutbound = async () => {
|
||||
|
||||
与单条出库一致优先「错误已全局处理」+ 补充已成功数量提示。
|
||||
|
||||
- [ ] **Step 4: 生命周期 — 清空选择**
|
||||
- [x] **Step 4: 生命周期 — 清空选择**
|
||||
|
||||
在 `handleNodeClick` 开头调用 `clearOutboundSelection()`,并保留现有 `slotFilterKeyword` 清空逻辑。
|
||||
|
||||
@@ -306,7 +306,7 @@ next.delete(currentSlot.value?.id)
|
||||
selectedOutboundMap.value = next
|
||||
```
|
||||
|
||||
- [ ] **Step 5: 筛选时 prune 仅保留当前可见占用格**
|
||||
- [x] **Step 5: 筛选时 prune 仅保留当前可见占用格**
|
||||
|
||||
页面已有 `slotMatchesFilter` 与 `filteredSlotList`。在其旁增加 watch:
|
||||
|
||||
@@ -333,7 +333,7 @@ watch(
|
||||
**Files:**
|
||||
- Modify: `web-admin/src/views/operations/storage-facility/index.vue`
|
||||
|
||||
- [ ] **Step 1: 模板 — shelf-cell 增加勾选框与 selected class**
|
||||
- [x] **Step 1: 模板 — shelf-cell 增加勾选框与 selected class**
|
||||
|
||||
将格子节点改为:
|
||||
|
||||
@@ -367,7 +367,7 @@ watch(
|
||||
</div>
|
||||
```
|
||||
|
||||
- [ ] **Step 2: SCSS — 勾选框与选中态**
|
||||
- [x] **Step 2: SCSS — 勾选框与选中态**
|
||||
|
||||
在 `.shelf-cell` 样式块附近增加:
|
||||
|
||||
@@ -434,7 +434,7 @@ watch(
|
||||
|
||||
注意:删除按钮在右上,勾选在左上,互不遮挡。
|
||||
|
||||
- [ ] **Step 3: 清空格子按钮补图标(若缺失)**
|
||||
- [x] **Step 3: 清空格子按钮补图标(若缺失)**
|
||||
|
||||
若「清空格子」尚无 `el-icon`,按 ui-conventions 补一个合适图标(如 `Delete`),并在 script 中从 `@element-plus/icons-vue` 导入。本任务若只改批量出库相关,至少保证「出库已选」带 `Top` 图标(已导入)。
|
||||
|
||||
@@ -444,7 +444,7 @@ watch(
|
||||
|
||||
**Files:** 无新增
|
||||
|
||||
- [ ] **Step 1: 本地验收清单**
|
||||
- [x] **Step 1: 本地验收清单**
|
||||
|
||||
在 `/#/production-group/production/storage-facility`:
|
||||
|
||||
@@ -455,7 +455,7 @@ watch(
|
||||
5. 切换左侧树节点:选择清空
|
||||
6. (可选)断网或造失败:已成功条数提示 + 后续中止
|
||||
|
||||
- [ ] **Step 2: 更新知识图谱**
|
||||
- [x] **Step 2: 更新知识图谱**
|
||||
|
||||
```bash
|
||||
./scripts/update-graph.sh backend
|
||||
@@ -464,7 +464,7 @@ watch(
|
||||
./scripts/update-graph.sh all
|
||||
```
|
||||
|
||||
- [ ] **Step 3: Commit 前端**
|
||||
- [x] **Step 3: Commit 前端**
|
||||
|
||||
```bash
|
||||
git add web-admin/src/views/operations/storage-facility/index.vue
|
||||
|
||||
Reference in new issue
Block a user