From 1238a0b0fbd515306470fbaf1561bfeadfb5d5de Mon Sep 17 00:00:00 2001 From: Dauren777 Date: Thu, 4 Jun 2026 12:28:28 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BB=D0=B5=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B8=D0=BA=D1=80=D0=B5=D0=BF=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D1=84=D0=BE=D1=82=D0=BE=20=D0=B2=20=D0=B1=D0=BB?= =?UTF-8?q?=D0=B0=D0=BD=D0=BA=D0=B5=20=D0=9F=D0=90=D0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.html b/app.html index 8253b3c..d7ed1f6 100644 --- a/app.html +++ b/app.html @@ -52,7 +52,8 @@ td{padding:8px 12px;border-bottom:1px solid #F2F4F7}tr:hover td{background:#F2F4
-
✅ ВСЕ БЕЗОПАСНО
⚠️ ЕСТЬ ОПАСНО
+
✅ ВСЕ БЕЗОПАСНО
⚠️ ЕСТЬ ОПАСНО
+

📄 Категории наблюдения

💬 Итог диалога

@@ -167,6 +168,7 @@ function resetF(){ document.getElementById("pn").value="";document.getElementById("pd").value=new Date().toISOString().split("T")[0];document.getElementById("pr").value=U.region||"";document.getElementById("pl").value="";document.getElementById("pw").value="";document.getElementById("pc").value="1";document.getElementById("po").value=U.name;document.getElementById("por").value="";setO("safe");editId=null; CATS.forEach(function(cat){cat.items.forEach(function(_,i){var cb=document.getElementById("cb-"+cat.id+"-"+i);if(cb)cb.checked=false});updateCT(cat.id)}); document.getElementById("d0").checked=false;document.getElementById("d1").checked=false;document.getElementById("d2").checked=false;document.getElementById("d3").checked=false; + document.getElementById("pfiles").value="";document.getElementById("fn").textContent=""; } function exportCSV(){var a=getA();if(a.length===0){alert("Нет данных");return}var all=allU(),h="Бланк №;Дата;Место;Наблюдатель;Должность;Филиал;Регион;Город;Статус;Нарушений",rs=a.map(function(x){var u=all[x.createdBy]||{};return(x.number||"")+";"+x.date+";"+x.location+";"+x.observer+";"+(x.observerRole||"")+";"+(u.branch||"")+";"+(u.region||"")+";"+(u.city||"")+";"+(x.overallSafe?"Безопасно":"Нарушения")+";"+(x.totalViolations||0)}),csv="\uFEFF"+h+"\n"+rs.join("\n"),bl=new Blob([csv],{type:"text/csv"}),ur=URL.createObjectURL(bl),dl=document.createElement("a");dl.href=ur;dl.download="pab.csv";dl.click();URL.revokeObjectURL(ur)}