{% extends 'ewoooc_base.html' %} {% block title %}當日業績看板 - WOOO TECH{% endblock %} {% block extra_css %} {% endblock %} {% block ewooo_content %}
{% if error %}

{{ error }}

請前往 系統設定頁面 匯入當日業績 Excel 檔案。

{% else %} {% if calendar_data %}
{{ calendar_data.month_name }} 業績行事曆
週一
週二
週三
週四
週五
週六
週日
{% for week in calendar_data.weeks %} {% for day in week %}
{{ day.day }}
{% if day.is_holiday %}
🎊 {{ day.holiday_name }}
{% endif %}
{% if day.has_data %}
{% if day.dod_direction == 'up' %} {% elif day.dod_direction == 'down' %} {% endif %} {{ day.dod_percent }}%
業績 ${{ '{:,.0f}'.format(day.revenue) }}
毛利 ${{ '{:,.0f}'.format(day.profit) }} ({{ '{:.1f}%'.format(day.margin_rate) }})
SKU {{ '{:,.0f}'.format(day.sku_count) }}
客單 ${{ '{:,.0f}'.format(day.avg_price) }}
銷量 {{ '{:,.0f}'.format(day.qty) }}
{% endif %}
{% endfor %} {% endfor %}
{% endif %}
{% if is_month_view %} 月度總計模式 顯示 {{ calendar_data.month_name }} 所有天數的加總 {% else %} 單日模式 顯示 {{ selected_date }} 的業績 查看月度總計 {% endif %}
{% if is_month_view and month_kpi %} 累計 {{ month_kpi.days_with_data }} 天 {% endif %}
總業績
{% if is_month_view and month_kpi %}
${{ "{:,.0f}".format(month_kpi.total_revenue) }}
月度累計
{% else %}
${{ "{:,.0f}".format(current.total_revenue) }}
DoD {{ "{:+.1f}%".format(dod.total_revenue) }} WoW {{ "{:+.1f}%".format(wow.total_revenue) }}
{% endif %}
總成本
{% if is_month_view and month_kpi %}
${{ "{:,.0f}".format(month_kpi.total_cost) }}
月度累計
{% else %}
${{ "{:,.0f}".format(current.total_cost) }}
DoD {{ "{:+.1f}%".format(dod.total_cost) }} WoW {{ "{:+.1f}%".format(wow.total_cost) }}
{% endif %}
毛利
{% if is_month_view and month_kpi %}
${{ "{:,.0f}".format(month_kpi.gross_margin) }}
月度累計 毛利率 {{ "{:.1f}%".format(month_kpi.margin_rate) }}
{% else %}
${{ "{:,.0f}".format(current.gross_margin) }}
DoD {{ "{:+.1f}%".format(dod.gross_margin) }} WoW {{ "{:+.1f}%".format(wow.gross_margin) }}
{% endif %}
SKU 數
{% if is_month_view and month_kpi %}
{{ "{:,.0f}".format(month_kpi.sku_count) }}
月度不重複商品
{% else %}
{{ "{:,.0f}".format(current.sku_count) }}
DoD {{ "{:+.1f}%".format(dod.sku_count) }} WoW {{ "{:+.1f}%".format(wow.sku_count) }}
{% endif %}
客單價
{% if is_month_view and month_kpi %}
${{ "{:,.0f}".format(month_kpi.avg_price) }}
月度平均
{% else %}
${{ "{:,.0f}".format(current.avg_price) }}
DoD {{ "{:+.1f}%".format(dod.avg_price) }} WoW {{ "{:+.1f}%".format(wow.avg_price) }}
{% endif %}
總銷量
{% if is_month_view and month_kpi %}
{{ "{:,.0f}".format(month_kpi.total_qty) }}
月度累計
{% else %}
{{ "{:,.0f}".format(current.total_qty) }}
DoD {{ "{:+.1f}%".format(dod.total_qty) }} WoW {{ "{:+.1f}%".format(wow.total_qty) }}
{% endif %}
每日業績趨勢(近 30 天)
日成長率 (DoD %)
週成長對比 (WoW)
商品 Top 10
{% if marketing_data %}
行銷活動業績貢獻
折扣活動 Top 10
{% if marketing_data.discount %}
{% else %}

暫無折扣活動數據

{% endif %}
折價券活動 Top 10
{% if marketing_data.coupon %}
{% else %}

暫無折價券活動數據

{% endif %}
{% endif %}
分類業績明細
{% for cat in categories %} {% endfor %}
分類 廠商 總業績 總成本 毛利 毛利率 總銷量 SKU 數 平均單價
{{ cat.category }} {{ cat.vendor if cat.vendor else '-' }} ${{ "{:,.0f}".format(cat.revenue) }} ${{ "{:,.0f}".format(cat.cost if cat.cost else 0) }} ${{ "{:,.0f}".format(cat.profit if cat.profit else 0) }} {{ "{:.1f}%".format(cat.margin_rate) }} {{ "{:,.0f}".format(cat.qty if cat.qty else 0) }} {{ cat.sku_count if cat.sku_count else 0 }} ${{ "{:,.0f}".format(cat.avg_price) }}
{% endif %}