fix: Ajustes al layout del PDF de catación
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m12s

- Cambiar a 2 formularios por hoja para más espacio vertical
- Corregir distribución de familias de notas (Floral, Afrutado, Verde/Vegetal, Otra, Tostado, etc.)
- Aumentar margen vertical entre checkboxes
- Corregir "beberse" → "haberse" en sección de defectos
- Alinear checkboxes de defectos bajo el header
- Quitar recuadro de Notas y mostrar solo "Notas: valor"
This commit is contained in:
2025-11-24 17:37:47 -06:00
parent 701d0c8fdb
commit ce460a17c2
4 changed files with 159 additions and 258 deletions

View File

@@ -15,18 +15,18 @@ export const PDF_CONFIG = {
marginLeft: 8,
marginRight: 8,
// Formulario individual (3 por página)
formHeight: 85, // ~85mm cada formulario
// Formulario individual (2 por página para más espacio)
formHeight: 130, // ~130mm cada formulario (más alto)
formWidth: 199.9, // pageWidth - marginLeft - marginRight
formSpacing: 2, // Espacio entre formularios
formSpacing: 3, // Espacio entre formularios
// Tipografía
fontSize: {
title: 9,
header: 7,
body: 6,
small: 5,
tiny: 4.5,
title: 10,
header: 8,
body: 7,
small: 6,
tiny: 5.5,
},
// Colores
@@ -44,8 +44,8 @@ export const PDF_CONFIG = {
},
// Tamaño de checkbox
checkboxSize: 2.5,
checkboxSpacing: 0.8,
checkboxSize: 3.5,
checkboxSpacing: 1.5,
} as const
/**
@@ -157,7 +157,7 @@ export interface CategoriaPdf {
/**
* Categorías de notas para el formulario PDF
* Columna izquierda y derecha de checkboxes
* Distribución correcta según formulario físico EVC-IH01
*/
export const CATEGORIAS_PDF: {
columnaIzquierda: CategoriaPdf[]
@@ -167,14 +167,13 @@ export const CATEGORIAS_PDF: {
{ key: 'Floral', label: 'Floral' },
{ key: 'Afrutado', label: 'Afrutado' },
{ key: 'Bayas', label: 'Bayas', indent: true },
{ key: 'Ácido', label: 'Ácido', indent: true },
{ key: 'Frutas Deshidratadas', label: 'Frutas Deshid.', indent: true },
{ key: 'Fermentado', label: 'Fermentado', indent: true },
{ key: 'Cítricos', label: 'Cítricos' },
{ key: 'Frutas Deshidratadas', label: 'Frutas Deshidratadas', indent: true },
{ key: 'Cítricos', label: 'Cítricos', indent: true },
{ key: 'Verde Vegetal', label: 'Verde/Vegetal' },
{ key: 'Químico', label: 'Químico' },
{ key: 'Humedad/Tierra', label: 'Humedad/Tierra' },
{ key: 'Madera', label: 'Madera' },
{ key: 'Otro', label: 'Otra' },
{ key: 'Químico', label: 'Químico', indent: true },
{ key: 'Humedad/Tierra', label: 'Humedad/Tierra', indent: true },
{ key: 'Madera', label: 'Madera', indent: true },
],
columnaDerecha: [
{ key: 'Tostado', label: 'Tostado' },