{% extends 'ewoooc_base.html' %} {% block title %}營運成長報表 - EwoooC{% endblock %} {% block extra_css %} {% endblock %} {% macro ga_chart_snapshot(labels, values, mode='currency') %}
{% for label in labels %} {% set val = values[loop.index0]|default(0) %} {{ label }} {% if mode == 'pct' %}{{ "{:+.1f}%".format(val) }} {% else %}${{ "{:,.0f}".format(val) }}{% endif %} {% endfor %}
{% endmacro %} {% block ewooo_content %}
{% include 'components/_analysis_report_tabs.html' %} {# ── Page head ──────────────────────────────────── #}

營運成長策略報表

用月趨勢評估成長缺口、價差壓力與毛利品質。

數據更新至 {{ chart_data.labels[-1] if chart_data.labels else '-' }}
{% if is_empty_state|default(false) %}

尚未匯入可分析的業績資料

{{ empty_message|default('先匯入月度業績資料,再評估成長、AOV 與毛利缺口。') }}

{% endif %} {# ── KPI Row (3 cards) ──────────────────────────── #}
YTD 本年度累計業績 ({{ kpi.current_year }})
${{ "{:,.0f}".format(kpi.ytd_revenue) }}
YoY Growth {{ "{:+.1f}%".format(kpi.ytd_growth) }} vs 去年同期
最新月平均單價
${{ "{:,.0f}".format(kpi.recent_aov) }}
月結銷售額 ÷ 銷量
總銷量
{{ "{:,.0f}".format(kpi.total_orders) }}
全時期累計件數
{# ── Charts Row 1 ──────────────────────────────── #}
月營收與年增率 (Revenue & YoY)
{{ ga_chart_snapshot(chart_data.labels, chart_data.revenue, 'currency') }}
月增率分析 (MoM)
{{ ga_chart_snapshot(chart_data.labels, chart_data.mom, 'pct') }}
{# ── Charts Row 2 ──────────────────────────────── #}
平均單價趨勢
{{ ga_chart_snapshot(chart_data.labels, chart_data.aov, 'currency') }}
獲利能力分析 (Gross Margin %)
{{ ga_chart_snapshot(chart_data.labels, chart_data.margin_rate, 'pct') }}
MOMO 低價壓力趨勢
{{ ga_chart_snapshot(chart_data.labels, chart_data.competitor_gap_pct, 'pct') }}
PChome 價格作戰可用度
{% set coverage = chart_data.competitor_coverage | default({}) %} {% set decision_rate = coverage.decision_support_rate | default(coverage.decision_ready_rate | default(0)) | float %} {% set match_rate = coverage.match_rate | default(0) | float %} {% set stale_count = coverage.stale_matches | default(0) | int %} {% set pending_count = coverage.pending | default(0) | int %} {% set review_count = coverage.actionable_review_count | default(coverage.rescore_accepted_count | default(0)) | int %} {% set action_count = pending_count + review_count %}
可直接決策 {{ "{:.1f}%".format(decision_rate) }}
同款覆蓋 {{ "{:.1f}%".format(match_rate) }}
價格需刷新 {{ stale_count | number_format }}
待補 / 待確認 {{ action_count | number_format }}
下一步 {% if decision_rate < 30 %} 先補齊高業績商品的 MOMO 對應

可決策覆蓋偏低,先提高同款覆蓋再判斷價格策略。

{% elif stale_count > 0 %} 先刷新過期價格

避免用舊價格誤判,刷新後再看 MOMO 低價壓力。

{% elif action_count > 0 %} 先處理待補與候選確認

把候選轉成可用比價,再進入售價、券與組合檢查。

{% else %} 可進入價格策略檢查

先防守 MOMO 低價壓力,再放大 PChome 價格優勢。

{% endif %} 前往今日作戰
{% endblock %} {% block extra_js %} {% endblock %}