From 6f80f5126cfafc8113e11fd10aec38e49923547f Mon Sep 17 00:00:00 2001 From: mzl Date: Thu, 6 Aug 2026 14:36:44 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=A4=87=E8=B4=A7=E5=8D=95=E8=BD=A6?= =?UTF-8?q?=E8=BE=86=E6=98=8E=E7=BB=86=E9=99=84=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?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-stock-item-attachment-upload.md | 237 ++++++++++++++++++ 1 file changed, 237 insertions(+) create mode 100644 docs/superpowers/plans/2026-08-06-stock-item-attachment-upload.md diff --git a/docs/superpowers/plans/2026-08-06-stock-item-attachment-upload.md b/docs/superpowers/plans/2026-08-06-stock-item-attachment-upload.md new file mode 100644 index 0000000..ab463be --- /dev/null +++ b/docs/superpowers/plans/2026-08-06-stock-item-attachment-upload.md @@ -0,0 +1,237 @@ +# 备货单车辆明细附件上传 实现计划 + +> **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:** 在 `Add.vue` 车辆明细每行增加行内附件上传,附件随车辆提交到 `stock_order_items.attachment`。 + +**Architecture:** 数据层改共用的 `useStockingForm.ts`:`ItemRow` 加 `attachment_files`(展示用 FileItem[])、`newItem` 初始化、`mappedItems` 映射成 `attachment`(`{url, original_name}` 数组,与 `contract` 实际格式一致)、新增上传/删除方法并暴露 `uploadHeaders`/`itemUploadAction`。UI 在 `Add.vue` 明细行加一个 `ElCol`:`el-upload` 按钮 + 已传文件 `el-tag` 列表。上传走现成 `/ticket/upload?scene=stock_orders`,无需改上传接口。 + +**Tech Stack:** Vue 3 `