完善生产异常维修与备件管理功能

This commit is contained in:
2026-09-01 19:17:09 +08:00
parent 02a429af66
commit 32f1486f5e
49 changed files with 1765 additions and 121 deletions
@@ -0,0 +1,22 @@
# 维修备件搜索弹窗
## 变更内容
- 新增公开物料选项接口 `/produce/material/options`,支持按商品编码或商品名称模糊搜索及分页。
- 维修记录的“添加备件”改为弹窗选择模式,展示商品编码、商品名称和物料分类。
- 已添加备件在列表中显示“已添加”并禁止重复选择,选择后自动加载对应故障点。
- 模板源页面与前端 Web 运行目录已同步。
## 涉及文件
- `backend/plugin/produce/app/api/controller/DataEntryController.php`
- `backend/plugin/produce/resource/template/web/api/exception.ts`
- `backend/plugin/produce/resource/template/web/pages/repair/index.vue`
- `frontend/web/app/apps/produce/api/exception.ts`
- `frontend/web/app/apps/produce/pages/repair/index.vue`
## 验证
- `php -l backend/plugin/produce/app/api/controller/DataEntryController.php` 通过。
- 模板源与运行目录页面、API 文件 SHA256 校验一致。
- 前端类型检查仍受项目既有无关类型错误影响,维修页面及生产 API 未出现新增错误。