Files
shanxia2.0/openspec/changes/vehicle-maintenance-management/tasks.md
T
2026-06-29 11:15:39 +08:00

34 lines
1.4 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.
## 1. 数据库与菜单
- [x] 1.1 创建迁移 `docs/sql/migrations/2026-06-29-pl-vehicle-maintenance.sql`(两表 + 字典 + 菜单 + 按钮权限 + 角色授权)
- [x] 1.2 同步 `docs/sql/pl_tables.sql` 追加表定义
## 2. 后端模型与 Schema
- [x] 2.1 在 `pl_models.py` 新增 `PlVehicleMaintenanceApply` / `PlVehicleMaintenanceProcess`
- [x] 2.2 新增 `schemas/pl/vehicle_maintenance.py`(Create/Update/Read/Board/Reminder)
## 3. 后端 Service 与 API
- [x] 3.1 实现 `pl_vehicle_maintenance_service.py`(单号 SXWB/SXWC、校验、CRUD、状态联动、提醒查询、process-board)
- [x] 3.2 新增 `api/pl/vehicle_maintenance.py` 并注册路由
- [x] 3.3 运行字段一致性检查(如适用)
## 4. 前端 API 与展示工具
- [x] 4.1 在 `api/pl/index.ts` 增加类型与 API 方法
- [x] 4.2 在 `pl-display.ts` 增加维保类型/申请状态 Tag 映射
## 5. 前端页面
- [x] 5.1 实现 `vehicle-maintenance-apply/index.vue`(列表 + 弹窗 + 选车提醒 + 用户/车牌下拉)
- [x] 5.2 实现 `vehicle-maintenance-process/index.vue`(处理看板 + 行内处理/补录)
- [x] 5.3 在 `router/modules/pl.ts` 注册静态路由
- [x] 5.4 在 `App.vue` 注册 panel 标题竖条规则(如需要)
## 6. 验收
- [x] 6.1 冒烟:申请 CRUD、作废、选车提醒(含取车日边界)
- [x] 6.2 冒烟:处理登记、无申请补录、撤销处理、金额可选
- [x] 6.3 更新 graphify 图谱