132 lines
4.7 KiB
TypeScript
132 lines
4.7 KiB
TypeScript
|
|
import { PriorityEnum } from "../types/common";
|
|||
|
|
import {
|
|||
|
|
CriticalityLevelEnum,
|
|||
|
|
PmFaultNotification,
|
|||
|
|
FaultTypeEnum,
|
|||
|
|
NotificationStatusEnum,
|
|||
|
|
} from "../types/pm";
|
|||
|
|
import { mockWorkCenters } from "./mockWorkCenters";
|
|||
|
|
|
|||
|
|
export const mockFaultNotifications: PmFaultNotification[] = [
|
|||
|
|
{
|
|||
|
|
id: "FN001",
|
|||
|
|
notificationCode: "ARZ-2024-001",
|
|||
|
|
workCenterId: "1",
|
|||
|
|
workCenter: mockWorkCenters.find((wc) => wc.id === "1")!,
|
|||
|
|
location: "Atölye A - Hat 1",
|
|||
|
|
faultType: FaultTypeEnum.Mechanical,
|
|||
|
|
priority: PriorityEnum.High,
|
|||
|
|
severity: CriticalityLevelEnum.High,
|
|||
|
|
title: "Motor Aşırı Titreşim",
|
|||
|
|
description:
|
|||
|
|
"CNC torna tezgahında motor aşırı titreşim yapıyor. Ses seviyesi normalden yüksek ve hassas işlemlerde problem yaşanıyor.",
|
|||
|
|
reportedBy: "Operator Mustafa Koç",
|
|||
|
|
reportedAt: new Date("2024-02-08T09:30:00"),
|
|||
|
|
assignedTo: "Mehmet Kaya - Mekanik Ekibi",
|
|||
|
|
status: NotificationStatusEnum.InProgress,
|
|||
|
|
images: ["fault_image_1.jpg", "fault_image_2.jpg"],
|
|||
|
|
estimatedRepairTime: 180,
|
|||
|
|
workOrderId: "WO-2024-045",
|
|||
|
|
followUpRequired: true,
|
|||
|
|
isActive: true,
|
|||
|
|
creationTime: new Date("2024-02-08T09:30:00"),
|
|||
|
|
lastModificationTime: new Date("2024-02-08T14:15:00"),
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "FN002",
|
|||
|
|
notificationCode: "ARZ-2024-002",
|
|||
|
|
workCenterId: "2",
|
|||
|
|
workCenter: mockWorkCenters.find((wc) => wc.id === "2")!,
|
|||
|
|
location: "Kompresör Odası",
|
|||
|
|
faultType: FaultTypeEnum.Electrical,
|
|||
|
|
priority: PriorityEnum.Urgent,
|
|||
|
|
severity: CriticalityLevelEnum.Critical,
|
|||
|
|
title: "Elektrik Panosu Arızası",
|
|||
|
|
description:
|
|||
|
|
"Kompresör elektrik panosunda kısa devre meydana geldi. Sistem tamamen durdu.",
|
|||
|
|
reportedBy: "Vardiya Amiri Ali Demir",
|
|||
|
|
reportedAt: new Date("2024-02-07T16:45:00"),
|
|||
|
|
assignedTo: "Ahmet Yılmaz - Elektrik Ekibi",
|
|||
|
|
status: NotificationStatusEnum.Resolved,
|
|||
|
|
estimatedRepairTime: 240,
|
|||
|
|
actualRepairTime: 195,
|
|||
|
|
resolutionNotes:
|
|||
|
|
"Yanık sigorta değiştirildi ve pano kontrolleri yapıldı. Sistem normal çalışıyor.",
|
|||
|
|
closedBy: "Ahmet Yılmaz",
|
|||
|
|
closedAt: new Date("2024-02-07T20:00:00"),
|
|||
|
|
workOrderId: "WO-2024-044",
|
|||
|
|
followUpRequired: false,
|
|||
|
|
isActive: true,
|
|||
|
|
creationTime: new Date("2024-02-07T16:45:00"),
|
|||
|
|
lastModificationTime: new Date("2024-02-07T20:00:00"),
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "FN003",
|
|||
|
|
notificationCode: "ARZ-2024-003",
|
|||
|
|
workCenterId: "3",
|
|||
|
|
workCenter: mockWorkCenters.find((wc) => wc.id === "3")!,
|
|||
|
|
location: "Ana Üretim Hattı",
|
|||
|
|
faultType: FaultTypeEnum.Mechanical,
|
|||
|
|
priority: PriorityEnum.Normal,
|
|||
|
|
severity: CriticalityLevelEnum.Medium,
|
|||
|
|
title: "Kayış Gerilimi Azaldı",
|
|||
|
|
description:
|
|||
|
|
"Konveyör kayışında gevşeme tespit edildi. Hız düşüklüğü gözlemleniyor.",
|
|||
|
|
reportedBy: "Hat Sorumlusu Fatma Özkan",
|
|||
|
|
reportedAt: new Date("2024-02-06T11:20:00"),
|
|||
|
|
status: NotificationStatusEnum.Open,
|
|||
|
|
estimatedRepairTime: 60,
|
|||
|
|
followUpRequired: false,
|
|||
|
|
isActive: true,
|
|||
|
|
creationTime: new Date("2024-02-06T11:20:00"),
|
|||
|
|
lastModificationTime: new Date("2024-02-06T11:20:00"),
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "FN004",
|
|||
|
|
notificationCode: "ARZ-2024-004",
|
|||
|
|
workCenterId: "3",
|
|||
|
|
workCenter: mockWorkCenters.find((wc) => wc.id === "3")!,
|
|||
|
|
location: "Kaynak Atölyesi",
|
|||
|
|
faultType: FaultTypeEnum.Software,
|
|||
|
|
priority: PriorityEnum.High,
|
|||
|
|
severity: CriticalityLevelEnum.High,
|
|||
|
|
title: "Program Kalibrasyon Hatası",
|
|||
|
|
description:
|
|||
|
|
"Robot kaynak pozisyonlarında sapma var. Kalibrasyon gerekiyor.",
|
|||
|
|
reportedBy: "Kaynak Operatörü Hasan Çelik",
|
|||
|
|
reportedAt: new Date("2024-02-05T14:10:00"),
|
|||
|
|
assignedTo: "Sema Korkmaz - Robot Teknisyeni",
|
|||
|
|
status: NotificationStatusEnum.Assigned,
|
|||
|
|
estimatedRepairTime: 120,
|
|||
|
|
followUpRequired: true,
|
|||
|
|
isActive: true,
|
|||
|
|
creationTime: new Date("2024-02-05T14:10:00"),
|
|||
|
|
lastModificationTime: new Date("2024-02-05T15:30:00"),
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "FN005",
|
|||
|
|
notificationCode: "ARZ-2024-005",
|
|||
|
|
workCenterId: "4",
|
|||
|
|
workCenter: mockWorkCenters.find((wc) => wc.id === "4")!,
|
|||
|
|
location: "Pres Atölyesi",
|
|||
|
|
faultType: FaultTypeEnum.Hydraulic,
|
|||
|
|
priority: PriorityEnum.Low,
|
|||
|
|
severity: CriticalityLevelEnum.Low,
|
|||
|
|
title: "Yağ Sızıntısı",
|
|||
|
|
description:
|
|||
|
|
"Hidrolik sistem borularında hafif yağ sızıntısı tespit edildi.",
|
|||
|
|
reportedBy: "Temizlik Personeli Zeynep Aktaş",
|
|||
|
|
reportedAt: new Date("2024-02-04T08:45:00"),
|
|||
|
|
status: NotificationStatusEnum.Closed,
|
|||
|
|
estimatedRepairTime: 45,
|
|||
|
|
actualRepairTime: 30,
|
|||
|
|
resolutionNotes: "Boru bağlantıları sıkılaştırıldı. Sızıntı durduruldu.",
|
|||
|
|
closedBy: "Ali Demir",
|
|||
|
|
closedAt: new Date("2024-02-04T10:15:00"),
|
|||
|
|
followUpRequired: true,
|
|||
|
|
isActive: true,
|
|||
|
|
creationTime: new Date("2024-02-04T08:45:00"),
|
|||
|
|
lastModificationTime: new Date("2024-02-04T10:15:00"),
|
|||
|
|
},
|
|||
|
|
];
|