feat(turnero): campo embarazada en recepción y badge en toma de muestras
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
d40da57a60
commit
c9e5744de4
@@ -429,6 +429,16 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Embarazo -->
|
||||
<div class="mt-2">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="chk-embarazada">
|
||||
<label class="form-check-label small fw-semibold text-danger" for="chk-embarazada">
|
||||
<i class="fas fa-baby me-1"></i>Paciente embarazada
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Historial colapsable del paciente -->
|
||||
<div id="sec-historial-pac" class="d-none">
|
||||
<button class="hist-toggle-btn" id="btn-hist-toggle" onclick="toggleHistorialPaciente()">
|
||||
@@ -1121,6 +1131,7 @@ function desvincularPaciente() {
|
||||
document.getElementById('btn-hist-toggle').classList.remove('open');
|
||||
document.getElementById('lista-pacientes-res').innerHTML = '';
|
||||
document.getElementById('inp-buscar-pac').value = '';
|
||||
document.getElementById('chk-embarazada').checked = false;
|
||||
}
|
||||
|
||||
function cambiarPaciente() {
|
||||
@@ -1256,6 +1267,7 @@ async function guardarSolicitud() {
|
||||
total_cobrado: parseFloat(document.getElementById('inp-total').value) || null,
|
||||
metodo_pago: document.getElementById('sel-pago').value || null,
|
||||
observaciones: document.getElementById('inp-obs').value.trim() || null,
|
||||
embarazada: document.getElementById('chk-embarazada').checked ? 1 : 0,
|
||||
}),
|
||||
});
|
||||
const json = await res.json();
|
||||
|
||||
Reference in New Issue
Block a user