2025-05-13 10:11:26 +02:00
|
|
|
import type InspectionPlan from "../../../../views/admin/unit/inspectionPlan/InspectionPlan.vue";
|
2025-04-11 14:14:11 +02:00
|
|
|
import type { EquipmentTypeViewModel } from "../equipmentType/equipmentType.models";
|
|
|
|
|
|
|
|
export interface InspectionPlanViewModel {
|
|
|
|
id: string;
|
|
|
|
title: string;
|
2025-04-28 12:29:44 +02:00
|
|
|
inspectionInterval: `${number}-${"d" | "m" | "y"}` | `${number}/${number}` | `${number}/*`;
|
|
|
|
remindTime: `${number}-${"d" | "m" | "y"}` | `${number}/${number}` | `${number}/*`;
|
|
|
|
version: number;
|
|
|
|
inspectionPoints: InspectionPointViewModel[];
|
2025-04-11 14:14:11 +02:00
|
|
|
equipmentTypeId: string;
|
|
|
|
equipmentType: EquipmentTypeViewModel;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface CreateInspectionPlanViewModel {
|
|
|
|
title: string;
|
2025-04-28 12:29:44 +02:00
|
|
|
inspectionInterval: `${number}-${"d" | "m" | "y"}` | `${number}/${number}` | `${number}/*`;
|
|
|
|
remindTime: `${number}-${"d" | "m" | "y"}` | `${number}/${number}` | `${number}/*`;
|
2025-04-11 14:14:11 +02:00
|
|
|
equipmentTypeId: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface UpdateInspectionPlanViewModel {
|
|
|
|
id: string;
|
|
|
|
title: string;
|
2025-04-28 12:29:44 +02:00
|
|
|
inspectionInterval: `${number}-${"d" | "m" | "y"}` | `${number}/${number}` | `${number}/*`;
|
2025-05-11 16:44:16 +02:00
|
|
|
remindTime?: `${number}-${"d" | "m" | "y"}` | `${number}/${number}` | `${number}/*`;
|
2025-04-28 12:29:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface InspectionPointViewModel {
|
|
|
|
id: string;
|
|
|
|
title: string;
|
|
|
|
description: string;
|
|
|
|
type: "iO-niO" | "text" | "number";
|
2025-04-11 14:14:11 +02:00
|
|
|
}
|
2025-05-13 10:11:26 +02:00
|
|
|
|
|
|
|
export interface InspectionViewMoel {
|
|
|
|
id: string;
|
|
|
|
inspectionPlanId: string;
|
|
|
|
date: Date;
|
|
|
|
status: "open" | "finished";
|
|
|
|
results: Array<InspectionPointResultViewMoel>;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface InspectionPointResultViewMoel {
|
|
|
|
id: string;
|
|
|
|
inspectionId: string;
|
|
|
|
inspectionPlanId: string;
|
|
|
|
inspectionPointId: string;
|
|
|
|
value: string;
|
|
|
|
}
|