369 lines
9.8 KiB
TypeScript
369 lines
9.8 KiB
TypeScript
|
|
import {
|
|||
|
|
CriticalityLevelEnum,
|
|||
|
|
PmWorkCenter,
|
|||
|
|
WorkCenterStatusEnum,
|
|||
|
|
} from "../types/pm";
|
|||
|
|
import { mockWorkCenterTypes } from "./mockWorkCenterTypes";
|
|||
|
|
|
|||
|
|
export const mockWorkCenters: PmWorkCenter[] = [
|
|||
|
|
{
|
|||
|
|
id: "1",
|
|||
|
|
code: "CNC-001",
|
|||
|
|
name: "CNC Torna Tezgahı",
|
|||
|
|
description: "Yüksek hassasiyetli CNC torna tezgahı",
|
|||
|
|
workCenterId: "1",
|
|||
|
|
workCenterType: mockWorkCenterTypes.find((wct) => wct.code === "1")!,
|
|||
|
|
manufacturer: "HAAS Automation",
|
|||
|
|
model: "ST-30",
|
|||
|
|
serialNumber: "SN123456789",
|
|||
|
|
installationDate: new Date("2022-03-15"),
|
|||
|
|
warrantyExpiry: new Date("2025-03-15"),
|
|||
|
|
location: "Atölye A - Hat 1",
|
|||
|
|
departmentId: "1",
|
|||
|
|
status: WorkCenterStatusEnum.Operational,
|
|||
|
|
criticality: CriticalityLevelEnum.High,
|
|||
|
|
specifications: [
|
|||
|
|
{
|
|||
|
|
id: "SPEC001",
|
|||
|
|
workCenterId: "EQP001",
|
|||
|
|
specificationName: "Max Çap",
|
|||
|
|
specificationValue: "300",
|
|||
|
|
unit: "mm",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "SPEC002",
|
|||
|
|
workCenterId: "EQP001",
|
|||
|
|
specificationName: "Motor Gücü",
|
|||
|
|
specificationValue: "15",
|
|||
|
|
unit: "kW",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
],
|
|||
|
|
maintenancePlans: [],
|
|||
|
|
workOrders: [],
|
|||
|
|
downTimeHistory: [],
|
|||
|
|
isActive: true,
|
|||
|
|
creationTime: new Date("2022-03-15"),
|
|||
|
|
lastModificationTime: new Date("2024-01-15"),
|
|||
|
|
capacity: 8,
|
|||
|
|
costPerHour: 75,
|
|||
|
|
setupTime: 15,
|
|||
|
|
machineType: "CNC",
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "2",
|
|||
|
|
code: "COMP-001",
|
|||
|
|
name: "Hava Kompresörü",
|
|||
|
|
description: "Endüstriyel hava kompresörü sistemi",
|
|||
|
|
workCenterId: "2",
|
|||
|
|
workCenterType: mockWorkCenterTypes.find((wct) => wct.code === "2")!,
|
|||
|
|
manufacturer: "Atlas Copco",
|
|||
|
|
model: "GA55VSD+",
|
|||
|
|
serialNumber: "AC987654321",
|
|||
|
|
installationDate: new Date("2021-08-20"),
|
|||
|
|
warrantyExpiry: new Date("2024-08-20"),
|
|||
|
|
location: "Kompresör Odası",
|
|||
|
|
departmentId: "2",
|
|||
|
|
status: WorkCenterStatusEnum.UnderMaintenance,
|
|||
|
|
criticality: CriticalityLevelEnum.Critical,
|
|||
|
|
specifications: [
|
|||
|
|
{
|
|||
|
|
id: "SPEC003",
|
|||
|
|
workCenterId: "EQP002",
|
|||
|
|
specificationName: "Basınç",
|
|||
|
|
specificationValue: "8.5",
|
|||
|
|
unit: "bar",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "SPEC004",
|
|||
|
|
workCenterId: "EQP002",
|
|||
|
|
specificationName: "Kapasite",
|
|||
|
|
specificationValue: "55",
|
|||
|
|
unit: "kW",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
],
|
|||
|
|
maintenancePlans: [],
|
|||
|
|
workOrders: [],
|
|||
|
|
downTimeHistory: [],
|
|||
|
|
isActive: true,
|
|||
|
|
creationTime: new Date("2021-08-20"),
|
|||
|
|
lastModificationTime: new Date("2024-02-01"),
|
|||
|
|
costPerHour: 85,
|
|||
|
|
setupTime: 20,
|
|||
|
|
machineType: "CNC",
|
|||
|
|
capacity: 8,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "3",
|
|||
|
|
code: "CONV-001",
|
|||
|
|
name: "Konveyör Sistemi",
|
|||
|
|
description: "Ana hat konveyör sistemi",
|
|||
|
|
workCenterId: "3",
|
|||
|
|
workCenterType: mockWorkCenterTypes.find((wct) => wct.code === "3")!,
|
|||
|
|
manufacturer: "Siemens",
|
|||
|
|
model: "SIMATIC S7-1500",
|
|||
|
|
serialNumber: "SM112233445",
|
|||
|
|
installationDate: new Date("2020-11-10"),
|
|||
|
|
location: "Ana Üretim Hattı",
|
|||
|
|
departmentId: "3",
|
|||
|
|
status: WorkCenterStatusEnum.OutOfOrder,
|
|||
|
|
criticality: CriticalityLevelEnum.Medium,
|
|||
|
|
specifications: [
|
|||
|
|
{
|
|||
|
|
id: "SPEC005",
|
|||
|
|
workCenterId: "EQP003",
|
|||
|
|
specificationName: "Hız",
|
|||
|
|
specificationValue: "2.5",
|
|||
|
|
unit: "m/s",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "SPEC006",
|
|||
|
|
workCenterId: "EQP003",
|
|||
|
|
specificationName: "Yük Kapasitesi",
|
|||
|
|
specificationValue: "500",
|
|||
|
|
unit: "kg",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
],
|
|||
|
|
maintenancePlans: [],
|
|||
|
|
workOrders: [],
|
|||
|
|
downTimeHistory: [],
|
|||
|
|
isActive: true,
|
|||
|
|
creationTime: new Date("2020-11-10"),
|
|||
|
|
lastModificationTime: new Date("2024-02-05"),
|
|||
|
|
costPerHour: 85,
|
|||
|
|
setupTime: 20,
|
|||
|
|
machineType: "CNC",
|
|||
|
|
capacity: 8,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "4",
|
|||
|
|
code: "KELD-001",
|
|||
|
|
name: "Kaynak Makinesi",
|
|||
|
|
description: "Otomatik robot kaynak sistemi",
|
|||
|
|
workCenterId: "4",
|
|||
|
|
workCenterType: mockWorkCenterTypes.find((wct) => wct.code === "4")!,
|
|||
|
|
manufacturer: "KUKA",
|
|||
|
|
model: "KR 60-3",
|
|||
|
|
serialNumber: "KU556677889",
|
|||
|
|
installationDate: new Date("2023-01-15"),
|
|||
|
|
warrantyExpiry: new Date("2026-01-15"),
|
|||
|
|
location: "Kaynak Atölyesi",
|
|||
|
|
departmentId: "4",
|
|||
|
|
status: WorkCenterStatusEnum.Operational,
|
|||
|
|
criticality: CriticalityLevelEnum.High,
|
|||
|
|
specifications: [
|
|||
|
|
{
|
|||
|
|
id: "SPEC007",
|
|||
|
|
workCenterId: "EQP004",
|
|||
|
|
specificationName: "Erişim Mesafesi",
|
|||
|
|
specificationValue: "2033",
|
|||
|
|
unit: "mm",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "SPEC008",
|
|||
|
|
workCenterId: "EQP004",
|
|||
|
|
specificationName: "Taşıma Kapasitesi",
|
|||
|
|
specificationValue: "60",
|
|||
|
|
unit: "kg",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
],
|
|||
|
|
maintenancePlans: [],
|
|||
|
|
workOrders: [],
|
|||
|
|
downTimeHistory: [],
|
|||
|
|
isActive: true,
|
|||
|
|
creationTime: new Date("2023-01-15"),
|
|||
|
|
lastModificationTime: new Date("2024-01-20"),
|
|||
|
|
costPerHour: 85,
|
|||
|
|
setupTime: 20,
|
|||
|
|
machineType: "CNC",
|
|||
|
|
capacity: 8,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "5",
|
|||
|
|
code: "WELL-001",
|
|||
|
|
name: "Yıkama Makinesi",
|
|||
|
|
description: "Otomatik robot kaynak sistemi",
|
|||
|
|
workCenterId: "4",
|
|||
|
|
workCenterType: mockWorkCenterTypes.find((wct) => wct.code === "4")!,
|
|||
|
|
manufacturer: "KUKA",
|
|||
|
|
model: "KR 60-3",
|
|||
|
|
serialNumber: "KU556677889",
|
|||
|
|
installationDate: new Date("2023-01-15"),
|
|||
|
|
warrantyExpiry: new Date("2026-01-15"),
|
|||
|
|
location: "Kaynak Atölyesi",
|
|||
|
|
departmentId: "4",
|
|||
|
|
status: WorkCenterStatusEnum.Operational,
|
|||
|
|
criticality: CriticalityLevelEnum.High,
|
|||
|
|
specifications: [
|
|||
|
|
{
|
|||
|
|
id: "SPEC007",
|
|||
|
|
workCenterId: "EQP004",
|
|||
|
|
specificationName: "Erişim Mesafesi",
|
|||
|
|
specificationValue: "2033",
|
|||
|
|
unit: "mm",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "SPEC008",
|
|||
|
|
workCenterId: "EQP004",
|
|||
|
|
specificationName: "Taşıma Kapasitesi",
|
|||
|
|
specificationValue: "60",
|
|||
|
|
unit: "kg",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
],
|
|||
|
|
maintenancePlans: [],
|
|||
|
|
workOrders: [],
|
|||
|
|
downTimeHistory: [],
|
|||
|
|
isActive: true,
|
|||
|
|
creationTime: new Date("2023-01-15"),
|
|||
|
|
lastModificationTime: new Date("2024-01-20"),
|
|||
|
|
costPerHour: 85,
|
|||
|
|
setupTime: 20,
|
|||
|
|
machineType: "CNC",
|
|||
|
|
capacity: 8,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "6",
|
|||
|
|
code: "KELD-001",
|
|||
|
|
name: "Ram Makinesi",
|
|||
|
|
description: "Otomatik robot kaynak sistemi",
|
|||
|
|
workCenterId: "4",
|
|||
|
|
workCenterType: mockWorkCenterTypes.find((wct) => wct.code === "4")!,
|
|||
|
|
manufacturer: "KUKA",
|
|||
|
|
model: "KR 60-3",
|
|||
|
|
serialNumber: "KU556677889",
|
|||
|
|
installationDate: new Date("2023-01-15"),
|
|||
|
|
warrantyExpiry: new Date("2026-01-15"),
|
|||
|
|
location: "Kaynak Atölyesi",
|
|||
|
|
departmentId: "4",
|
|||
|
|
status: WorkCenterStatusEnum.Operational,
|
|||
|
|
criticality: CriticalityLevelEnum.High,
|
|||
|
|
specifications: [
|
|||
|
|
{
|
|||
|
|
id: "SPEC007",
|
|||
|
|
workCenterId: "EQP004",
|
|||
|
|
specificationName: "Erişim Mesafesi",
|
|||
|
|
specificationValue: "2033",
|
|||
|
|
unit: "mm",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "SPEC008",
|
|||
|
|
workCenterId: "EQP004",
|
|||
|
|
specificationName: "Taşıma Kapasitesi",
|
|||
|
|
specificationValue: "60",
|
|||
|
|
unit: "kg",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
],
|
|||
|
|
maintenancePlans: [],
|
|||
|
|
workOrders: [],
|
|||
|
|
downTimeHistory: [],
|
|||
|
|
isActive: true,
|
|||
|
|
creationTime: new Date("2023-01-15"),
|
|||
|
|
lastModificationTime: new Date("2024-01-20"),
|
|||
|
|
costPerHour: 85,
|
|||
|
|
setupTime: 20,
|
|||
|
|
machineType: "CNC",
|
|||
|
|
capacity: 8,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "7",
|
|||
|
|
code: "WEID-001",
|
|||
|
|
name: "Sarma Makinesi",
|
|||
|
|
description: "Otomatik robot kaynak sistemi",
|
|||
|
|
workCenterId: "4",
|
|||
|
|
workCenterType: mockWorkCenterTypes.find((wct) => wct.code === "4")!,
|
|||
|
|
manufacturer: "KUKA",
|
|||
|
|
model: "KR 60-3",
|
|||
|
|
serialNumber: "KU556677889",
|
|||
|
|
installationDate: new Date("2023-01-15"),
|
|||
|
|
warrantyExpiry: new Date("2026-01-15"),
|
|||
|
|
location: "Kaynak Atölyesi",
|
|||
|
|
departmentId: "4",
|
|||
|
|
status: WorkCenterStatusEnum.Operational,
|
|||
|
|
criticality: CriticalityLevelEnum.High,
|
|||
|
|
specifications: [
|
|||
|
|
{
|
|||
|
|
id: "SPEC007",
|
|||
|
|
workCenterId: "EQP004",
|
|||
|
|
specificationName: "Erişim Mesafesi",
|
|||
|
|
specificationValue: "2033",
|
|||
|
|
unit: "mm",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "SPEC008",
|
|||
|
|
workCenterId: "EQP004",
|
|||
|
|
specificationName: "Taşıma Kapasitesi",
|
|||
|
|
specificationValue: "60",
|
|||
|
|
unit: "kg",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
],
|
|||
|
|
maintenancePlans: [],
|
|||
|
|
workOrders: [],
|
|||
|
|
downTimeHistory: [],
|
|||
|
|
isActive: true,
|
|||
|
|
creationTime: new Date("2023-01-15"),
|
|||
|
|
lastModificationTime: new Date("2024-01-20"),
|
|||
|
|
costPerHour: 85,
|
|||
|
|
setupTime: 20,
|
|||
|
|
machineType: "CNC",
|
|||
|
|
capacity: 8,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "8",
|
|||
|
|
code: "KEL-001",
|
|||
|
|
name: "Robot Kaynak Makinesi",
|
|||
|
|
description: "Otomatik robot kaynak sistemi",
|
|||
|
|
workCenterId: "4",
|
|||
|
|
workCenterType: mockWorkCenterTypes.find((wct) => wct.code === "4")!,
|
|||
|
|
manufacturer: "KUKA",
|
|||
|
|
model: "KR 60-3",
|
|||
|
|
serialNumber: "KU556677889",
|
|||
|
|
installationDate: new Date("2023-01-15"),
|
|||
|
|
warrantyExpiry: new Date("2026-01-15"),
|
|||
|
|
location: "Kaynak Atölyesi",
|
|||
|
|
departmentId: "4",
|
|||
|
|
status: WorkCenterStatusEnum.Operational,
|
|||
|
|
criticality: CriticalityLevelEnum.High,
|
|||
|
|
specifications: [
|
|||
|
|
{
|
|||
|
|
id: "SPEC007",
|
|||
|
|
workCenterId: "EQP004",
|
|||
|
|
specificationName: "Erişim Mesafesi",
|
|||
|
|
specificationValue: "2033",
|
|||
|
|
unit: "mm",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
id: "SPEC008",
|
|||
|
|
workCenterId: "EQP004",
|
|||
|
|
specificationName: "Taşıma Kapasitesi",
|
|||
|
|
specificationValue: "60",
|
|||
|
|
unit: "kg",
|
|||
|
|
isRequired: true,
|
|||
|
|
},
|
|||
|
|
],
|
|||
|
|
maintenancePlans: [],
|
|||
|
|
workOrders: [],
|
|||
|
|
downTimeHistory: [],
|
|||
|
|
isActive: true,
|
|||
|
|
creationTime: new Date("2023-01-15"),
|
|||
|
|
lastModificationTime: new Date("2024-01-20"),
|
|||
|
|
costPerHour: 85,
|
|||
|
|
setupTime: 20,
|
|||
|
|
machineType: "CNC",
|
|||
|
|
capacity: 8,
|
|||
|
|
},
|
|||
|
|
];
|