@@ -1620,12 +1621,22 @@
{
id: "meet_2",
title: "جلسه حضوری با مدیران باغ کتاب تهران",
- type: "in_person",
+ type: "in_person_external",
time: "امروز ۱۵:۰۰ تا ۱۶:۳۰",
attendees: "حامد فلاحی، خانم ارشادی",
buffer: "خروج ساعت ۱۴:۱۵ (۴۵ دقیقه بافر ترافیک همت)",
link: "https://neshan.org",
notes: "تحویل وسایل و نهاییسازی تسویهحساب تابستان؛ هماهنگی ورود با پارکینگ شماره ۱"
+ },
+ {
+ id: "meet_3",
+ title: "جلسه حضوری با سرمایهگذار در دفتر اکیپا",
+ type: "in_person_office",
+ time: "فردا ساعت ۱۱:۰۰",
+ attendees: "مهندس رضوانی (سرمایهگذار)",
+ buffer: "رزرو اتاق جلسات اصلی + پذیرایی چای و قهوه",
+ link: "",
+ notes: "بررسی شرایط تمدید و دور دوم سرمایهگذاری؛ بدون تردد حامد (مهمان میآید دفتر)"
}
],
tasks: [
@@ -1959,6 +1970,11 @@
const titleEl = document.getElementById('modal' + capitalize(entity) + 'Title');
if (titleEl) titleEl.innerText = titleMap[entity] || 'ثبت آیتم جدید';
+ if (entity === 'meeting') {
+ document.getElementById('meetingTypeInput').value = 'online';
+ handleMeetingTypeChange();
+ }
+
openModal('modal' + capitalize(entity));
}
@@ -2042,26 +2058,92 @@
`).join('');
}
+ function handleMeetingTypeChange() {
+ const type = document.getElementById('meetingTypeInput').value;
+ const bufferLabel = document.getElementById('meetingBufferLabel');
+ const bufferInput = document.getElementById('meetingBufferInput');
+ const linkLabel = document.getElementById('meetingLinkLabel');
+ const linkInput = document.getElementById('meetingLinkInput');
+
+ if (type === 'online') {
+ bufferLabel.innerText = 'بستر آنلاین / تمهیدات فنی';
+ bufferInput.placeholder = 'مثال: لینک گوگلمیت / ادوبی کانکت';
+ linkLabel.innerText = 'لینک ورود به جلسه آنلاین';
+ linkInput.placeholder = 'https://meet.google.com/...';
+ } else if (type === 'in_person_office') {
+ bufferLabel.innerText = 'هماهنگی اتاق جلسه و پذیرایی در دفتر اکیپا';
+ bufferInput.placeholder = 'مثال: رزرو اتاق جلسات اصلی + پذیرایی چای/قهوه';
+ linkLabel.innerText = 'اتاق جلسه / هماهنگی ورود مهمان';
+ linkInput.placeholder = 'مثال: اتاق کنفرانس / هماهنگی با نگهبانی و لابی';
+ } else {
+ // in_person_external or fallback in_person
+ bufferLabel.innerText = 'بافر ترافیک / زمان خروج پیشنهادی (تهران)';
+ bufferInput.placeholder = 'مثال: خروج ساعت ۱۴:۱۵ (۴۵ دقیقه بافر ترافیک همت)';
+ linkLabel.innerText = 'آدرس و لوکیشن در نشان / گوگلمپ';
+ linkInput.placeholder = 'https://neshan.org/...';
+ }
+ }
+
function renderHamedMeetings() {
const list = document.getElementById('hamedMeetingsList');
if (!appState.meetings.length) {
list.innerHTML = `
جلسهای برای امروز در تقویم ثبت نشده است.
`;
return;
}
- list.innerHTML = appState.meetings.map(m => `
+ list.innerHTML = appState.meetings.map(m => {
+ const isOnline = (m.type === 'online');
+ const isOffice = (m.type === 'in_person_office');
+ const isExternal = (!isOnline && !isOffice);
+
+ let badgeHtml = '';
+ if (isOnline) {
+ badgeHtml = '
💻 آنلاین';
+ } else if (isOffice) {
+ badgeHtml = '
🏢 حضوری (دفتر اکیپا)';
+ } else {
+ badgeHtml = '
🚗 حضوری (خارج از دفتر)';
+ }
+
+ let logisticHtml = '';
+ if (isOffice) {
+ logisticHtml = `
+
+ 🏢 میزبانی در دفتر اکیپا (بدون تردد برای حامد)
+ ${m.attendees ? `| مهمان: ${m.attendees}` : ''}
+
+ ${m.buffer ? `
☕ ${m.buffer}
` : ''}
+ `;
+ } else if (isExternal) {
+ logisticHtml = `
+ ${m.buffer ? `
⚠️ ${m.buffer}
` : ''}
+
👥 طرفین جلسه: ${m.attendees || 'بدون لیست حاضرین'}
+ `;
+ } else {
+ logisticHtml = `
👥 حاضرین: ${m.attendees || 'بدون لیست حاضرین'}
`;
+ }
+
+ let actionHtml = '';
+ if (isOnline && m.link) {
+ actionHtml = `
🚀 ورود مستقیم به میت`;
+ } else if (isExternal && m.link) {
+ actionHtml = `
📍 مسیریابی لوکیشن در نشان`;
+ } else if (isOffice) {
+ actionHtml = `
✅ میزبانی در دفتر اکیپا — عدم نیاز به تردد حامد
`;
+ }
+
+ return `
-
+
${m.title}
-
${m.type === 'online' ? '💻 آنلاین' : '🚗 حضوری'}
+ ${badgeHtml}
-
⏰ ${m.time} | 👥 ${m.attendees || 'بدون لیست حاضرین'}
- ${m.buffer ? `
⚠️ ${m.buffer}
` : ''}
+
⏰ زمان: ${m.time}
+ ${logisticHtml}
${m.notes ? `
${m.notes}
` : ''}
-
+ ${actionHtml ? `
${actionHtml}
` : ''}
- `).join('');
+ `;
+ }).join('');
}
function renderHamedFinanceTable() {
@@ -2174,14 +2256,27 @@
function renderMasterMeetings() {
const tbody = document.getElementById('tableBodyMeetings');
- tbody.innerHTML = appState.meetings.map(m => `
+ tbody.innerHTML = appState.meetings.map(m => {
+ const isOnline = (m.type === 'online');
+ const isOffice = (m.type === 'in_person_office');
+
+ let badgeType = '';
+ if (isOnline) {
+ badgeType = '
💻 آنلاین';
+ } else if (isOffice) {
+ badgeType = '
🏢 دفتر اکیپا';
+ } else {
+ badgeType = '
🚗 خارج از دفتر';
+ }
+
+ return `
| ${m.title} |
- ${m.type === 'online' ? 'آنلاین' : 'حضوری'} |
+ ${badgeType} |
${m.time} |
${m.attendees || '-'} |
- ${m.buffer || '-'} |
- ${m.link ? `باز کردن` : '-'} |
+ ${m.buffer || (isOffice ? 'بدون تردد (دفتر اکیپا)' : '-')} |
+ ${m.link ? `مشاهده / ورود` : (isOffice ? 'دفتر مرکزی اکیپا' : '-')} |
@@ -2189,7 +2284,7 @@
|
- `).join('');
+ `;}).join('');
}
function renderMasterTasks() {
@@ -2394,12 +2489,13 @@
} else if (entitySingle === 'meeting') {
document.getElementById('meetingId').value = item.id;
document.getElementById('meetingTitleInput').value = item.title;
- document.getElementById('meetingTypeInput').value = item.type;
+ document.getElementById('meetingTypeInput').value = (item.type === 'in_person') ? 'in_person_external' : (item.type || 'online');
document.getElementById('meetingTimeInput').value = item.time;
document.getElementById('meetingAttendeesInput').value = item.attendees || '';
document.getElementById('meetingBufferInput').value = item.buffer || '';
document.getElementById('meetingLinkInput').value = item.link || '';
document.getElementById('meetingNotesInput').value = item.notes || '';
+ handleMeetingTypeChange();
document.getElementById('modalMeetingTitle').innerText = 'ویرایش جلسه';
openModal('modalMeeting');
} else if (entitySingle === 'task') {
diff --git a/dashboards/cockpit.html b/dashboards/cockpit.html
index 5ed1ae6..403322a 100644
--- a/dashboards/cockpit.html
+++ b/dashboards/cockpit.html
@@ -716,7 +716,7 @@