Permitir agregar fecha y hora programada en cualquier tipo de pendiente

This commit is contained in:
2026-08-11 21:33:02 +00:00
parent cc7854bdd7
commit 01bea69c9d
+21 -23
View File
@@ -3082,8 +3082,8 @@ function SeccionPendientes({ pacienteId, internacionId, canEdit }: { pacienteId:
categoria, categoria,
prioridad, prioridad,
observaciones: observaciones.trim() || undefined, observaciones: observaciones.trim() || undefined,
fechaProgramada: (categoria === 'Estudio' || categoria === 'Procedimiento') ? (fechaProgramada || undefined) : undefined, fechaProgramada: fechaProgramada || undefined,
horaProgramada: (categoria === 'Estudio' || categoria === 'Procedimiento') ? (horaProgramada || undefined) : undefined, horaProgramada: horaProgramada || undefined,
}; };
if (pendienteEditar) { if (pendienteEditar) {
@@ -3377,28 +3377,26 @@ function SeccionPendientes({ pacienteId, internacionId, canEdit }: { pacienteId:
</div> </div>
</div> </div>
{(categoria === 'Estudio' || categoria === 'Procedimiento') && ( <div className="grid grid-cols-2 gap-3 p-3 bg-muted/30 rounded-lg border">
<div className="grid grid-cols-2 gap-3 p-3 bg-muted/30 rounded-lg border"> <div>
<div> <Label className="text-xs font-medium">Fecha Programada</Label>
<Label className="text-xs font-medium">Fecha Programada</Label> <Input
<Input type="date"
type="date" value={fechaProgramada}
value={fechaProgramada} onChange={e => setFechaProgramada(e.target.value)}
onChange={e => setFechaProgramada(e.target.value)} className="mt-1 h-9 text-xs"
className="mt-1 h-9 text-xs" />
/>
</div>
<div>
<Label className="text-xs font-medium">Hora Programada</Label>
<Input
type="time"
value={horaProgramada}
onChange={e => setHoraProgramada(e.target.value)}
className="mt-1 h-9 text-xs"
/>
</div>
</div> </div>
)} <div>
<Label className="text-xs font-medium">Hora Programada</Label>
<Input
type="time"
value={horaProgramada}
onChange={e => setHoraProgramada(e.target.value)}
className="mt-1 h-9 text-xs"
/>
</div>
</div>
<div> <div>
<Label className="text-xs font-medium">Observaciones / Detalles (opcional)</Label> <Label className="text-xs font-medium">Observaciones / Detalles (opcional)</Label>