一次大的提交
This commit is contained in:
@@ -1,5 +1,64 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import '../../../../../core/consts/workorder_consts.dart';
|
||||
|
||||
/// 设备对象实体
|
||||
class DeviceObjectEntity extends Equatable {
|
||||
final String deviceName;
|
||||
final String deviceType;
|
||||
final String assetCode;
|
||||
|
||||
const DeviceObjectEntity({
|
||||
required this.deviceName,
|
||||
required this.deviceType,
|
||||
required this.assetCode,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [deviceName, deviceType, assetCode];
|
||||
}
|
||||
|
||||
/// 地点实体
|
||||
class LocationEntity extends Equatable {
|
||||
final String stationName;
|
||||
final String area;
|
||||
final String region;
|
||||
final String detailAddress;
|
||||
|
||||
const LocationEntity({
|
||||
required this.stationName,
|
||||
required this.area,
|
||||
required this.region,
|
||||
required this.detailAddress,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [stationName, area, region, detailAddress];
|
||||
}
|
||||
|
||||
/// 时限要求实体
|
||||
class TimeLimitEntity extends Equatable {
|
||||
final String expectedCompleteTime;
|
||||
final String remainingTime;
|
||||
|
||||
const TimeLimitEntity({
|
||||
required this.expectedCompleteTime,
|
||||
required this.remainingTime,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [expectedCompleteTime, remainingTime];
|
||||
}
|
||||
|
||||
/// 附件实体
|
||||
class AttachmentEntity extends Equatable {
|
||||
final String fileName;
|
||||
final String url;
|
||||
|
||||
const AttachmentEntity({required this.fileName, required this.url});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [fileName, url];
|
||||
}
|
||||
|
||||
/// 工单详情实体
|
||||
class WorkOrderEntity {
|
||||
@@ -13,6 +72,34 @@ class WorkOrderEntity {
|
||||
final String location;
|
||||
final WorkOrderStatus status;
|
||||
final double? progress;
|
||||
final String? source;
|
||||
final DeviceObjectEntity? deviceObject;
|
||||
final LocationEntity? locationDetail;
|
||||
final TimeLimitEntity? timeLimit;
|
||||
final String? description;
|
||||
final List<AttachmentEntity>? attachments;
|
||||
final String? orderType;
|
||||
final String? alarmId;
|
||||
final String? alarmNo;
|
||||
final String? handleResult;
|
||||
final String? handleRemark;
|
||||
final String? planStartTime;
|
||||
final String? planEndTime;
|
||||
final String? siteName;
|
||||
final String? deviceId;
|
||||
final String? deviceName;
|
||||
final String? deviceType;
|
||||
final String? assigneeName;
|
||||
final String? aiSuggestion;
|
||||
final String? requiredEquipment;
|
||||
final String? estimatedImpact;
|
||||
final String? taskDescription;
|
||||
final String? actualStartTime;
|
||||
final String? actualEndTime;
|
||||
final String? deadlineTime;
|
||||
final int? sourceType;
|
||||
final List<String>? videoUrls;
|
||||
final String? updateTime;
|
||||
|
||||
WorkOrderEntity({
|
||||
required this.id,
|
||||
@@ -25,6 +112,34 @@ class WorkOrderEntity {
|
||||
required this.location,
|
||||
required this.status,
|
||||
this.progress,
|
||||
this.source,
|
||||
this.deviceObject,
|
||||
this.locationDetail,
|
||||
this.timeLimit,
|
||||
this.description,
|
||||
this.attachments,
|
||||
this.orderType,
|
||||
this.alarmId,
|
||||
this.alarmNo,
|
||||
this.handleResult,
|
||||
this.handleRemark,
|
||||
this.planStartTime,
|
||||
this.planEndTime,
|
||||
this.siteName,
|
||||
this.deviceId,
|
||||
this.deviceName,
|
||||
this.deviceType,
|
||||
this.assigneeName,
|
||||
this.aiSuggestion,
|
||||
this.requiredEquipment,
|
||||
this.estimatedImpact,
|
||||
this.taskDescription,
|
||||
this.actualStartTime,
|
||||
this.actualEndTime,
|
||||
this.deadlineTime,
|
||||
this.sourceType,
|
||||
this.videoUrls,
|
||||
this.updateTime,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user