100 lines
2.8 KiB
TypeScript
100 lines
2.8 KiB
TypeScript
import type {
|
|
InspectionPlanViewModel,
|
|
InspectionPointResultViewMoel,
|
|
InspectionPointViewModel,
|
|
InspectionViewMoel,
|
|
} from "../viewmodels/admin/unit/inspectionPlan/inspectionPlan.models";
|
|
import { equipmentTypeDemoData } from "./equipmentType";
|
|
|
|
export const inspectionPointDemoData: Array<InspectionPointViewModel> = [
|
|
{
|
|
id: "edf",
|
|
title: "vorhandene Spritzstellen ausgebessert",
|
|
description: "",
|
|
type: "number",
|
|
},
|
|
{
|
|
id: "ghi",
|
|
title: "Einband der Kupplung sitzt fest",
|
|
description: "",
|
|
type: "iO-niO",
|
|
},
|
|
{
|
|
id: "lmn",
|
|
title: "Das überstehende Drahtende des Knaggenteiles sitzt versenkt",
|
|
description: "",
|
|
type: "iO-niO",
|
|
},
|
|
{
|
|
id: "jgj",
|
|
title: "Gebrauchsprüfdruck 12bar",
|
|
description: "",
|
|
type: "iO-niO",
|
|
},
|
|
];
|
|
|
|
export const inspectionPlanDemoData: Array<InspectionPlanViewModel> = [
|
|
{
|
|
id: "abc",
|
|
title: "Sichtprüfung",
|
|
version: 1,
|
|
inspectionInterval: "1-m",
|
|
remindTime: "1-m",
|
|
created: new Date(),
|
|
inspectionPoints: [inspectionPointDemoData[0], inspectionPointDemoData[1], inspectionPointDemoData[2]],
|
|
equipmentTypeId: equipmentTypeDemoData[0].id,
|
|
equipmentType: equipmentTypeDemoData[0],
|
|
},
|
|
{
|
|
id: "cba",
|
|
title: "Druckprüfung",
|
|
version: 1,
|
|
inspectionInterval: "1-m",
|
|
remindTime: "22/10",
|
|
created: new Date(),
|
|
inspectionPoints: [inspectionPointDemoData[3]],
|
|
equipmentTypeId: equipmentTypeDemoData[0].id,
|
|
equipmentType: equipmentTypeDemoData[0],
|
|
},
|
|
];
|
|
|
|
export const inspectionPointResultDemoData: Array<InspectionPointResultViewMoel> = [
|
|
{
|
|
inspectionId: "jkvshdfg",
|
|
inspectionVersionedPlanId: inspectionPlanDemoData[0].id,
|
|
inspectionVersionedPlan: inspectionPlanDemoData[0],
|
|
inspectionPointId: inspectionPointDemoData[0].id,
|
|
inspectionPoint: inspectionPointDemoData[0],
|
|
value: "",
|
|
},
|
|
{
|
|
inspectionId: "jkvshdfg",
|
|
inspectionVersionedPlanId: inspectionPlanDemoData[0].id,
|
|
inspectionVersionedPlan: inspectionPlanDemoData[0],
|
|
inspectionPointId: inspectionPointDemoData[1].id,
|
|
inspectionPoint: inspectionPointDemoData[1],
|
|
value: "",
|
|
},
|
|
{
|
|
inspectionId: "jkvshdfg",
|
|
inspectionVersionedPlanId: inspectionPlanDemoData[0].id,
|
|
inspectionVersionedPlan: inspectionPlanDemoData[0],
|
|
inspectionPointId: inspectionPointDemoData[1].id,
|
|
inspectionPoint: inspectionPointDemoData[1],
|
|
value: "",
|
|
},
|
|
];
|
|
|
|
export const inspectionDemoData: Array<InspectionViewMoel> = [
|
|
{
|
|
id: "jkvshdfg",
|
|
inspectionVersionedPlanId: inspectionPlanDemoData[0].id,
|
|
inspectionVersionedPlan: inspectionPlanDemoData[0],
|
|
context: "",
|
|
created: new Date(),
|
|
finished: undefined,
|
|
nextInspection: undefined,
|
|
isOpen: true,
|
|
checks: [inspectionPointResultDemoData[0], inspectionPointResultDemoData[1], inspectionPointResultDemoData[2]],
|
|
},
|
|
];
|