{% extends "ewoooc_base.html" %} {% block title %}ABC 分析詳情 - {{ info.title if info else '資料準備中' }} - EwoooC{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% if loading_state|default(false) %}

數據準備中

正在重新載入業績分析快取,稍後會自動重試。

回業績分析
{% else %}
ABC Analysis

{{ info.title }}

{{ info.desc }}

總營收 ${{ "{:,.0f}".format(total_revenue|default(0)) }} {{ items|length }} 個商品

商品明細

{{ target_class }} 類排序
{% if cols.pid %}{% endif %} {% if cols.brand %}{% endif %} {% if cols.vendor %}{% endif %} {% if cols.cat %}{% endif %} {% if cols.cost or cols.profit %}{% endif %} {% if cols.qty %}{% endif %} {% if cols.qty %}{% endif %} {% if cols.qty %}{% endif %} {% for item in items %} {% if cols.pid %} {% endif %} {% if cols.brand %} {% endif %} {% if cols.vendor %} {% endif %} {% if cols.cat %} {% endif %} {% if cols.cost or cols.profit %} {% endif %} {% if cols.qty %} {% endif %} {% endfor %}
排名商品 ID商品名稱品牌廠商名稱分類毛利率平均單價銷售數量建議補貨銷售金額 累積營收佔比
{{ loop.index }}{{ item[cols.pid] }}
{{ item[cols.name] | e }}
{{ item[cols.brand] }}{{ item[cols.vendor] }}{{ item[cols.cat] }} {% set margin = item['calculated_margin_rate'] %} {{ "{:.1f}%".format(margin) }} ${{ "{:,.0f}".format(item['avg_unit_price']) }} {{ "{:,.0f}".format(item[cols.qty]) }} {% if item['suggested_restock'] > 0 %} {{ "{:,.0f}".format(item['suggested_restock']) }} {% else %} 建議清倉 {% endif %} ${{ "{:,.0f}".format(item[cols.amount]) }} {{ "{:.2f}%".format(item['cumulative_pct']) }}
{% endif %}
{% endblock %} {% block extra_js %} {% if loading_state|default(false) %} {% else %} {% endif %} {% endblock %}