diff --git a/frontend/src/pages/Medicos.tsx b/frontend/src/pages/Medicos.tsx index 13b5522..0188bff 100644 --- a/frontend/src/pages/Medicos.tsx +++ b/frontend/src/pages/Medicos.tsx @@ -1,6 +1,6 @@ import type { FC } from 'react'; import { useEffect, useMemo, useState } from 'react'; -import { Mail, Phone, Stethoscope, Briefcase, Save, Percent, Eye, CalendarDays, FileText, ShoppingCart, Users } from 'lucide-react'; +import { Mail, Phone, Stethoscope, Briefcase, Save, Percent, Eye, CalendarDays, FileText, ShoppingCart, Users, ClipboardList, CreditCard, DollarSign } from 'lucide-react'; import Layout from '../components/Layout'; import { Card, Badge, EmptyState, PageHeader, Skeleton, MobileCard, Input, Button, Modal, toast } from '../components/ui'; import { odooApi, type Doctor, type DoctorHistory } from '../services/odoo'; @@ -265,16 +265,32 @@ const Medicos: FC = () => { {selected && (
Pacientes
+{fmtNum(selected.patient_count ?? 0, 0)}
+Citas
+{histLoading || !hist ? '…' : fmtNum(hist.totales.citas_total, 0)}
+Visitas
+{histLoading || !hist ? '…' : fmtNum(hist.totales.visitas_total, 0)}
+Teléfono
-Resumen de actividad
+{fmtNum(selected.patient_count ?? 0, 0)}
+{selected.ventas_30d ?? 0}
+{fmtMoney(selected.total_30d ?? 0)}
+{fmtMoney(selected.card_30d ?? 0)}
+% Comisión
-{selected.commission_pct ?? 0}%
-Se edita inline en la tabla
-Pacientes asignados
-Últimos 30 días
-Contacto
+{selected.work_phone || '—'}
+{selected.work_email || '—'}
+{selected.commission_pct ?? 0}%
+Se edita inline en la tabla
+- {hist.totales.citas_total} citas en total · {hist.totales.visitas_total} visitas · {hist.totales.ventas_total_lineas} líneas recetadas por {fmtMoney(hist.totales.monto_total)} -
+{fmtNum(hist.totales.citas_total, 0)}
+{fmtNum(hist.totales.visitas_total, 0)}
+{fmtNum(hist.totales.ventas_total_lineas, 0)}
+{fmtMoney(hist.totales.monto_total)}
+