Overview
The print production system manages:- Multi-activity tracking per work order
- Tooling status monitoring (cliché and dies)
- Linear meter production across activities
- KPI dashboard with real-time metrics
- Shift-based reporting with operator accountability
ProductionPrintComponentLocation:
src/features/production/production-print.component.ts
Data Models
PrintActivity Interface
Represents individual production activities within a report:Activity type (e.g., “Impresión”, “Setup”, “Parada - Cambio Bobina”)
Activity start time in HH:mm format
Activity end time in HH:mm format
Linear meters produced during this activity (0 for non-productive activities)
Calculated duration string (e.g., “2h 30m”)
PrintReport Interface
Main report structure for print production:Unique report identifier (e.g., “REP-1000”)
Report timestamp
Work order number
Client name (Razón Social)
Product description
Machine name
Operator responsible for the shift
Shift identifier (e.g., “Día - A”, “Noche - B”)
Array of production activities
Sum of all meters produced across activities
Cliché tooling status:
{ code: string, status: string }Die tooling status:
{ status: string }General observations for the report
Production completion status
Activity Types
The system supports the following activity types fromoperator-form.component.ts:548:
Activity Classification
- Productive
- Setup
- Downtime
- Impresión: Main printing activity, contributes to meter count
- Troquelado: Die-cutting during print process
KPI Metrics
The dashboard displays four key performance indicators (calculated inproduction-print.component.ts:427):
Total Metros (Mes)
- Sum of all meters produced in the current period
- Displayed with comparison to previous month (e.g., “+12% vs mes anterior”)
Velocidad Promedio
- Average production speed in meters per minute
- Calculated across all reports with scaling factor
OTs Completadas
- Count of work orders with
TOTALproduction status
Alertas Herramental
- Number of reports with tooling issues (Desgaste or Dañado)
Tooling Status
Status Values
Both cliché and die can have the following statuses (production-print.component.ts:452):
- OK
- Desgaste
- Dañado
- Color: Emerald (green)
- Meaning: Tooling in good condition
- Class:
bg-emerald-500/10 text-emerald-400 border-emerald-500/20
Status Logic
Report Workflow
Search Work Order
Enter OT number or scan barcode. System provides autocomplete suggestions with:
- OT number
- Client name (Razón Social)
- Product description
- Order status
Add Activities
For each activity during the shift:
- Select activity type from dropdown
- Enter start time (HH:mm)
- Enter end time (HH:mm)
- Enter meters produced (0 for non-productive activities)
- Click Agregar to add to list
Verify Tooling
Check and record status for:
- Cliché (Item): Enter code and select status
- Troquel: Select status
Set Production Status
Choose completion status:
- PARCIAL: Shift closure, work order incomplete
- TOTAL: Work order fully completed
Add Observations
Enter any relevant notes about:
- Quality variations
- Incidents
- Material issues
- Next shift handoff information
Duration Calculation
The system calculates activity duration using this algorithm (operator-form.component.ts:711):
- Handles midnight crossing (e.g., 23:00 to 01:00)
- Returns formatted string (e.g., “2h 30m”)
- Returns ”-” for invalid input
Report Detail Modal
Clicking a report row opens a detailed modal showing:Product Information
- Client name
- Product description
- Machine assigned
- Operator name
Tooling Status
- Cliché code and status badge
- Die status badge
- Total meters produced (large display)
Activities Table
Columns:- Actividad: Activity name with status indicator dot
- Horario: Start - End time
- Duración: Calculated duration
- Metros: Linear meters (or ”-” for non-productive)
Observations
General notes displayed in yellow-highlighted section.Actions
- Cerrar: Close modal
- Imprimir PDF: Generate PDF report
Search and Filtering
The reports list supports real-time search (production-print.component.ts:417):
- OT number
- Machine name
- Operator name
- Client name
Production Status Badges
- TOTAL: Green badge, indicates completed work order
- PARCIAL: Amber badge, indicates partial completion or shift closure
Best Practices
Record activities immediately during the shift for accuracy
Always verify and update tooling status after each run
Enter meter counts from machine counters, not estimates
Document any quality variations in observations
Use PARCIAL status for shift changes, TOTAL only when OT is complete
Include handoff notes for next shift in observations
Related Modules
- Operator Mode - Full-screen operator interface
- Diecut Production - Die-cutting operations
- Analytics Reports - Comprehensive reporting module
