Add production order defect capture
This commit is contained in:
31
src/types.ts
31
src/types.ts
@@ -90,6 +90,36 @@ export interface ProductionOrderLotReservation {
|
||||
lotSupplier: string;
|
||||
}
|
||||
|
||||
export interface ProductionWorkstation {
|
||||
id: number;
|
||||
code: string;
|
||||
name: string;
|
||||
color: string;
|
||||
sortOrder: number;
|
||||
isActive: boolean;
|
||||
}
|
||||
|
||||
export interface ProductionOrderDefect {
|
||||
id: number;
|
||||
workstationId: number | null;
|
||||
workstationName: string;
|
||||
defectType: string;
|
||||
origin: string;
|
||||
quantity: number;
|
||||
lotCode: string;
|
||||
notes: string;
|
||||
occurredAt: string | null;
|
||||
}
|
||||
|
||||
export type ProductionOrderDefectPayload = {
|
||||
workstationId?: number | null;
|
||||
defectType: string;
|
||||
origin?: string;
|
||||
quantity: number;
|
||||
lotCode?: string;
|
||||
notes?: string;
|
||||
};
|
||||
|
||||
export interface ProductionOrderItem {
|
||||
id: number;
|
||||
tinyId: string;
|
||||
@@ -121,6 +151,7 @@ export interface ProductionOrderItem {
|
||||
rejectedQuantity: number;
|
||||
finishedQuantity: number | null;
|
||||
qualityNotes: string;
|
||||
defects: ProductionOrderDefect[];
|
||||
lotReservations: ProductionOrderLotReservation[];
|
||||
markers: ProductionOrderMarker[];
|
||||
components: ProductionOrderComponent[];
|
||||
|
||||
Reference in New Issue
Block a user