diff --git a/servicios.html b/servicios.html index 71fa114..2030fd8 100644 --- a/servicios.html +++ b/servicios.html @@ -351,10 +351,6 @@ const addr = raw["Dirección"] || raw["DOMICILIO"] || "---"; const pop = raw["Población"] || raw["POBLACION-PROVINCIA"] || ""; const fullAddr = `${addr} ${pop}`.trim(); - const phone = raw["Teléfono"] || raw["TELEFONO"] || raw["TELEFONOS"] || ""; - - // Extraer solo números para el enlace de llamada - const cleanPhone = phone.toString().replace(/\D/g, ''); const cita = raw.scheduled_date ? `${raw.scheduled_date} | ${raw.scheduled_time}` : 'Pendiente Cita'; const companyName = raw['Compañía'] || raw['COMPAÑIA'] || raw['Procedencia'] || (s.provider === 'MANUAL' ? 'PARTICULAR' : 'ASEGURADORA'); @@ -365,7 +361,6 @@ if(raw.status_operativo === 'incidencia') iconEstado = 'alert-triangle'; if(raw.status_operativo === 'terminado') iconEstado = 'check-circle'; - // DICCIONARIO DE COLORES BLINDADO PARA TAILWIND JIT const colorClasses = { 'rose': 'bg-rose-100 text-rose-600', 'blue': 'bg-blue-100 text-blue-600', @@ -377,15 +372,12 @@ }; const badgeClass = colorClasses[color] || 'bg-slate-100 text-slate-600'; - // LÓGICA DE BLOQUEO (No se puede abrir si está buscando o en bolsa, a menos que ya tenga operario y sea pausa) const isBlocked = !s.assigned_name && (s.automation_status === 'in_progress' || s.automation_status === 'failed'); const clickAction = isBlocked ? `shakeCard(this, '${s.automation_status}'); event.stopPropagation();` : `openDetail(${s.id})`; const cursorStyle = isBlocked ? 'cursor-not-allowed' : 'cursor-pointer'; - // Renderizado de la Tarjeta Mejorada return `
-
${isBlocked ? '' : ''} @@ -393,27 +385,15 @@ #${s.service_ref}
-

${companyName}

${name}

- -
+

${fullAddr}

- - ${phone ? ` -
-

- ${phone} -

- ${cleanPhone ? `` : ''} -
- ` : '

Sin teléfono

'}
-