Files
ops2/.workbuddy/memory/2026-04-24.md
T
2026-04-24 09:26:31 +08:00

22 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-04-24 工作日志
## 采购订单详情页增加关联工单功能
**后端(apiPurchase.go):**
- `getorder` 接口新增返回字段 `workOrders`:通过 `TabWorkOrderPurchaseOrderBind` 表查询关联的工单列表(去重),包含 id/title/status
- 新增 `/purchase/search_work_orders` 接口:支持按 ID 精确匹配或标题/描述模糊搜索工单,返回最新的若干条结果
**前端 APIpurchase.js):**
- 新增 `searchWorkOrders(search, limit)` 方法
**前端 ShowOrder.vue(采购订单详情页):**
- 增加关联工单展示卡片(位于图片备注与状态记录之间)
- 显示所有关联工单列表(点击跳转工单详情)
- 右上角"新增工单"按钮,跳转到新增工单页面并预填采购订单信息(存 localStorage
- 工单状态颜色/文字与 ShowWorkOrder 保持一致
## 其他本次 session 改动(从 git 状态推断)
- 采购列表后端排序改为 `updated_at DESC, id DESC`apiPurchase.go
- 物品详情"关联工单"按钮文本改为 i18n `work_order.add`WarehouseItemDetail.vue
- 关联工单列表图标从 IconPackage 改为 IconFileWarehouseItemDetail.vue