diff --git a/index.html b/index.html index 800a1ff..dfcf81f 100644 --- a/index.html +++ b/index.html @@ -106,6 +106,7 @@ tr:hover{background:#fff} История заявок (№ заявки / № канала / Дата) + @@ -139,6 +140,21 @@ function formatPhone(phone) { } function renderTable(clients) { + // Добавляем строку с общей статистикой + const summaryRow = document.getElementById('summaryRow'); + summaryRow.innerHTML = ` + + 📊 + ИТОГО ПОВТОРНЫХ ОБРАЩЕНИЙ + ${clients.reduce((sum, c) => sum + c.total_requests, 0)} + +
Уникальных заявок: ${data.total_unique_applications}
+
Клиентов с повторами: ${clients.length}
+ + Все заявки показаны ниже в таблице + + `; + const tbody = document.getElementById('tableBody'); tbody.innerHTML = '';