// Mock MES Data
export interface ProductionOrder {
id: string;
orderNumber: string;
productName: string;
quantity: number;
status: "planned" | "in-progress" | "completed" | "cancelled";
startDate: string;
endDate: string;
equipmentId: string;
operatorId: string;
}
export interface WorkOrder {
id: string;
orderNumber: string;
productionOrderId: string;
operation: string;
status: "pending" | "in-progress" | "completed" | "on-hold";
startTime?: string;
endTime?: string;
quantity: number;
qualityStatus: "pass" | "fail" | "pending";
}
export interface Equipment {
id: string;
name: string;
type: string;
status: "running" | "idle" | "maintenance" | "error";
location: string;
lastMaintenanceDate: string;
nextMaintenanceDate: string;
}
export const mockProductionOrders: ProductionOrder[] = [
{
id: "po-001",
orderNumber: "PO-2024-001",
productName: "Widget A",
quantity: 1000,
status: "in-progress",
startDate: "2024-01-15T08:00:00Z",
endDate: "2024-01-20T17:00:00Z",
equipmentId: "eq-001",
operatorId: "op-001",
},
{
id: "po-002",
orderNumber: "PO-2024-002",
productName: "Widget B",
quantity: 500,
status: "planned",
startDate: "2024-01-21T08:00:00Z",
endDate: "2024-01-25T17:00:00Z",
equipmentId: "eq-002",
operatorId: "op-002",
},
{
id: "po-003",
orderNumber: "PO-2024-003",
productName: "Widget C",
quantity: 2000,
status: "completed",
startDate: "2024-01-10T08:00:00Z",
endDate: "2024-01-14T17:00:00Z",
equipmentId: "eq-001",
operatorId: "op-001",
},
];
export const mockWorkOrders: WorkOrder[] = [
{
id: "wo-001",
orderNumber: "WO-2024-001",
productionOrderId: "po-001",
operation: "Assembly",
status: "in-progress",
startTime: "2024-01-15T08:00:00Z",
quantity: 1000,
qualityStatus: "pending",
},
{
id: "wo-002",
orderNumber: "WO-2024-002",
productionOrderId: "po-001",
operation: "Quality Check",
status: "pending",
quantity: 1000,
qualityStatus: "pending",
},
{
id: "wo-003",
orderNumber: "WO-2024-003",
productionOrderId: "po-003",
operation: "Packaging",
status: "completed",
startTime: "2024-01-14T10:00:00Z",
endTime: "2024-01-14T16:00:00Z",
quantity: 2000,
qualityStatus: "pass",
},
];
export const mockEquipment: Equipment[] = [
{
id: "eq-001",
name: "Assembly Line 1",
type: "Assembly Line",
status: "running",
location: "Building A - Floor 1",
lastMaintenanceDate: "2024-01-01",
nextMaintenanceDate: "2024-02-01",
},
{
id: "eq-002",
name: "CNC Machine 1",
type: "CNC Machine",
status: "idle",
location: "Building A - Floor 2",
lastMaintenanceDate: "2024-01-05",
nextMaintenanceDate: "2024-02-05",
},
{
id: "eq-003",
name: "Packaging Station 1",
type: "Packaging",
status: "maintenance",
location: "Building B - Floor 1",
lastMaintenanceDate: "2024-01-10",
nextMaintenanceDate: "2024-02-10",
},
{
id: "eq-004",
name: "Quality Control Station 1",
type: "Quality Control",
status: "running",
location: "Building A - Floor 1",
lastMaintenanceDate: "2024-01-08",
nextMaintenanceDate: "2024-02-08",
},
];