feat(@vben/web-antd): 工单中心 API 类型增强及新增区域安保路由
- OrderItem 新增 responseSeconds、completionSeconds、inspectorName、qualityScore 等字段 - CleaningExtInfo.isAuto 类型由 number 改为 boolean,新增 images 字段 - 新增区域安保配置路由 OpsAreaSecurity Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -69,7 +69,8 @@ export namespace OpsOrderCenterApi {
|
||||
arrivedTime?: string; // 到岗时间
|
||||
totalPauseSeconds?: number; // 暂停总秒数
|
||||
difficultyLevel?: number; // 难度等级
|
||||
isAuto?: number; // 是否自动创建 (1=自动, 0=手动)
|
||||
isAuto?: boolean; // 是否自动创建
|
||||
images?: string | string[]; // 附件图片(JSON数组或数组)
|
||||
}
|
||||
|
||||
/** 安保工单扩展信息(对应 ops_order_security_ext 表) */
|
||||
@@ -116,7 +117,14 @@ export namespace OpsOrderCenterApi {
|
||||
startTime?: null | number | string; // 开始时间(到岗时间,支持时间戳或字符串)
|
||||
endTime?: null | number | string; // 结束时间(支持时间戳或字符串)
|
||||
updateTime?: number | string; // 更新时间(支持时间戳或字符串)
|
||||
responseSeconds?: number; // 响应时长(秒)
|
||||
completionSeconds?: number; // 完成耗时(秒)
|
||||
remark?: string; // 备注
|
||||
inspectorId?: number; // 检查人ID
|
||||
inspectorName?: null | string; // 检查人姓名
|
||||
qualityScore?: null | number; // 质检评分
|
||||
qualityComment?: null | string; // 质检评语
|
||||
urgentReason?: null | string; // 紧急原因
|
||||
}
|
||||
|
||||
/** 统计数据 - 按类型和状态分组 */
|
||||
|
||||
@@ -21,6 +21,16 @@ const routes: RouteRecordRaw[] = [
|
||||
},
|
||||
component: () => import('#/views/ops/area/index.vue'),
|
||||
},
|
||||
// 区域安保配置
|
||||
{
|
||||
path: 'area-security',
|
||||
name: 'OpsAreaSecurity',
|
||||
meta: {
|
||||
title: '区域安保配置',
|
||||
activePath: '/ops/config/area-security',
|
||||
},
|
||||
component: () => import('#/views/ops/area-security/index.vue'),
|
||||
},
|
||||
// 区域设备管理
|
||||
{
|
||||
path: 'area-device',
|
||||
|
||||
Reference in New Issue
Block a user