204 lines
6 KiB
TypeScript
204 lines
6 KiB
TypeScript
import { PriorityEnum } from "../types/common";
|
||
import {
|
||
PmMaintenanceWorkOrder,
|
||
WorkOrderStatusEnum,
|
||
WorkOrderTypeEnum,
|
||
} from "../types/pm";
|
||
|
||
export const mockMaintenanceWorkOrders: PmMaintenanceWorkOrder[] = [
|
||
{
|
||
id: "1",
|
||
workOrderNumber: "WO-2024-045",
|
||
workCenterId: "1",
|
||
orderType: WorkOrderTypeEnum.Corrective,
|
||
priority: PriorityEnum.High,
|
||
status: WorkOrderStatusEnum.InProgress,
|
||
description: "CNC Torna Tezgahı Motor Titreşim Sorunu Giderilmesi",
|
||
reportedBy: "Operator Mustafa Koç",
|
||
assignedTo: "Mehmet Kaya",
|
||
scheduledStart: new Date("2024-02-08T10:00:00"),
|
||
scheduledEnd: new Date("2024-02-08T13:00:00"),
|
||
actualStart: new Date("2024-02-08T10:15:00"),
|
||
estimatedCost: 500,
|
||
actualCost: 350,
|
||
materials: [
|
||
{
|
||
id: "WOM001",
|
||
workOrderId: "WO001",
|
||
materialId: "MAT001",
|
||
materialCode: "BEARING-001",
|
||
materialName: "Rulman 6205",
|
||
plannedQuantity: 2,
|
||
actualQuantity: 2,
|
||
unitCost: 45.5,
|
||
totalCost: 91.0,
|
||
},
|
||
{
|
||
id: "WOM002",
|
||
workOrderId: "WO001",
|
||
materialId: "MAT002",
|
||
materialCode: "OIL-002",
|
||
materialName: "Motor Yağı",
|
||
plannedQuantity: 3,
|
||
actualQuantity: 2,
|
||
unitCost: 35.0,
|
||
totalCost: 70.0,
|
||
},
|
||
],
|
||
activities: [
|
||
{
|
||
id: "WOA001",
|
||
workOrderId: "WO001",
|
||
activityDescription: "Motor sökme ve inceleme",
|
||
plannedDuration: 60,
|
||
actualDuration: 45,
|
||
performedBy: "Mehmet Kaya",
|
||
completedAt: new Date("2024-02-08T11:00:00"),
|
||
notes: "Motor rulmanlarında aşınma tespit edildi",
|
||
},
|
||
{
|
||
id: "WOA002",
|
||
workOrderId: "WO001",
|
||
activityDescription: "Rulman değişimi",
|
||
plannedDuration: 90,
|
||
actualDuration: 75,
|
||
performedBy: "Mehmet Kaya",
|
||
notes: "Yeni rulmanlar takıldı ve yağlama yapıldı",
|
||
},
|
||
],
|
||
notes: "Motor titreşim sorunu rulman değişimi ile çözüldü.",
|
||
creationTime: new Date("2024-02-08T09:30:00"),
|
||
lastModificationTime: new Date("2024-02-08T12:00:00"),
|
||
},
|
||
{
|
||
id: "2",
|
||
workOrderNumber: "WO-2024-046",
|
||
workCenterId: "2",
|
||
planId: "MP002",
|
||
orderType: WorkOrderTypeEnum.Preventive,
|
||
priority: PriorityEnum.Normal,
|
||
status: WorkOrderStatusEnum.Planned,
|
||
description: "Hava Kompresörü Aylık Rutin Bakım",
|
||
reportedBy: "Sistem (Otomatik)",
|
||
assignedTo: "Ali Demir",
|
||
scheduledStart: new Date("2024-02-15T08:00:00"),
|
||
scheduledEnd: new Date("2024-02-15T12:00:00"),
|
||
estimatedCost: 200,
|
||
actualCost: 0,
|
||
materials: [
|
||
{
|
||
id: "WOM003",
|
||
workOrderId: "WO002",
|
||
materialId: "MAT003",
|
||
materialCode: "FILTER-001",
|
||
materialName: "Hava Filtresi",
|
||
plannedQuantity: 2,
|
||
actualQuantity: 0,
|
||
unitCost: 25.0,
|
||
totalCost: 50.0,
|
||
},
|
||
],
|
||
activities: [
|
||
{
|
||
id: "WOA003",
|
||
workOrderId: "WO002",
|
||
activityDescription: "Hava filtresi değişimi",
|
||
plannedDuration: 30,
|
||
actualDuration: 0,
|
||
performedBy: "Ali Demir",
|
||
},
|
||
{
|
||
id: "WOA004",
|
||
workOrderId: "WO002",
|
||
activityDescription: "Basınç kontrolü ve kalibrasyon",
|
||
plannedDuration: 60,
|
||
actualDuration: 0,
|
||
performedBy: "Ali Demir",
|
||
},
|
||
],
|
||
creationTime: new Date("2024-02-01T09:00:00"),
|
||
lastModificationTime: new Date("2024-02-01T09:00:00"),
|
||
},
|
||
{
|
||
id: "3",
|
||
workOrderNumber: "WO-2024-047",
|
||
workCenterId: "3",
|
||
orderType: WorkOrderTypeEnum.Emergency,
|
||
priority: PriorityEnum.Urgent,
|
||
status: WorkOrderStatusEnum.Completed,
|
||
description: "Konveyör Sistemi Acil Onarım - Üretim Durduruldu",
|
||
reportedBy: "Vardiya Amiri",
|
||
assignedTo: "Fatma Özkan",
|
||
scheduledStart: new Date("2024-02-06T14:00:00"),
|
||
scheduledEnd: new Date("2024-02-06T17:00:00"),
|
||
actualStart: new Date("2024-02-06T14:10:00"),
|
||
actualEnd: new Date("2024-02-06T16:45:00"),
|
||
estimatedCost: 800,
|
||
actualCost: 750,
|
||
materials: [
|
||
{
|
||
id: "WOM004",
|
||
workOrderId: "WO003",
|
||
materialId: "MAT004",
|
||
materialCode: "MOTOR-001",
|
||
materialName: "Konveyör Motoru 3kW",
|
||
plannedQuantity: 1,
|
||
actualQuantity: 1,
|
||
unitCost: 650.0,
|
||
totalCost: 650.0,
|
||
},
|
||
],
|
||
activities: [
|
||
{
|
||
id: "WOA005",
|
||
workOrderId: "WO003",
|
||
activityDescription: "Arızalı motor sökme",
|
||
plannedDuration: 45,
|
||
actualDuration: 40,
|
||
performedBy: "Fatma Özkan",
|
||
completedAt: new Date("2024-02-06T14:50:00"),
|
||
notes: "Motor sargıları yanmış",
|
||
},
|
||
{
|
||
id: "WOA006",
|
||
workOrderId: "WO003",
|
||
activityDescription: "Yeni motor montajı",
|
||
plannedDuration: 90,
|
||
actualDuration: 85,
|
||
performedBy: "Fatma Özkan",
|
||
completedAt: new Date("2024-02-06T16:15:00"),
|
||
notes: "Motor takıldı ve test edildi",
|
||
},
|
||
],
|
||
notes: "Acil onarım başarıyla tamamlandı. Üretim normale döndü.",
|
||
completionNotes:
|
||
"Motor arızası nedeniyle değişim yapıldı. Sistem test edildi ve normal çalışıyor.",
|
||
creationTime: new Date("2024-02-06T13:45:00"),
|
||
lastModificationTime: new Date("2024-02-06T16:45:00"),
|
||
},
|
||
{
|
||
id: "4",
|
||
workOrderNumber: "WO-2024-048",
|
||
workCenterId: "4",
|
||
orderType: WorkOrderTypeEnum.Calibration,
|
||
priority: PriorityEnum.Normal,
|
||
status: WorkOrderStatusEnum.Created,
|
||
description: "Robot Kaynak Makinesi Kalibrasyon",
|
||
reportedBy: "Kalite Kontrol",
|
||
estimatedCost: 300,
|
||
actualCost: 0,
|
||
materials: [],
|
||
activities: [
|
||
{
|
||
id: "WOA007",
|
||
workOrderId: "WO004",
|
||
activityDescription: "Robot pozisyon kalibrasyonu",
|
||
plannedDuration: 120,
|
||
actualDuration: 0,
|
||
performedBy: "Sema Korkmaz",
|
||
},
|
||
],
|
||
creationTime: new Date("2024-02-05T11:20:00"),
|
||
lastModificationTime: new Date("2024-02-05T11:20:00"),
|
||
},
|
||
];
|