生产管理系统前端 - 更新瓦力提交的产品原型到参考目录
This commit is contained in:
@@ -1,26 +1,66 @@
|
||||
// 农机负载设备数据类型定义
|
||||
|
||||
export interface MountedDevice {
|
||||
// 设备库中的设备实例
|
||||
export interface DeviceInstance {
|
||||
id: string;
|
||||
machineryId: string; // 所属农机ID
|
||||
deviceTypeId: string; // 设备类型ID
|
||||
|
||||
// 设备信息
|
||||
deviceName: string;
|
||||
serialNumber: string; // 设备序列号
|
||||
purchaseDate?: string; // 采购日期
|
||||
warrantyExpiry?: string; // 保修期限
|
||||
|
||||
// 设备参数配置(根据设备类型的参数模板配置)
|
||||
parameters: Record<string, any>;
|
||||
|
||||
// 设备状态
|
||||
status: 'available' | 'mounted' | 'maintenance' | 'damaged' | 'retired';
|
||||
currentMachineryId?: string; // 当前挂载的农机ID(如果已挂载)
|
||||
|
||||
// 备注
|
||||
remarks?: string;
|
||||
|
||||
// 操作记录
|
||||
createdBy: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
// 挂载记录(设备与农机的关联关系)
|
||||
export interface MountRecord {
|
||||
id: string;
|
||||
machineryId: string; // 所属农机ID
|
||||
deviceId: string; // 设备实例ID
|
||||
|
||||
// 挂载信息
|
||||
mountedAt: string; // 挂载时间
|
||||
unmountedAt?: string; // 拆卸时间
|
||||
status: 'mounted' | 'unmounted';
|
||||
|
||||
// 设备参数配置
|
||||
parameters: Record<string, any>;
|
||||
|
||||
// 备注
|
||||
remarks?: string;
|
||||
mountRemarks?: string; // 挂载备注
|
||||
unmountRemarks?: string; // 拆卸备注
|
||||
|
||||
// 操作记录
|
||||
mountedBy: string;
|
||||
unmountedBy?: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
// 兼容旧的 MountedDevice 类型(逐步迁移)
|
||||
export interface MountedDevice {
|
||||
id: string;
|
||||
machineryId: string;
|
||||
deviceTypeId: string;
|
||||
deviceName: string;
|
||||
serialNumber: string;
|
||||
mountedAt: string;
|
||||
unmountedAt?: string;
|
||||
status: 'mounted' | 'unmounted';
|
||||
parameters: Record<string, any>;
|
||||
remarks?: string;
|
||||
operator: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
@@ -150,7 +190,7 @@ export interface FaultDiagnosis {
|
||||
resolvedAt?: string;
|
||||
|
||||
// 状态
|
||||
status: '待处理' | '处理中' | '已解决' | '已忽略';
|
||||
status: '待处理' | '已处理' | '已忽略';
|
||||
|
||||
// 处理信息
|
||||
handler?: string;
|
||||
|
||||
Reference in New Issue
Block a user