From c679f798dfda4d0c559876cde77984b8fda427f5 Mon Sep 17 00:00:00 2001 From: Dauren777 Date: Tue, 9 Jun 2026 15:40:59 +0000 Subject: [PATCH] =?UTF-8?q?v72:=20=D0=BF=D0=BE=D0=BB=D0=BD=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D1=8F=20v66=20=E2=80=94=20=D0=B2?= =?UTF-8?q?=D1=81=D0=B5=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D0=B8=20?= =?UTF-8?q?=D0=B4=D0=BE=20Word/PDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 43 ++++++++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/index.html b/index.html index d6f13aa..513158c 100644 --- a/index.html +++ b/index.html @@ -202,6 +202,7 @@ function renderAn(){ var all=ev||[],done=all.filter(function(e){return e.s==="done"}),late=all.filter(function(e){return e.s==="late"}),warn=all.filter(function(e){return e.s==="warn"}),wait=all.filter(function(e){return e.s==="wait"}); var dp=all.length?Math.round(done.length/all.length*100):0; var h="
"+all.length+"
Всего
"+done.length+"
Исполнено ("+dp+"%)
"+warn.length+"
В процессе
"+late.length+"
Просрочено
"+wait.length+"
Не начато
"; + h+="
"; // Chart h+="

Динамика по кварталам

Q1 фактQ2 прогнозQ3 планQ4 цель
"; // Branch ranking @@ -220,7 +221,12 @@ function nu(){var all=ev||[],n=[],now=new Date();all.forEach(function(e){if(e.s= document.getElementById("nc").textContent=n.length;document.getElementById("nc").style.display=n.length?"inline-block":"none"; document.getElementById("nd").innerHTML=n.length?n.map(function(x){return"
"+x.c+" "+esc(x.m)+"Срок: "+x.t+"
"}).join(""):"
Нет уведомлений
"} -// ===== REPORTS ===== +function dAnCSV(){var all=ev||[],csv="\uFEFF№;Филиал;Мероприятие;Подпункты;Раздел;Статус;Прогресс;Срок;Осталось;Факт;Описание\n";all.forEach(function(e){var rep="";var d=getMD(e.id,-1);for(var k in d)if(d.hasOwnProperty(k)&&d[k]&&d[k].report)rep+=d[k].report.replace(/"/g,'""')+"; ";csv+=e.id+";"+br[e.b]+";\""+e.t.replace(/"/g,'""')+"\";"+(e.sub?e.sub.length:"—")+";"+sec[e.sec]+";"+st[e.s]+";"+e.p+"%;"+e.due+";"+daysLeft(e).replace(/<[^>]*>/g,"")+";"+(e.done||"—")+";\""+rep+"\"\n"});var a=document.createElement("a");a.href=URL.createObjectURL(new Blob([csv]));a.download="analitika.csv";a.click()} + +function dAnHTML(){var all=ev||[];var h="Аналитика ПБ

📊 Аналитика ПБ — все мероприятия

Сформирован: "+new Date().toLocaleDateString()+"

"; + all.forEach(function(e){var cl=e.s==="done"?"done":e.s==="late"?"late":"";h+=""}); + h+="
МероприятиеПодпунктыФилиалРазделСтатусСрокОсталосьФакт
"+e.id+""+esc(e.t)+""+(e.sub?e.sub.length:"—")+""+esc(br[e.b])+""+sec[e.sec]+""+st[e.s]+""+e.due+""+daysLeft(e).replace(/<[^>]*>/g,"")+""+(e.done||"—")+"
"; + try{var a=document.createElement("a");a.href=URL.createObjectURL(new Blob(["\uFEFF"+h],{type:"text/html"}));a.download="analitika.html";a.click()}catch(e){alert("Слишком большой")}} function renderRp(){var b=0;for(var i=0;i"+M(i)+""; h+=""; h+=""; scfs.forEach(function(f,fi){h+="
📄 "+esc(f.name)+""+(f.size/1024).toFixed(0)+" КБ · "+(f.date||"")+"
"}); - h+="
"; + h+="

PDF, DOC/DOCX, XLS/XLSX, JPG/PNG, PPT/PPTX · до 3 МБ

"; } }); h+="
";ms.forEach(function(_,i){h+=""+M(i)+""});h+="
"; @@ -295,7 +308,7 @@ function oe(id,mi,si){ h+=""; h+=""; cfs.forEach(function(f,i){h+="
📄 "+esc(f.name)+""+(f.size/1024).toFixed(0)+" КБ · "+(f.date||"")+"
"}); - h+="

PDF, DOC, XLS, фото, презентации

"; + h+="

PDF, DOC/DOCX, XLS/XLSX, JPG/PNG, PPT/PPTX · до 3 МБ

"; } h+="
🤖 ИИ-анализ: "+esc(e.ai)+"
";