diff --git a/app/modules/project/templates/project/goal_meeting.html b/app/modules/project/templates/project/goal_meeting.html index 0800285..689d24b 100644 --- a/app/modules/project/templates/project/goal_meeting.html +++ b/app/modules/project/templates/project/goal_meeting.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} @@ -21,31 +21,24 @@ {% with current_pid = 0, side_active = "goals" %}{% include "project/_side.html" %}{% endwith %}
-
-
- arrow_back -

{{ goal_year }}년 {{ goal_month }}월 주간 회의록

- {% set pm = goal_month - 1 if goal_month > 1 else 12 %}{% set py = goal_year if goal_month > 1 else goal_year - 1 %} - {% set nm = goal_month + 1 if goal_month < 12 else 1 %}{% set ny = goal_year if goal_month < 12 else goal_year + 1 %} - ‹ {{ pm }}월 - {{ nm }}월 › -
- {% if meeting and is_admin %} -
- - -
- {% elif meeting %} -
- - 회의록은 관리자만 입력할 수 있습니다. -
- {% endif %} -
- -
-
+ {# 머리 — 왼쪽: 제목·이전/다음 달·인쇄·회의록 삭제 + 주차 탭 / 오른쪽 위: 작은 달력 #} +
+
+
+ arrow_back +

{{ goal_year }}년 {{ goal_month }}월 주간 회의록

+ {% set pm = goal_month - 1 if goal_month > 1 else 12 %}{% set py = goal_year if goal_month > 1 else goal_year - 1 %} + {% set nm = goal_month + 1 if goal_month < 12 else 1 %}{% set ny = goal_year if goal_month < 12 else goal_year + 1 %} + ‹ {{ pm }}월 + {{ nm }}월 › + {% if meeting %} + + + {% if is_admin %} + {% else %}회의록은 관리자만 입력할 수 있습니다.{% endif %} + + {% endif %} +
{# 주차 탭 — 주 = 월요일~일요일, 1주차 = 1일이 들어 있는 주. 점 = 회의록 있음 #} - {# 작은 달력 — 월요일 시작(주 = 월~일), 보고 있는 주는 영역 표시, 줄을 누르면 그 주 회의록. 점 = 회의록 있음 #} -
-
{{ goal_year }}년 {{ goal_month }}월
-
월화수목금토일
- {% for w in weeks %} - - {% for d in w.days %}{{ d.d }}{% endfor %} - {% if w.has %}{% endif %} - - {% endfor %} -
+ {# 작은 달력 — 월요일 시작(주 = 월~일), 보고 있는 주는 영역 표시, 줄을 누르면 그 주 회의록. 점 = 회의록 있음 #} +
+
{{ goal_year }}년 {{ goal_month }}월
+
월화수목금토일
+ {% for w in weeks %} + + {% for d in w.days %}{{ d.d }}{% endfor %} + {% if w.has %}{% endif %} + + {% endfor %} +
+
+ +
{% if not meetings_enabled %}
주간 회의록이 아직 준비되지 않았습니다(DB 마이그레이션 015 필요).
@@ -85,15 +82,9 @@ {% else %} {% set h = head %} {% set edit = is_admin %} - {# 매출 자료 갱신 — 주차를 열면 실적 모듈 매출 업데이트(지난주 월요일 ~ 이번 주 오늘)를 한 번 더 돌리고 숫자를 다시 그린다 - (project.js initMeetingSync, 같은 주는 10분에 한 번, [매출 갱신] 버튼은 언제나) #} - {% if h.perf and sync_from %} -
- sync - 저장된 실적으로 보여 주는 중 - -
- {% endif %} + {# 매출 자료 갱신 — 주차를 열면 표시 없이 실적 모듈 매출 업데이트(지난주 월요일 ~ 이번 주 오늘)를 한 번 더 돌리고 + 숫자 칸만 다시 그린다(project.js initMeetingSync, 같은 주는 10분에 한 번). 상태 줄은 2026-10-01 요청으로 뺐다. #} + {% if h.perf and sync_from %}{% endif %} {# ── 머리 — 월 목표 대비 누적·남은 주 필요 매출 / 전주 리뷰 / 금주 목표 ── #}
@@ -255,5 +246,5 @@ {% include "project/_side_modals.html" %} {% include "project/_member_tasks_modal.html" %} - + {% endblock %} diff --git a/app/modules/project/templates/project/goals.html b/app/modules/project/templates/project/goals.html index 155deaa..15b8c8e 100644 --- a/app/modules/project/templates/project/goals.html +++ b/app/modules/project/templates/project/goals.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} @@ -207,5 +207,5 @@ {% include "project/_side_modals.html" %} {% include "project/_member_tasks_modal.html" %} - + {% endblock %} diff --git a/app/modules/project/templates/project/help.html b/app/modules/project/templates/project/help.html index dec73c1..b525787 100644 --- a/app/modules/project/templates/project/help.html +++ b/app/modules/project/templates/project/help.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} diff --git a/app/modules/project/templates/project/inbox.html b/app/modules/project/templates/project/inbox.html index ecae76f..a8f92ed 100644 --- a/app/modules/project/templates/project/inbox.html +++ b/app/modules/project/templates/project/inbox.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} @@ -104,5 +104,5 @@ {% include "project/_side_modals.html" %} {% include "project/_member_tasks_modal.html" %} - + {% endblock %} diff --git a/app/modules/project/templates/project/mytasks.html b/app/modules/project/templates/project/mytasks.html index 7cc89c6..4268063 100644 --- a/app/modules/project/templates/project/mytasks.html +++ b/app/modules/project/templates/project/mytasks.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} @@ -100,5 +100,5 @@ "today": {{ today | tojson }} } - + {% endblock %} diff --git a/app/modules/project/templates/project/project.html b/app/modules/project/templates/project/project.html index eb54f86..0bf0461 100644 --- a/app/modules/project/templates/project/project.html +++ b/app/modules/project/templates/project/project.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + @@ -496,5 +496,5 @@ - + {% endblock %} diff --git a/app/modules/project/templates/project/trash.html b/app/modules/project/templates/project/trash.html index 9c0138a..3960356 100644 --- a/app/modules/project/templates/project/trash.html +++ b/app/modules/project/templates/project/trash.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} @@ -70,5 +70,5 @@ {% include "project/_side_modals.html" %} {% include "project/_member_tasks_modal.html" %} - + {% endblock %} diff --git a/app/static/project.css b/app/static/project.css index f8c5042..5213ad9 100644 --- a/app/static/project.css +++ b/app/static/project.css @@ -2167,38 +2167,41 @@ html.pj-goal-selecting, html.pj-goal-selecting * { user-select: none !important; ════════════════════════════════════════════════════════════ */ .pj-meet-pane { flex: 1 1 auto; min-height: 0; overflow: auto; } .pj-meet-title { display: flex; align-items: center; gap: 8px; } -.pj-meet-title h2 { margin: 0 6px 0 0; } +.pj-meet-title h2 { margin: 0 6px 0 0; font-size: 16px; font-weight: 700; } /* .pj-section-head h2 와 같게 */ .pj-meet-back { display: inline-flex; color: var(--pj-ink-soft); border-radius: 6px; padding: 2px; } .pj-meet-back:hover { background: #f1f2f4; color: var(--pj-ink); } .pj-goal-head-acts .pj-btn .material-symbols-outlined { font-size: 17px; vertical-align: -3px; } -/* 주차 탭(왼쪽) + 작은 달력(오른쪽) */ -.pj-meet-top { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 14px; } -.pj-meet-weeks { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding-top: 9px; } /* "이번 주" 꼬리표 자리 */ +/* 머리 — 왼쪽: 제목·인쇄·삭제 + 주차 탭 / 오른쪽 위: 작은 달력(90% 크기) */ +.pj-meet-headgrid { display: flex; align-items: flex-start; gap: 16px; margin: 8px 0 12px; } +.pj-meet-headleft { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; } +.pj-meet-title { flex-wrap: wrap; } +.pj-meet-title-acts { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; } +.pj-meet-title-acts .material-symbols-outlined { font-size: 16px; margin-right: 3px; } +.pj-meet-weeks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding-top: 9px; } /* "이번 주" 꼬리표 자리 */ .pj-meet-cal { - flex: 0 0 auto; width: 236px; padding: 8px 12px 6px; border: 1px solid var(--pj-border); border-radius: 12px; background: #fff; + flex: 0 0 auto; width: 212px; padding: 7px 10px 5px; border: 1px solid var(--pj-border); border-radius: 11px; background: #fff; } -.pj-meet-cal-head { font-size: 12.5px; font-weight: 800; text-align: center; margin-bottom: 4px; } +.pj-meet-cal-head { font-size: 11.5px; font-weight: 800; text-align: center; margin-bottom: 3px; } .pj-meet-cal-wd, .pj-meet-cal-row { display: grid; grid-template-columns: repeat(7, 1fr); } -.pj-meet-cal-wd span { font-size: 10.5px; font-weight: 700; color: var(--pj-ink-soft); text-align: center; padding: 2px 0; } +.pj-meet-cal-wd span { font-size: 9.5px; font-weight: 700; color: var(--pj-ink-soft); text-align: center; padding: 2px 0; } .pj-meet-cal-row { - position: relative; margin: 1px 0; border-radius: 8px; color: var(--pj-ink); text-decoration: none; cursor: pointer; + position: relative; margin: 1px 0; border-radius: 7px; color: var(--pj-ink); text-decoration: none; cursor: pointer; } .pj-meet-cal-row:hover { background: #f3f4f6; } /* 보고 있는 주 = 영역 표시 */ .pj-meet-cal-row.is-on { background: var(--pj-accent-tint); box-shadow: inset 0 0 0 1.5px var(--pj-accent); } -.pj-meet-cal-d { height: 24px; line-height: 24px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; } +.pj-meet-cal-d { height: 22px; line-height: 22px; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; } .pj-meet-cal-d.is-sat { color: #2563eb; } .pj-meet-cal-d.is-sun { color: #dc2626; } .pj-meet-cal-d.is-out { opacity: .35; } -.pj-meet-cal-d.is-today { position: relative; color: #fff; font-weight: 800; } +.pj-meet-cal-d.is-today { position: relative; color: #fff; font-weight: 800; z-index: 0; } .pj-meet-cal-d.is-today::before { content: ""; position: absolute; inset: 1px 3px; border-radius: 999px; background: var(--pj-accent); z-index: -1; } -.pj-meet-cal-d.is-today { z-index: 0; } .pj-meet-cal-row.is-on .pj-meet-cal-d { font-weight: 700; } .pj-meet-cal-dot { position: absolute; left: -8px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #34a853; } -@media (max-width: 900px) { .pj-meet-top { flex-direction: column; } .pj-meet-cal { align-self: flex-end; } } +@media (max-width: 900px) { .pj-meet-headgrid { flex-direction: column; } .pj-meet-cal { align-self: flex-end; } } @media print { .pj-meet-cal { display: none !important; } } .pj-meet-week { position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 104px; padding: 7px 12px; diff --git a/app/static/project.js b/app/static/project.js index dfe90b3..91dadf8 100644 --- a/app/static/project.js +++ b/app/static/project.js @@ -8637,17 +8637,18 @@ // ── 회의록 매출 자료 갱신 — 주차를 열면 실적 모듈 [매출 업데이트](지난주 월요일 ~ 이번 주 오늘, 백그라운드)를 한 번 더 // 돌리고, 끝나면 이 화면을 서버에서 다시 그려 숫자 칸만 바꿔 끼운다(입력 중인 칸·저장 안 된 글은 건드리지 않는다). - // 같은 주는 10분에 한 번만 자동(새로고침마다 쇼핑몰 API 를 부르지 않게), [매출 갱신] 버튼은 언제나. - // 실적 권한이 없거나 이미 다른 업데이트가 돌면 그 상태를 보여 준다(다른 사람 업데이트면 그게 끝나길 기다려 다시 그림). + // 같은 주는 10분에 한 번만 자동(새로고침마다 쇼핑몰 API 를 부르지 않게). 다른 업데이트가 돌면 그게 끝나길 기다려 다시 그림. + // 상태 줄·[매출 갱신] 버튼은 2026-10-01 요청으로 뺐다(#pj-meet-sync 는 기간만 가진 숨은 요소) — 있으면 쓰고 없으면 조용히. function initMeetingSync(pane) { const box = el("pj-meet-sync"); if (!box) return; - const text = box.querySelector(".pj-meet-sync-text"); + const text = box.querySelector(".pj-meet-sync-text"); // 상태 줄(없을 수 있음) const btn = el("pj-meet-sync-btn"); const KEY = "pj_meet_sync:" + pane.dataset.week; const THROTTLE_MS = 10 * 60 * 1000; let running = false; function say(msg, cls) { + if (!text) return; text.textContent = msg; box.classList.remove("is-running", "is-done", "is-warn"); if (cls) box.classList.add(cls); @@ -8693,7 +8694,7 @@ } catch (_) {} } running = true; - btn.disabled = true; + if (btn) btn.disabled = true; say("쇼핑몰에서 매출 자료를 다시 받는 중…", "is-running"); try { let r = await api("POST", "/performance/api/sync", { from: box.dataset.from, to: box.dataset.to, background: true }); @@ -8716,10 +8717,10 @@ say(e.status === 403 ? "실적 권한이 없어 저장된 실적으로 보여 줍니다" : "매출 갱신 실패: " + e.message, "is-warn"); } finally { running = false; - btn.disabled = false; + if (btn) btn.disabled = false; } } - btn.addEventListener("click", function () { run(true); }); + if (btn) btn.addEventListener("click", function () { run(true); }); run(false); } diff --git a/docs/PROJECT_MODULE.md b/docs/PROJECT_MODULE.md index 4db154c..c24ab9d 100644 --- a/docs/PROJECT_MODULE.md +++ b/docs/PROJECT_MODULE.md @@ -569,7 +569,8 @@ description 을 항상 HTML로 취급하기 때문). 두 번 실행하면 이중 - 화면 `/project/goals/{연도}/meetings/{월}?week={월요일}`(`goal_meeting.html`, `initGoalMeeting`) — 목표 표 월 머리를 누르면 열린다. - **주차 탭**: 그 달과 겹치는 주(월~일, `store.month_weeks`, 1주차 = 1일이 든 주 — 앞뒤 달과 겹치는 주는 양쪽 달에 같은 회의록). 점 = 회의록 있음, "이번 주" 꼬리표. 기본 선택 = 이번 주(그 달이면) 아니면 1주차. ‹ 이전 달 · 다음 달 › 링크, ← 목표 표. - - **작은 달력**(주차 탭 오른쪽, `.pj-meet-cal`): 그 달 월요일 시작 달력, 줄 = 주(월~일) — 보고 있는 주는 영역 표시(테두리·배경), + - 머리 배치: 왼쪽 = 제목·‹이전 달·다음 달›·인쇄·회의록 삭제(제목 줄) + 주차 탭, **오른쪽 위 = 작은 달력**(90% 크기, 212px). + - **작은 달력**(`.pj-meet-cal`): 그 달 월요일 시작 달력, 줄 = 주(월~일) — 보고 있는 주는 영역 표시(테두리·배경), 오늘 동그라미, 토 파랑·일/공휴일(`store.KR_HOLIDAYS`) 빨강, 다른 달 날짜 흐리게, 회의록 있는 주는 왼쪽 점. 줄을 누르면 그 주 회의록 (`?week=`). 날짜 정보는 라우터가 주마다 `days`(d·in·today·wd·hol)로 넘긴다. 인쇄에선 숨김. - **머리 숫자**(`router._meeting_view`): 월 목표 매출(목표 표 숫자 + 단위, 단위가 원/천/만/십만/백만/천만/억이면 원 환산 — @@ -584,7 +585,7 @@ description 을 항상 HTML로 취급하기 때문). 두 번 실행하면 이중 지난 회의록 주가 아직 시작 전이면 "진행 전"(0 으로 보이지 않게), 연결한 쇼핑몰이 실적 모듈에서 사용 중이 아니면(사용 OFF·없는 코드) "실적 미사용" 표시 + 직접 입력. 자동 결과 말풍선 = 쇼핑몰·기간, 0 이면 "그 기간 실적 없음 — [매출 업데이트]" 안내. 쇼핑몰 연결 줄은 목표 금액 아래에 **이번주 실적**(이 주 월요일~오늘, 목표 대비 %)도 보인다. - - **매출 자료 갱신**(`initMeetingSync`, 주차 탭 아래 상태 줄): 주차를 열면 실적 모듈 `POST /performance/api/sync {from: 지난주 월요일, to: 이번 주 일요일·오늘 중 이른 날, background: true}` 로 쇼핑몰에서 매출을 한 번 더 받고(진행 n/m 쇼핑몰·받은 자료), 끝나면 이 화면을 서버에서 다시 받아 **숫자 칸만** 바꿔 끼운다(머리 카드·자동 결과·달성률·이번주 실적 — 입력 중인 칸·직접 입력 결과 칸·저장 안 된 글은 그대로). 같은 주는 브라우저별 10분에 한 번만 자동(sessionStorage `pj_meet_sync:{월요일}` — 줄 추가 등으로 새로고침해도 다시 부르지 않음), [매출 갱신] 버튼은 언제나. 이미 다른 매출 업데이트가 돌면 그 작업이 끝나길 기다린다. 실적 권한이 없으면 저장된 실적으로 보여 준다는 안내, 실패한 쇼핑몰은 이름·상태. 지난주가 아직 오지 않은 주(미래)는 갱신 줄이 없다. + - **매출 자료 갱신**(`initMeetingSync`, **화면 표시 없음** — 2026-10-01 상태 줄·[매출 갱신] 버튼은 요청으로 뺐고 `#pj-meet-sync` 는 기간만 가진 숨은 요소): 주차를 열면 실적 모듈 `POST /performance/api/sync {from: 지난주 월요일, to: 이번 주 일요일·오늘 중 이른 날, background: true}` 로 쇼핑몰에서 매출을 한 번 더 받고(진행 n/m 쇼핑몰·받은 자료), 끝나면 이 화면을 서버에서 다시 받아 **숫자 칸만** 바꿔 끼운다(머리 카드·자동 결과·달성률·이번주 실적 — 입력 중인 칸·직접 입력 결과 칸·저장 안 된 글은 그대로). 같은 주는 브라우저별 10분에 한 번만 자동(sessionStorage `pj_meet_sync:{월요일}` — 줄 추가 등으로 새로고침해도 다시 부르지 않음), [매출 갱신] 버튼은 언제나. 이미 다른 매출 업데이트가 돌면 그 작업이 끝나길 기다린다. 실적 권한이 없으면 저장된 실적으로 보여 준다는 안내, 실패한 쇼핑몰은 이름·상태. 지난주가 아직 오지 않은 주(미래)는 갱신 줄이 없다. - 참석자 · **결정 사항·메모**. 인쇄 버튼(인쇄용 CSS — 사이드바·탭·도구 숨김). - 데이터: `goal_meetings(week_start 월요일 PK, week_target 원, attendees, notes)` · `goal_meeting_items(week_start FK CASCADE, section, section_color, label, content, target_amount, result_amount, status '', done, partial, miss, marketplace_code, carry_from FK SET NULL,