From 3ffade8412776044e82a1d10e0379eee89c01696 Mon Sep 17 00:00:00 2001 From: wasrusgen Date: Fri, 29 May 2026 14:54:10 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=93=D1=80=D0=B0=D1=84=D0=B8=D0=BA=20?= =?UTF-8?q?=E2=80=94=20=D0=B4=D0=B8=D0=B0=D0=BB=D0=BE=D0=B3=20=C2=AB=D0=94?= =?UTF-8?q?=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82=D1=8C=20=D0=B2=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=B5=D1=87=D1=83=C2=BB=20=D1=81=20=D1=84=D0=BE=D1=80?= =?UTF-8?q?=D0=BC=D0=BE=D0=B9=20=D0=B8=20=D1=81=D0=BE=D1=85=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/mockup_manager.html | 45 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/docs/mockup_manager.html b/docs/mockup_manager.html index 710d89c..6d2db71 100644 --- a/docs/mockup_manager.html +++ b/docs/mockup_manager.html @@ -1390,7 +1390,7 @@ function _renderShiftDetail(mday){ ) +''; }); - timelineHtml += ''; + timelineHtml += ''; timelineHtml += ''; } @@ -4168,6 +4168,49 @@ function navBar() { } function _nav(id){window._currentScreen=id;document.getElementById('screen').innerHTML=renderScreen(id);document.getElementById('nav').innerHTML=navBar();} +// ── Диалог «Добавить встречу» ───────────────────────────────────────────────── +function _addMeetingModal(mday){ + var old=document.getElementById('meetingModal'); if(old) old.remove(); + var overlay=document.createElement('div'); + overlay.id='meetingModal'; + overlay.style.cssText='position:absolute;inset:0;background:rgba(0,0,0,.45);backdrop-filter:blur(3px);z-index:999;display:flex;align-items:flex-end'; + var typeOpts=['Замер на объекте','Первичная консультация','Согласование проекта','Встреча с технологом','Приёмка заказа','Прочее'] + .map(function(t){return '';}).join(''); + overlay.innerHTML= + '
' + +'
' + +'
' + +'

Новая встреча

' + +'' + +'
' + +'
КЛИЕНТ
' + +'' + +'
ТИП ВСТРЕЧИ
' + +'' + +'
ВРЕМЯ
' + +'' + +'' + +'' + +'
'; + overlay.addEventListener('click',function(e){ if(e.target===overlay) overlay.remove(); }); + document.getElementById('phoneFrame').appendChild(overlay); + setTimeout(function(){ var f=document.getElementById('mtgClient'); if(f) f.focus(); },100); +} + +function _saveMeeting(mday){ + var client=(document.getElementById('mtgClient').value||'').trim(); + var type=document.getElementById('mtgType').value; + var time=document.getElementById('mtgTime').value||'12:00'; + if(!client){ var inp=document.getElementById('mtgClient'); inp.style.border='1.5px solid #EF4444'; inp.placeholder='Введите имя клиента'; return; } + var colors={'Замер на объекте':'#3B82F6','Первичная консультация':'#0D9488','Согласование проекта':'#10B981','Встреча с технологом':'#F59E0B','Приёмка заказа':'#8B5CF6','Прочее':'#64748B'}; + var wi=mday-19; + if(wi>=0&&wi<=6){ _APPTS[wi].push({time:time,client:client,type:type,order:null,color:colors[type]||'#64748B'}); } + document.getElementById('meetingModal').remove(); + window._schedMday=mday; + document.getElementById('screen').innerHTML=renderScreen('manager_schedule'); + _toast('Встреча добавлена ✓','#15803D'); +} + // ── Toast ───────────────────────────────────────────────────────────────────── function _toast(msg,color){ var t=document.createElement('div');