fix(project): 회의록 머리 배치 — 인쇄·삭제는 제목 옆, 달력은 오른쪽 위 90% 크기, 매출 갱신 상태 줄 제거

- 인쇄·회의록 삭제 버튼을 제목 줄(‹이전 달·다음 달› 뒤)로
- 작은 달력을 오른쪽 위(예전 버튼 자리)로 올리고 90% 크기(212px)
- 매출 자료 갱신 상태 줄·[매출 갱신] 버튼 제거 — 주차를 열면 표시 없이 다시 받아 숫자만 갱신(10분에 한 번)
- 캐시 버전 20261001h, 문서 갱신

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 12:13:57 +09:00
parent 2dab20f718
commit 4efe7cef58
10 changed files with 75 additions and 79 deletions
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %} {% extends "erp_base.html" %}
{% block head_extra %} {% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261001g" /> <link rel="stylesheet" href="/static/project.css?v=20261001h" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" /> <link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %} {% endblock %}
@@ -21,31 +21,24 @@
{% with current_pid = 0, side_active = "goals" %}{% include "project/_side.html" %}{% endwith %} {% with current_pid = 0, side_active = "goals" %}{% include "project/_side.html" %}{% endwith %}
<section class="pj-main"> <section class="pj-main">
<div class="pj-section-head pj-meet-head"> {# 머리 — 왼쪽: 제목·이전/다음 달·인쇄·회의록 삭제 + 주차 탭 / 오른쪽 위: 작은 달력 #}
<div class="pj-meet-title"> <div class="pj-meet-headgrid">
<a class="pj-meet-back" href="/project/goals/{{ goal_year }}" title="{{ goal_year }}년 목표로"><span class="material-symbols-outlined">arrow_back</span></a> <div class="pj-meet-headleft">
<h2>{{ goal_year }}년 {{ goal_month }}월 주간 회의록</h2> <div class="pj-meet-title">
{% set pm = goal_month - 1 if goal_month > 1 else 12 %}{% set py = goal_year if goal_month > 1 else goal_year - 1 %} <a class="pj-meet-back" href="/project/goals/{{ goal_year }}" title="{{ goal_year }}년 목표로"><span class="material-symbols-outlined">arrow_back</span></a>
{% set nm = goal_month + 1 if goal_month < 12 else 1 %}{% set ny = goal_year if goal_month < 12 else goal_year + 1 %} <h2>{{ goal_year }}년 {{ goal_month }}월 주간 회의록</h2>
<a class="pj-btn pj-btn-sm" href="/project/goals/{{ py }}/meetings/{{ pm }}">‹ {{ pm }}월</a> {% set pm = goal_month - 1 if goal_month > 1 else 12 %}{% set py = goal_year if goal_month > 1 else goal_year - 1 %}
<a class="pj-btn pj-btn-sm" href="/project/goals/{{ ny }}/meetings/{{ nm }}">{{ nm }}월 ›</a> {% set nm = goal_month + 1 if goal_month < 12 else 1 %}{% set ny = goal_year if goal_month < 12 else goal_year + 1 %}
</div> <a class="pj-btn pj-btn-sm" href="/project/goals/{{ py }}/meetings/{{ pm }}">‹ {{ pm }}월</a>
{% if meeting and is_admin %} <a class="pj-btn pj-btn-sm" href="/project/goals/{{ ny }}/meetings/{{ nm }}">{{ nm }}월 ›</a>
<div class="pj-goal-head-acts"> {% if meeting %}
<button type="button" class="pj-btn" id="pj-meet-print"><span class="material-symbols-outlined">print</span> 인쇄</button> <span class="pj-meet-title-acts">
<button type="button" class="pj-btn pj-btn-danger" id="pj-meet-del">회의록 삭제</button> <button type="button" class="pj-btn pj-btn-sm" id="pj-meet-print"><span class="material-symbols-outlined">print</span> 인쇄</button>
</div> {% if is_admin %}<button type="button" class="pj-btn pj-btn-sm pj-btn-danger" id="pj-meet-del">회의록 삭제</button>
{% elif meeting %} {% else %}<span class="pj-goal-note">회의록은 관리자만 입력할 수 있습니다.</span>{% endif %}
<div class="pj-goal-head-acts"> </span>
<button type="button" class="pj-btn" id="pj-meet-print"><span class="material-symbols-outlined">print</span> 인쇄</button> {% endif %}
<span class="pj-goal-note">회의록은 관리자만 입력할 수 있습니다.</span> </div>
</div>
{% endif %}
</div>
<div class="pj-view pj-meet-pane" id="pj-meet-pane" data-week="{{ week }}" data-year="{{ goal_year }}"
data-month="{{ goal_month }}" data-admin="{{ 'true' if is_admin else 'false' }}">
<div class="pj-meet-top">
{# 주차 탭 — 주 = 월요일~일요일, 1주차 = 1일이 들어 있는 주. 점 = 회의록 있음 #} {# 주차 탭 — 주 = 월요일~일요일, 1주차 = 1일이 들어 있는 주. 점 = 회의록 있음 #}
<nav class="pj-meet-weeks" aria-label="주차"> <nav class="pj-meet-weeks" aria-label="주차">
{% for w in weeks %} {% for w in weeks %}
@@ -57,19 +50,23 @@
</a> </a>
{% endfor %} {% endfor %}
</nav> </nav>
{# 작은 달력 — 월요일 시작(주 = 월~일), 보고 있는 주는 영역 표시, 줄을 누르면 그 주 회의록. 점 = 회의록 있음 #}
<div class="pj-meet-cal" aria-label="{{ goal_month }}월 달력">
<div class="pj-meet-cal-head">{{ goal_year }}년 {{ goal_month }}월</div>
<div class="pj-meet-cal-wd"><span>월</span><span>화</span><span>수</span><span>목</span><span>금</span><span class="is-sat">토</span><span class="is-sun">일</span></div>
{% for w in weeks %}
<a class="pj-meet-cal-row{% if w.start == week %} is-on{% endif %}{% if w.now %} is-now{% endif %}" href="?week={{ w.start }}"
title="{{ w.n }}주차 ({{ w.label }}){% if w.has %} · 회의록 있음{% endif %}">
{% for d in w.days %}<span class="pj-meet-cal-d{% if not d.in %} is-out{% endif %}{% if d.today %} is-today{% endif %}{% if d.wd == 5 %} is-sat{% endif %}{% if d.wd == 6 or d.hol %} is-sun{% endif %}"{% if d.hol %} title="{{ d.hol }}"{% endif %}>{{ d.d }}</span>{% endfor %}
{% if w.has %}<i class="pj-meet-cal-dot"></i>{% endif %}
</a>
{% endfor %}
</div>
</div> </div>
{# 작은 달력 — 월요일 시작(주 = 월~일), 보고 있는 주는 영역 표시, 줄을 누르면 그 주 회의록. 점 = 회의록 있음 #}
<div class="pj-meet-cal" aria-label="{{ goal_month }}월 달력">
<div class="pj-meet-cal-head">{{ goal_year }}년 {{ goal_month }}월</div>
<div class="pj-meet-cal-wd"><span>월</span><span>화</span><span>수</span><span>목</span><span>금</span><span class="is-sat">토</span><span class="is-sun">일</span></div>
{% for w in weeks %}
<a class="pj-meet-cal-row{% if w.start == week %} is-on{% endif %}{% if w.now %} is-now{% endif %}" href="?week={{ w.start }}"
title="{{ w.n }}주차 ({{ w.label }}){% if w.has %} · 회의록 있음{% endif %}">
{% for d in w.days %}<span class="pj-meet-cal-d{% if not d.in %} is-out{% endif %}{% if d.today %} is-today{% endif %}{% if d.wd == 5 %} is-sat{% endif %}{% if d.wd == 6 or d.hol %} is-sun{% endif %}"{% if d.hol %} title="{{ d.hol }}"{% endif %}>{{ d.d }}</span>{% endfor %}
{% if w.has %}<i class="pj-meet-cal-dot"></i>{% endif %}
</a>
{% endfor %}
</div>
</div>
<div class="pj-view pj-meet-pane" id="pj-meet-pane" data-week="{{ week }}" data-year="{{ goal_year }}"
data-month="{{ goal_month }}" data-admin="{{ 'true' if is_admin else 'false' }}">
{% if not meetings_enabled %} {% if not meetings_enabled %}
<div class="pj-empty">주간 회의록이 아직 준비되지 않았습니다(DB 마이그레이션 015 필요).</div> <div class="pj-empty">주간 회의록이 아직 준비되지 않았습니다(DB 마이그레이션 015 필요).</div>
@@ -85,15 +82,9 @@
{% else %} {% else %}
{% set h = head %} {% set h = head %}
{% set edit = is_admin %} {% set edit = is_admin %}
{# 매출 자료 갱신 — 주차를 열면 실적 모듈 매출 업데이트(지난주 월요일 ~ 이번 주 오늘)를 한 번 더 돌리고 숫자를 다시 그린다 {# 매출 자료 갱신 — 주차를 열면 표시 없이 실적 모듈 매출 업데이트(지난주 월요일 ~ 이번 주 오늘)를 한 번 더 돌리고
(project.js initMeetingSync, 같은 주는 10분에 한 번, [매출 갱신] 버튼은 언제나) #} 숫자 칸만 다시 그린다(project.js initMeetingSync, 같은 주는 10분에 한 번). 상태 줄은 2026-10-01 요청으로 뺐다. #}
{% if h.perf and sync_from %} {% if h.perf and sync_from %}<div id="pj-meet-sync" hidden data-from="{{ sync_from }}" data-to="{{ sync_to }}"></div>{% endif %}
<div class="pj-meet-sync" id="pj-meet-sync" data-from="{{ sync_from }}" data-to="{{ sync_to }}">
<span class="material-symbols-outlined">sync</span>
<span class="pj-meet-sync-text">저장된 실적으로 보여 주는 중</span>
<button type="button" class="pj-btn pj-btn-sm" id="pj-meet-sync-btn" title="{{ sync_from[5:] | replace('-', '/') }} ~ {{ sync_to[5:] | replace('-', '/') }} 매출을 쇼핑몰에서 다시 받습니다">매출 갱신</button>
</div>
{% endif %}
{# ── 머리 — 월 목표 대비 누적·남은 주 필요 매출 / 전주 리뷰 / 금주 목표 ── #} {# ── 머리 — 월 목표 대비 누적·남은 주 필요 매출 / 전주 리뷰 / 금주 목표 ── #}
<div class="pj-meet-kpis"> <div class="pj-meet-kpis">
<div class="pj-meet-kpi"> <div class="pj-meet-kpi">
@@ -255,5 +246,5 @@
{% include "project/_side_modals.html" %} {% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %} {% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20261001g" defer></script> <script src="/static/project.js?v=20261001h" defer></script>
{% endblock %} {% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %} {% extends "erp_base.html" %}
{% block head_extra %} {% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261001g" /> <link rel="stylesheet" href="/static/project.css?v=20261001h" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" /> <link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %} {% endblock %}
@@ -207,5 +207,5 @@
{% include "project/_side_modals.html" %} {% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %} {% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20261001g" defer></script> <script src="/static/project.js?v=20261001h" defer></script>
{% endblock %} {% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %} {% extends "erp_base.html" %}
{% block head_extra %} {% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261001g" /> <link rel="stylesheet" href="/static/project.css?v=20261001h" />
<link rel="stylesheet" href="/static/project-help.css?v=20260926v" /> <link rel="stylesheet" href="/static/project-help.css?v=20260926v" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" /> <link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %} {% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %} {% extends "erp_base.html" %}
{% block head_extra %} {% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261001g" /> <link rel="stylesheet" href="/static/project.css?v=20261001h" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" /> <link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %} {% endblock %}
@@ -104,5 +104,5 @@
{% include "project/_side_modals.html" %} {% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %} {% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20261001g" defer></script> <script src="/static/project.js?v=20261001h" defer></script>
{% endblock %} {% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %} {% extends "erp_base.html" %}
{% block head_extra %} {% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261001g" /> <link rel="stylesheet" href="/static/project.css?v=20261001h" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" /> <link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %} {% endblock %}
@@ -100,5 +100,5 @@
"today": {{ today | tojson }} "today": {{ today | tojson }}
} }
</script> </script>
<script src="/static/project.js?v=20261001g" defer></script> <script src="/static/project.js?v=20261001h" defer></script>
{% endblock %} {% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %} {% extends "erp_base.html" %}
{% block head_extra %} {% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261001g" /> <link rel="stylesheet" href="/static/project.css?v=20261001h" />
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host --> <!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" /> <link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
<!-- 타임라인 vis-timeline — self-host --> <!-- 타임라인 vis-timeline — self-host -->
@@ -496,5 +496,5 @@
</script> </script>
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script> <script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
<script src="/static/project.js?v=20261001g" defer></script> <script src="/static/project.js?v=20261001h" defer></script>
{% endblock %} {% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %} {% extends "erp_base.html" %}
{% block head_extra %} {% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261001g" /> <link rel="stylesheet" href="/static/project.css?v=20261001h" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" /> <link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %} {% endblock %}
@@ -70,5 +70,5 @@
{% include "project/_side_modals.html" %} {% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %} {% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20261001g" defer></script> <script src="/static/project.js?v=20261001h" defer></script>
{% endblock %} {% endblock %}
+15 -12
View File
@@ -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-pane { flex: 1 1 auto; min-height: 0; overflow: auto; }
.pj-meet-title { display: flex; align-items: center; gap: 8px; } .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 { display: inline-flex; color: var(--pj-ink-soft); border-radius: 6px; padding: 2px; }
.pj-meet-back:hover { background: #f1f2f4; color: var(--pj-ink); } .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-goal-head-acts .pj-btn .material-symbols-outlined { font-size: 17px; vertical-align: -3px; }
/* 주차 탭(왼쪽) + 작은 달력(오른쪽) */ /* 머리 — 왼쪽: 제목·인쇄·삭제 + 주차 탭 / 오른쪽 위: 작은 달력(90% 크기) */
.pj-meet-top { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 14px; } .pj-meet-headgrid { display: flex; align-items: flex-start; gap: 16px; margin: 8px 0 12px; }
.pj-meet-weeks { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding-top: 9px; } /* "이번 주" 꼬리표 자리 */ .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 { .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, .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 { .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: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-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-sat { color: #2563eb; }
.pj-meet-cal-d.is-sun { color: #dc2626; } .pj-meet-cal-d.is-sun { color: #dc2626; }
.pj-meet-cal-d.is-out { opacity: .35; } .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 { .pj-meet-cal-d.is-today::before {
content: ""; position: absolute; inset: 1px 3px; border-radius: 999px; background: var(--pj-accent); z-index: -1; 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-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; } .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; } } @media print { .pj-meet-cal { display: none !important; } }
.pj-meet-week { .pj-meet-week {
position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 104px; padding: 7px 12px; position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 104px; padding: 7px 12px;
+7 -6
View File
@@ -8637,17 +8637,18 @@
// ── 회의록 매출 자료 갱신 — 주차를 열면 실적 모듈 [매출 업데이트](지난주 월요일 ~ 이번 주 오늘, 백그라운드)를 한 번 더 // ── 회의록 매출 자료 갱신 — 주차를 열면 실적 모듈 [매출 업데이트](지난주 월요일 ~ 이번 주 오늘, 백그라운드)를 한 번 더
// 돌리고, 끝나면 이 화면을 서버에서 다시 그려 숫자 칸만 바꿔 끼운다(입력 중인 칸·저장 안 된 글은 건드리지 않는다). // 돌리고, 끝나면 이 화면을 서버에서 다시 그려 숫자 칸만 바꿔 끼운다(입력 중인 칸·저장 안 된 글은 건드리지 않는다).
// 같은 주는 10분에 한 번만 자동(새로고침마다 쇼핑몰 API 를 부르지 않게), [매출 갱신] 버튼은 언제나. // 같은 주는 10분에 한 번만 자동(새로고침마다 쇼핑몰 API 를 부르지 않게). 다른 업데이트가 돌면 그게 끝나길 기다려 다시 그림.
// 실적 권한이 없거나 이미 다른 업데이트가 돌면 그 상태를 보여 준다(다른 사람 업데이트면 그게 끝나길 기다려 다시 그림). // 상태 줄·[매출 갱신] 버튼은 2026-10-01 요청으로 뺐다(#pj-meet-sync 는 기간만 가진 숨은 요소) — 있으면 쓰고 없으면 조용히.
function initMeetingSync(pane) { function initMeetingSync(pane) {
const box = el("pj-meet-sync"); const box = el("pj-meet-sync");
if (!box) return; 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 btn = el("pj-meet-sync-btn");
const KEY = "pj_meet_sync:" + pane.dataset.week; const KEY = "pj_meet_sync:" + pane.dataset.week;
const THROTTLE_MS = 10 * 60 * 1000; const THROTTLE_MS = 10 * 60 * 1000;
let running = false; let running = false;
function say(msg, cls) { function say(msg, cls) {
if (!text) return;
text.textContent = msg; text.textContent = msg;
box.classList.remove("is-running", "is-done", "is-warn"); box.classList.remove("is-running", "is-done", "is-warn");
if (cls) box.classList.add(cls); if (cls) box.classList.add(cls);
@@ -8693,7 +8694,7 @@
} catch (_) {} } catch (_) {}
} }
running = true; running = true;
btn.disabled = true; if (btn) btn.disabled = true;
say("쇼핑몰에서 매출 자료를 다시 받는 중…", "is-running"); say("쇼핑몰에서 매출 자료를 다시 받는 중…", "is-running");
try { try {
let r = await api("POST", "/performance/api/sync", { from: box.dataset.from, to: box.dataset.to, background: true }); 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"); say(e.status === 403 ? "실적 권한이 없어 저장된 실적으로 보여 줍니다" : "매출 갱신 실패: " + e.message, "is-warn");
} finally { } finally {
running = false; 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); run(false);
} }
+3 -2
View File
@@ -569,7 +569,8 @@ description 을 항상 HTML로 취급하기 때문). 두 번 실행하면 이중
- 화면 `/project/goals/{연도}/meetings/{월}?week={월요일}`(`goal_meeting.html`, `initGoalMeeting`) — 목표 표 월 머리를 누르면 열린다. - 화면 `/project/goals/{연도}/meetings/{월}?week={월요일}`(`goal_meeting.html`, `initGoalMeeting`) — 목표 표 월 머리를 누르면 열린다.
- **주차 탭**: 그 달과 겹치는 주(월~일, `store.month_weeks`, 1주차 = 1일이 든 주 — 앞뒤 달과 겹치는 주는 양쪽 달에 같은 회의록). - **주차 탭**: 그 달과 겹치는 주(월~일, `store.month_weeks`, 1주차 = 1일이 든 주 — 앞뒤 달과 겹치는 주는 양쪽 달에 같은 회의록).
점 = 회의록 있음, "이번 주" 꼬리표. 기본 선택 = 이번 주(그 달이면) 아니면 1주차. ‹ 이전 달 · 다음 달 › 링크, ← 목표 표. 점 = 회의록 있음, "이번 주" 꼬리표. 기본 선택 = 이번 주(그 달이면) 아니면 1주차. ‹ 이전 달 · 다음 달 › 링크, ← 목표 표.
- **작은 달력**(주차 탭 오른쪽, `.pj-meet-cal`): 그 달 월요일 시작 달력, 줄 = 주(월~일) — 보고 있는 주는 영역 표시(테두리·배경), - 머리 배치: 왼쪽 = 제목·‹이전 달·다음 달›·인쇄·회의록 삭제(제목 줄) + 주차 탭, **오른쪽 위 = 작은 달력**(90% 크기, 212px).
- **작은 달력**(`.pj-meet-cal`): 그 달 월요일 시작 달력, 줄 = 주(월~일) — 보고 있는 주는 영역 표시(테두리·배경),
오늘 동그라미, 토 파랑·일/공휴일(`store.KR_HOLIDAYS`) 빨강, 다른 달 날짜 흐리게, 회의록 있는 주는 왼쪽 점. 줄을 누르면 그 주 회의록 오늘 동그라미, 토 파랑·일/공휴일(`store.KR_HOLIDAYS`) 빨강, 다른 달 날짜 흐리게, 회의록 있는 주는 왼쪽 점. 줄을 누르면 그 주 회의록
(`?week=`). 날짜 정보는 라우터가 주마다 `days`(d·in·today·wd·hol)로 넘긴다. 인쇄에선 숨김. (`?week=`). 날짜 정보는 라우터가 주마다 `days`(d·in·today·wd·hol)로 넘긴다. 인쇄에선 숨김.
- **머리 숫자**(`router._meeting_view`): 월 목표 매출(목표 표 숫자 + 단위, 단위가 원/천/만/십만/백만/천만/억이면 원 환산 — - **머리 숫자**(`router._meeting_view`): 월 목표 매출(목표 표 숫자 + 단위, 단위가 원/천/만/십만/백만/천만/억이면 원 환산 —
@@ -584,7 +585,7 @@ description 을 항상 HTML로 취급하기 때문). 두 번 실행하면 이중
지난 회의록 주가 아직 시작 전이면 "진행 전"(0 으로 보이지 않게), 연결한 쇼핑몰이 실적 모듈에서 사용 중이 아니면(사용 OFF·없는 코드) 지난 회의록 주가 아직 시작 전이면 "진행 전"(0 으로 보이지 않게), 연결한 쇼핑몰이 실적 모듈에서 사용 중이 아니면(사용 OFF·없는 코드)
"실적 미사용" 표시 + 직접 입력. 자동 결과 말풍선 = 쇼핑몰·기간, 0 이면 "그 기간 실적 없음 — [매출 업데이트]" 안내. "실적 미사용" 표시 + 직접 입력. 자동 결과 말풍선 = 쇼핑몰·기간, 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 — 사이드바·탭·도구 숨김). - 참석자 · **결정 사항·메모**. 인쇄 버튼(인쇄용 CSS — 사이드바·탭·도구 숨김).
- 데이터: `goal_meetings(week_start 월요일 PK, week_target 원, attendees, notes)` · `goal_meeting_items(week_start FK CASCADE, section, - 데이터: `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, section_color, label, content, target_amount, result_amount, status '', done, partial, miss, marketplace_code, carry_from FK SET NULL,