erp-platform/ui/src/mocks/mockOperations.ts
2025-09-15 12:31:47 +03:00

106 lines
3.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { MrpOperation } from "../types/mrp";
import { mockWorkCenters } from "./mockWorkCenters";
import { mockOperationTypes } from "./mockOperationTypes";
export const mockOperations: MrpOperation[] = [
{
id: "1",
code: "OP001",
name: "CNC Torna Tezgahı İşlemi",
description: "Metal parçaların CNC torna tezgahında işlenmesi",
operationTypeId: "1",
operationType: mockOperationTypes.find((ot) => ot.code === "1"),
workCenterId: "1",
workCenter: mockWorkCenters.find((wc) => wc.id === "1"),
standardTime: 45,
setupTime: 30,
laborCost: 50,
machineCost: 100,
overheadCost: 25,
isActive: true,
instructions: "Torna tezgahında hassas işleme yapılacak",
qualityCheckRequired: true,
creationTime: new Date(),
lastModificationTime: new Date(),
},
{
id: "2",
code: "OP002",
name: "Kaynak İşlemi",
description: "Argon kaynak ile metal birleştirme",
operationTypeId: "2",
operationType: mockOperationTypes.find((ot) => ot.code === "2"),
workCenterId: "2",
workCenter: mockWorkCenters.find((wc) => wc.id === "2"),
standardTime: 60,
setupTime: 15,
laborCost: 80,
machineCost: 40,
overheadCost: 20,
isActive: true,
instructions: "Argon gazı ile koruyucu atmosferde kaynak yapılacak",
qualityCheckRequired: true,
creationTime: new Date(),
lastModificationTime: new Date(),
},
{
id: "3",
code: "OP003",
name: "Kalite Kontrolü",
description: "Boyutsal ve görsel kalite kontrolü",
operationTypeId: "3",
operationType: mockOperationTypes.find((ot) => ot.code === "3"),
workCenterId: "3",
workCenter: mockWorkCenters.find((wc) => wc.id === "3"),
standardTime: 20,
setupTime: 5,
laborCost: 60,
machineCost: 20,
overheadCost: 10,
isActive: true,
instructions: "Teknik çizimlere göre boyutsal kontrol yapılacak",
qualityCheckRequired: false,
creationTime: new Date(),
lastModificationTime: new Date(),
},
{
id: "4",
code: "OP004",
name: "Paketleme İşlemi",
description: "Ürünlerin paketlenmesi",
operationTypeId: "4",
operationType: mockOperationTypes.find((ot) => ot.code === "4"),
workCenterId: "4",
workCenter: mockWorkCenters.find((wc) => wc.id === "4"),
standardTime: 20,
setupTime: 5,
laborCost: 60,
machineCost: 20,
overheadCost: 10,
isActive: true,
instructions: "Teknik çizimlere göre boyutsal kontrol yapılacak",
qualityCheckRequired: false,
creationTime: new Date(),
lastModificationTime: new Date(),
},
{
id: "5",
code: "OP005",
name: "Bakım İşlemi",
description: "Preventif bakım işlemleri",
operationTypeId: "5",
operationType: mockOperationTypes.find((ot) => ot.code === "5"),
workCenterId: "3",
workCenter: mockWorkCenters.find((wc) => wc.id === "3"),
standardTime: 120,
setupTime: 20,
laborCost: 70,
machineCost: 30,
overheadCost: 20,
isActive: true,
instructions: "Periyodik bakım planına göre işlem yapılacak",
qualityCheckRequired: false,
creationTime: new Date(),
lastModificationTime: new Date(),
},
];