-
- {dm(p.data)} às {p.hora_inicio}{p.hora_fim ? `–${p.hora_fim}` : ''}
-
+ {/* Dia AJUSTÁVEL: a IA fixou p.data; a humana troca se o paciente quiser outro dia. */}
+ {(() => {
+ const sugerido = String(p.data || '').slice(0, 10);
+ const atual = dataSel[p.id] || sugerido;
+ const mudou = atual !== sugerido;
+ return (
+
+ );
+ })()}
+ {/* Horário AJUSTÁVEL: a IA fixou p.hora_inicio; a humana troca pelo combinado com o paciente. */}
+ {(() => {
+ const sugerida = String(p.hora_inicio).slice(0, 5);
+ const atual = horaSel[p.id] || sugerida;
+ const mudou = atual !== sugerida;
+ return (
+
+ );
+ })()}
{p.paciente_nome || 'Cliente'}
{p.paciente_telefone &&
{p.paciente_telefone}}
{p.procedimento &&
{p.procedimento}
}
@@ -114,15 +235,26 @@ export const PedidosPendentes: React.FC<{ isOpen: boolean; onClose: () => void;
{p.dentista_id ? (
{p.dentista_nome}
) : (
-
+
+
+ {!sel[p.id] && Escolha o dentista}
+
)}
-