Overview
Conversión de Sacos Vestidos (Process ID: 9) is an integrated conversion process that simultaneously cuts fabric, forms PE liners, inserts the liner, and sews the bottom seam—all in a single operation. This produces “dressed” bags with internal polyethylene lining for moisture-sensitive products.Process Characteristics
- Process Type: Order-based production
- Production Unit: unidades (units/bags)
- Product: Sewn bags with inserted PE liner
- Machines: 1 specialized line (CONV03)
- Order Pattern:
9\d{6}(e.g., 9000456) - Production Target: 10,000 bags per shift
- Speed: 22 bags/min nominal
What This Process Does
The Vestidos process:- Receives: Fabric rolls (printed/laminated/natural), PE film rolls from Extrusión PE, sewing thread
- Transforms: Fabric + PE film → Complete lined bags
- Delivers: Packaged lined bags ready for dispatch
- Method: Integrated cutting, liner forming, pneumatic insertion, and bottom seam stitching
Production Flow
Upstream Dependencies
Vestidos consumes materials from multiple sources: Bag Fabric:- Telares (Process 2): Natural woven fabric
- Format:
R{3-digit}-T{2-digit}
- Format:
- Laminado (Process 3): Laminated fabric
- Format:
R{3-digit}-T{2-digit}-L{3-digit}
- Format:
- Imprenta (Process 4): Printed fabric
- Format:
R{3-digit}-T{2-digit}-L{3-digit}-I{3-digit}
- Format:
- Extrusión PE (Process 6): PE film rolls
- Tracked via lot ID (lote_pe_id)
Downstream Consumers
Finished lined bags are end products (no downstream production).Production Tracking Method
Unit Count Method (ConversionSacosVestidosContract.js:125-128):
Data Structures
Key Tables
registros_trabajo
vestidos_consumo_rollo_saco
Fabric roll consumption:vestidos_consumo_rollo_pe
PE liner consumption:vestidos_calidad_muestras
Quality samples (4 inspections per shift):Lot Generation
Per-Roll Lot with -V Suffix (vestidos.service.js:203-219):
Each converted fabric roll generates a lot:
Quality Parameters
Critical Parameters
1. Bag Width (ancho_saco)
- Unit: inches
- Tolerance: ±0.25 inches
- Nominal: From order specification
- Critical: No (informational)
- Sampling: 4 inspections per shift
2. Bag Length (largo_saco)
- Unit: inches
- Tolerance: ±0.25 inches
- Nominal: From order specification
- Critical: No
- Sampling: 4 inspections per shift
3. Bottom Fold (doble_costura)
- Unit: inches
- Tolerance: ±0.125 inches
- Nominal: From order specification
- Critical: No
- Sampling: 4 inspections per shift
4. Stitch Count (puntadas_costura)
- Unit: stitches per 10 cm
- Range: 12-14 stitches
- Nominal: 13 stitches
- Critical: No
- Sampling: 4 inspections per shift
5. Liner Seal (sello_liner) — CRITICAL
- Type: Pass/Fail (Cumple/No cumple)
- Nominal: Cumple
- Critical: YES
- Sampling: 4 inspections per shift
- Method: Visual inspection of inserted liner
- Impact: Poor seal = moisture contamination risk
Sampling Frequency (ConversionSacosVestidosContract.js:112-116)
Business Logic
Machine Restrictions (vestidos.service.js:94-98)
Hard validation rule:
ConversionSacosVestidosContract.js:134-136):
- Gussets (con_fuelle)
- Microperforation (microperforado)
Origin Process Inference (vestidos.service.js:221-227):
Dual Material Validation (vestidos.service.js:129-137):
Quality Auto-Calculation (vestidos.service.js:257-277):
Waste Segregation
Vestidos tracks two types of waste:-
Fabric Waste (
desperdicio_tela_kg):- Destination: Peletizado or Descarte final
- Tracked in
registros_trabajo.merma_kg
-
PE Liner Returns (
retorno_liner_kg):- Destination: Return to Extrusor PE
- Tracked in
parametros.retorno_liner_kg
API Endpoints
GET /api/vestidos/detalle
Returns Vestidos line status:
Response:
vestidos.service.js:16-55
POST /api/vestidos/guardar
Saves shift Vestidos data:
Request Body:
vestidos.service.js:162-359):
- Validate order and machine restrictions (no fuelle/microperforado)
- Validate dual material requirement (fabric + PE)
- Validate PE lots are not closed
- Delete previous shift data (idempotent)
- Get/create
linea_ejecucion - Save
registros_trabajowith total bags and waste breakdown - For each fabric roll:
- Find or create lot:
{codigo_rollo}-V{correlativo} - Infer origin process from code pattern
- Save fabric roll consumption
- Find or create lot:
- For each PE roll:
- Validate lot exists and is active
- Save PE roll consumption
- Save quality samples (auto-calculate dimensional pass/fail)
- Save physical sample (optional)
- Save defects
- Calculate process state
- Update
bitacora_maquina_status
vestidos.service.js:60-360Permission Required:
MANAGE_PRODUCTION
Machine Status States
Calculated in:vestidos.service.js:320-354
- Sin datos: No production, samples, defects, or waste
- Parcial: Some data recorded
- Completo:
- At least 1 fabric roll AND 1 PE roll
- 4 inspections (indices 1, 2, 3, 4)
- Each inspection has all 5 parameters (including sello_liner)
- Con desviación: Complete but quality parameters failed
vestidos.service.js:330-345):
Traceability
Dual Material Flow
Waste Tracking
Fabric Waste:- Destination: Peletizado (Process 8) or final discard
- Unit: kg
- Tracked separately from liner returns
- Destination: Return to Extrusor PE (Process 6) for reprocessing
- Unit: kg
- Not counted as waste, but as recoverable material
Operational Rules
Personnel Requirements (ConversionSacosVestidosContract.js:47-51)
Stop Restrictions (ConversionSacosVestidosContract.js:16-22)
Downtime Categories (ConversionSacosVestidosContract.js:41-46)
- Operational: Fabric roll change, PE roll change, insertion adjustment, general cleaning
- Mechanical: Liner sealer bar failure, pneumatic insertion system failure, dual blade misalignment
- Quality: Mispositioned liner, open liner seal, miscut bag, defective seam
- External: PE film shortage, base fabric shortage, electrical failure
Impact of Variability (ConversionSacosVestidosContract.js:52-55)
Related Processes
- Upstream (Fabric): Telares (Process 2), Laminado (Process 3), Imprenta (Process 4)
- Upstream (Liner): Extrusión PE (Process 6)
- Related: Conversión (Process 5) — unlined bags
- Related: Production Orders, Lot Management