From 9d476df787e024132e60821b1c622664fa4e087e Mon Sep 17 00:00:00 2001 From: Marcos Reifonas Date: Mon, 21 Sep 2026 23:16:05 +0000 Subject: [PATCH] feat: abreviacoes W/HP, L, CH, U, RED, TUB e botao Todos travado fixo --- .../SmartConsultaRelatoriosFlow.tsx | 159 +++++++++++++----- 1 file changed, 113 insertions(+), 46 deletions(-) diff --git a/src/pages/smart/components/SmartConsultaRelatoriosFlow.tsx b/src/pages/smart/components/SmartConsultaRelatoriosFlow.tsx index 29416c9..94dfc5d 100644 --- a/src/pages/smart/components/SmartConsultaRelatoriosFlow.tsx +++ b/src/pages/smart/components/SmartConsultaRelatoriosFlow.tsx @@ -238,7 +238,7 @@ export const SmartConsultaRelatoriosFlow: React.FC - {/* FILTRO 1: Pílulas Rápidas de Perfis / Materiais Comuns (W, L, Chapa, Redondo, Tubo) */} + {/* FILTRO 1: Pílulas Rápidas de Perfis Abreviações (W/HP, L, CH, U, RED, TUB) */}
PERFIL: {[ - { id: 'w', label: 'W / I' }, - { id: 'l', label: 'L (Cantoneira)' }, - { id: 'chapa', label: 'Chapa' }, - { id: 'redondo', label: 'Barra / Redondo' }, - { id: 'tubo', label: 'Tubo' }, + { id: 'w_hp', label: 'W/HP' }, + { id: 'l', label: 'L' }, + { id: 'ch', label: 'CH' }, + { id: 'u', label: 'U' }, + { id: 'red', label: 'RED' }, + { id: 'tub', label: 'TUB' }, ].map((p) => { const ativo = filtroPerfilRapido === p.id; return ( @@ -577,7 +618,7 @@ export const SmartConsultaRelatoriosFlow: React.FC - {/* FILTRO 2: Fases da Obra */} -
+ {/* FILTRO 2: Fases da Obra (Com botão 'Todas' travado/fixo) */} +
FASE: @@ -600,38 +641,63 @@ export const SmartConsultaRelatoriosFlow: React.FC Todas - {fasesUnicas.map((fase) => ( - - ))} + + {fasesUnicas.length > 0 &&
} + + {/* Demais fases rolando horizontalmente */} +
+ {fasesUnicas.map((fase) => ( + + ))} +
- {/* FILTRO 3: Status Fabril e Botão Limpar */} -
-
+ {/* FILTRO 3: Status Fabril (Com botão 'Todos' travado/fixo sem scroll) e Botão Limpar */} +
+ {/* Botão "Todos" fixo/travado à esquerda */} + + + {/* Divisor vertical */} +
+ + {/* Demais botões roláveis horizontalmente */} +
{[ - { id: 'todos', label: 'Todos' }, { id: 'fabricando', label: 'Em Fabricação' }, { id: 'pronto', label: 'Pronto Pátio' }, { id: 'embarcado', label: 'Embarcado' }, @@ -644,10 +710,10 @@ export const SmartConsultaRelatoriosFlow: React.FC {f.label} @@ -655,11 +721,12 @@ export const SmartConsultaRelatoriosFlow: React.FC + {/* Botão Limpar fixo à direita */} {temFiltroAtivo && (