From ab57567f118a44f6c4dd1edbf81426e16cce1020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Gustavo?= <166467972+JoaoGustavo-dev@users.noreply.github.com> Date: Fri, 10 Oct 2025 21:19:49 -0300 Subject: [PATCH] add-response --- susconecta/app/profissional/page.tsx | 178 +++++++++++++++++---------- 1 file changed, 116 insertions(+), 62 deletions(-) diff --git a/susconecta/app/profissional/page.tsx b/susconecta/app/profissional/page.tsx index c7313a9..e26d086 100644 --- a/susconecta/app/profissional/page.tsx +++ b/susconecta/app/profissional/page.tsx @@ -715,59 +715,115 @@ const ProfissionalPage = () => { - {/* Tabela */} -
- - - - Pedido - Data - Prazo - Paciente - Executante/Solicitante - Exame/Classificação - Ação - - - - {filteredLaudos.map((laudo) => ( - - -
- {laudo.urgente && ( -
- )} - - {getReportPatientName(laudo) || laudo.order_number || getShortId(laudo.id)} - -
-
- -
-
{formatReportDate(getReportDate(laudo))}
-
{laudo?.hora || new Date(laudo?.data || laudo?.created_at || laudo?.due_at || Date.now()).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}
-
-
- -
-
{laudo?.prazo ?? laudo?.due_at ? formatReportDate(laudo?.due_at ?? laudo?.prazo) : '-'}
-
{laudo?.prazo_hora ?? laudo?.due_time ?? '-'}
-
-
- -
-
- - {getReportPatientId(laudo) || '-'} + {/* Tabela para desktop e cards empilháveis para mobile */} +
+ {/* Desktop / tablet (md+) - tabela com scroll horizontal */} +
+
+ + + Pedido + Data + Prazo + Paciente + Executante/Solicitante + Exame/Classificação + Ação + + + + {filteredLaudos.map((laudo) => ( + + +
+ {laudo.urgente && ( +
+ )} + + {getReportPatientName(laudo) || laudo.order_number || getShortId(laudo.id)} +
-
{getReportPatientName(laudo) || '—'}
-
{getReportPatientCpf(laudo) ? `CPF: ${getReportPatientCpf(laudo)}` : ''}
+
+ +
+
{formatReportDate(getReportDate(laudo))}
+
{laudo?.hora || new Date(laudo?.data || laudo?.created_at || laudo?.due_at || Date.now()).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}
+
+
+ +
+
{laudo?.prazo ?? laudo?.due_at ? formatReportDate(laudo?.due_at ?? laudo?.prazo) : '-'}
+
{laudo?.prazo_hora ?? laudo?.due_time ?? '-'}
+
+
+ +
+
+ + {getReportPatientId(laudo) || '-'} +
+
{getReportPatientName(laudo) || '—'}
+
{getReportPatientCpf(laudo) ? `CPF: ${getReportPatientCpf(laudo)}` : ''}
+
+
+ {getReportExecutor(laudo) || '-'} + {getReportExam(laudo) || "-"} + +
+ + +
+
+
+ ))} +
+
+
+ + {/* Mobile - cards empilháveis */} +
+ {filteredLaudos.map((laudo) => ( +
+
+
+
+
+
{getReportExam(laudo) || '-'}
+
{formatReportDate(getReportDate(laudo))} {laudo?.hora ? `• ${laudo.hora}` : ''}
+
+
{getReportPatientName(laudo) ? getShortId(laudo.id) : ''}
- - {getReportExecutor(laudo) || '-'} - {getReportExam(laudo) || "-"} - -
+
+
{getReportPatientName(laudo) || '—'}
+
{getReportPatientCpf(laudo) ? `CPF: ${getReportPatientCpf(laudo)}` : getReportPatientId(laudo) || '-'}
+
+
+
+
{getReportExecutor(laudo) || '-'}
+
- - - ))} - - +
+
+
+ ))} +
@@ -842,7 +896,7 @@ const ProfissionalPage = () => { function LaudoViewer({ laudo, onClose }: { laudo: any; onClose: () => void }) { return (
-
+
{/* Header */}
@@ -1232,7 +1286,7 @@ const ProfissionalPage = () => { return (
-
+
{/* Header */}