{% extends "erp_base.html" %} {% block head_extra %} {% endblock %} {% block topbar_after_logout %}{% include "project/_help_btn.html" %}{% endblock %} {% block content %} {# 연간 목표 — 좌측 사이드바 "목표" → 연도. 스프레드시트처럼 한 표에 ① 매출(목표·실적·달성)·로아스(목표·실적) 월별 숫자 ② 업무 영역(상품·마케팅·컨텐츠·유통 …)별 연간·월별 글. 입력·구조 변경은 Pro user 이상(칸별 즉시 저장, project.js initGoals), 나머지는 보기만. DB: project_db 013 (goal_years·goal_metrics·goal_areas·goal_rows·goal_cells). #}
{{ goal_year }}년 목표가 아직 없습니다.
{% if pj_pro %}만들면 가장 가까운 이전 연도의 업무 영역 구성을 그대로 가져옵니다(처음이면 상품·마케팅·컨텐츠·유통).
{% endif %}| {# 연간·월·분기 칸도 머리 칸 오른쪽 끝을 끌어 너비 조절(data-col: y · m1~m12 · q1~q4) #} | 연간 | {% for h, hmonths, hm, hname in quarters %} {# 월 이름을 누르면 그 달 주간 회의록(/goals/{연도}/meetings/{월}) #} {% for mo in hmonths %}{{ mo }}월 | {% endfor %} {# 분기 칸 — 머리 칸 아무 곳이나 누르면 그 분기의 월 칸을 접었다 편다(localStorage pj_goal_fold_q). 아이콘은 엑셀 열 그룹처럼 네모 안 − (펼침, 누르면 접힘) / + (접힘, 누르면 펼침). 분기 색(data-h → --qc)은 머리 위 색 띠(월 가늘게·분기 두껍게)와 분기 열 옅은 음영 #}{{ hname }} | {% endfor %}|
|---|---|---|---|---|
| 매출 | 목표 | {% for h, hmonths, hm, hname in quarters %} {% for mo in hmonths %}{{ num_cell("sales", "target", sm.target_label, mo) }}{% endfor %} | {% endfor %} | |
| 실적 | {% for h, hmonths, hm, hname in quarters %} {% for mo in hmonths %}{{ num_cell("sales", "actual", sm.actual_label, mo) }}{% endfor %} | {% endfor %} | ||
| 달성 | {% for h, hmonths, hm, hname in quarters %} {% for mo in hmonths %} | {% endfor %} | {% endfor %} | |
| 로아스 | 목표 | {# 로아스 연간·분기 = 월 매출로 가중한 평균(광고비 = 매출 ÷ 로아스로 환산) — project.js recompute #}{% for h, hmonths, hm, hname in quarters %} {% for mo in hmonths %}{{ num_cell("roas", "target", rm.target_label, mo) }}{% endfor %} | {% endfor %} | |
| 실적 | {% for h, hmonths, hm, hname in quarters %} {% for mo in hmonths %}{{ num_cell("roas", "actual", rm.actual_label, mo) }}{% endfor %} | {% endfor %} | ||
| {# 구역 메뉴(색·위로·아래로·줄 추가·영역 삭제) — 우클릭 또는 ⋮ 버튼(키보드 Tab → Enter/Space, 터치 탭). project.js areaMenuItems #} {{ area.name }} {% if pj_pro %}{% endif %} | {% endif %} {# 항목 칸(2열) — 같은 항목 칸으로 묶인 줄(016 label_cont)은 묶음 첫 줄이 rowspan 으로 덮는다 #} {% if not row.label_cont %}1 %} rowspan="{{ row.label_span }}"{% endif %} data-label-span="{{ row.label_span or 1 }}"> {{ row.label }} {% if pj_pro %}{% endif %} | {% endif %} {# 칸 배치는 router._goal_area_layout — 엑셀식 사각형 병합(colspan·rowspan), 가려진 칸은 없다 #} {% for c in row.layout %} {% set editable = pj_pro and (c.kind != 'quarter' or (board.halves and (c.m not in (15, 16) or board.quarters))) %} {% set merged = c.span > 1 or c.rspan > 1 %} 1 %} colspan="{{ c.span }}" style="--span: {{ c.span }}"{% endif %}{% if c.rspan > 1 %} rowspan="{{ c.rspan }}"{% endif %}>
{%- if editable -%}
{{ c.html|safe }}
{%- else -%}
{{ c.html|safe }}
{%- endif -%}
|
{% endfor %}