Permitir agregar fecha y hora programada en cualquier tipo de pendiente
This commit is contained in:
@@ -3082,8 +3082,8 @@ function SeccionPendientes({ pacienteId, internacionId, canEdit }: { pacienteId:
|
||||
categoria,
|
||||
prioridad,
|
||||
observaciones: observaciones.trim() || undefined,
|
||||
fechaProgramada: (categoria === 'Estudio' || categoria === 'Procedimiento') ? (fechaProgramada || undefined) : undefined,
|
||||
horaProgramada: (categoria === 'Estudio' || categoria === 'Procedimiento') ? (horaProgramada || undefined) : undefined,
|
||||
fechaProgramada: fechaProgramada || undefined,
|
||||
horaProgramada: horaProgramada || undefined,
|
||||
};
|
||||
|
||||
if (pendienteEditar) {
|
||||
@@ -3377,28 +3377,26 @@ function SeccionPendientes({ pacienteId, internacionId, canEdit }: { pacienteId:
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{(categoria === 'Estudio' || categoria === 'Procedimiento') && (
|
||||
<div className="grid grid-cols-2 gap-3 p-3 bg-muted/30 rounded-lg border">
|
||||
<div>
|
||||
<Label className="text-xs font-medium">Fecha Programada</Label>
|
||||
<Input
|
||||
type="date"
|
||||
value={fechaProgramada}
|
||||
onChange={e => setFechaProgramada(e.target.value)}
|
||||
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 className="grid grid-cols-2 gap-3 p-3 bg-muted/30 rounded-lg border">
|
||||
<div>
|
||||
<Label className="text-xs font-medium">Fecha Programada</Label>
|
||||
<Input
|
||||
type="date"
|
||||
value={fechaProgramada}
|
||||
onChange={e => setFechaProgramada(e.target.value)}
|
||||
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>
|
||||
<Label className="text-xs font-medium">Observaciones / Detalles (opcional)</Label>
|
||||
|
||||
Reference in New Issue
Block a user