Actualizar contabilidad.html

This commit is contained in:
2026-03-01 15:55:24 +00:00
parent 63c9be3cdd
commit b81014a06c

View File

@@ -203,19 +203,44 @@
</div> </div>
</div> </div>
<div id="convertModal" class="fixed inset-0 bg-slate-900/75 hidden z-[110] flex items-center justify-center p-4 backdrop-blur-sm"> <div id="convertModal" class="fixed inset-0 bg-slate-900/75 hidden z-[110] flex items-center justify-center p-4 backdrop-blur-sm">
<div class="bg-white rounded-[2rem] w-full max-w-sm shadow-2xl p-6 text-center"> <div class="bg-white rounded-[2rem] w-full max-w-md shadow-2xl p-6">
<div class="w-16 h-16 bg-emerald-100 text-emerald-500 rounded-full flex items-center justify-center mx-auto mb-4"><i data-lucide="calendar-check" class="w-8 h-8"></i></div> <div class="w-16 h-16 bg-emerald-100 text-emerald-500 rounded-full flex items-center justify-center mx-auto mb-4"><i data-lucide="briefcase" class="w-8 h-8"></i></div>
<h3 class="font-black text-xl text-slate-800 mb-1">Convertir a Servicio</h3> <h3 class="font-black text-xl text-slate-800 mb-1 text-center">Pasar a Operativa</h3>
<p class="text-xs text-slate-500 mb-6">Elige la fecha para enviar el aviso al Panel Operativo y notificar al cliente por WhatsApp.</p> <p class="text-xs text-slate-500 mb-6 text-center">Asigna este presupuesto a un técnico o mándalo a la bolsa para que lo coja el primero disponible.</p>
<input type="hidden" id="convBudgetId"> <input type="hidden" id="convBudgetId">
<div class="space-y-3 text-left mb-6">
<div><label class="text-[10px] font-black text-slate-400 uppercase tracking-widest ml-1">Fecha</label><input type="date" id="convDate" class="w-full border-2 border-slate-200 rounded-xl px-3 py-2 font-bold outline-none"></div> <div class="space-y-4 text-left mb-6 bg-slate-50 p-4 rounded-2xl border border-slate-100">
<div><label class="text-[10px] font-black text-slate-400 uppercase tracking-widest ml-1">Hora Aprox.</label><input type="time" id="convTime" class="w-full border-2 border-slate-200 rounded-xl px-3 py-2 font-bold outline-none"></div> <div>
<label class="text-[10px] font-black text-slate-400 uppercase tracking-widest ml-1">Gremio Especialista *</label>
<select id="convGuild" onchange="loadOpsForGuildConv(this.value)" class="w-full border-2 border-slate-200 rounded-xl px-3 py-2 text-sm font-bold outline-none focus:border-emerald-500">
<option value="">Selecciona Gremio...</option>
</select>
</div>
<div>
<label class="text-[10px] font-black text-slate-400 uppercase tracking-widest ml-1">Asignar a Operario</label>
<select id="convOperator" class="w-full border-2 border-slate-200 rounded-xl px-3 py-2 text-sm font-bold outline-none focus:border-emerald-500 text-blue-600">
<option value="AUTO">⚡ MANDAR A LA BOLSA (AUTO)</option>
</select>
</div>
<div id="convDateContainer" class="grid grid-cols-2 gap-2 pt-2 border-t border-slate-200 hidden">
<div>
<label class="text-[10px] font-black text-slate-400 uppercase tracking-widest ml-1">Fecha</label>
<input type="date" id="convDate" class="w-full border-2 border-slate-200 rounded-xl px-3 py-2 text-sm font-bold outline-none focus:border-emerald-500">
</div>
<div>
<label class="text-[10px] font-black text-slate-400 uppercase tracking-widest ml-1">Hora</label>
<input type="time" id="convTime" class="w-full border-2 border-slate-200 rounded-xl px-3 py-2 text-sm font-bold outline-none focus:border-emerald-500">
</div>
</div>
</div> </div>
<div class="flex gap-2"> <div class="flex gap-2">
<button onclick="document.getElementById('convertModal').classList.add('hidden')" class="flex-1 bg-slate-100 text-slate-600 font-bold py-3 rounded-xl">Cancelar</button> <button onclick="document.getElementById('convertModal').classList.add('hidden')" class="flex-1 bg-slate-100 text-slate-600 font-bold py-3 rounded-xl hover:bg-slate-200 transition-colors">Cancelar</button>
<button onclick="confirmConversion()" class="flex-1 bg-emerald-500 text-white font-black uppercase tracking-widest shadow-md py-3 rounded-xl">Confirmar</button> <button onclick="confirmConversion()" class="flex-1 bg-emerald-500 text-white font-black uppercase tracking-widest shadow-md py-3 rounded-xl hover:bg-emerald-600 transition-colors">Procesar</button>
</div> </div>
</div> </div>
</div> </div>