{% extends 'ewoooc_base.html' %} {% block title %}EwoooC 商品看板{% endblock %} {% block extra_css %} {% endblock %} {% block ewooo_content %}
{% set overview = competitor_overview | default({}) %}
比對覆蓋率
{{ overview.match_rate | default(0) }}%
{{ overview.matched_count | default(0) | number_format }} / {{ overview.total_active | default(total_products) | number_format }} ACTIVE
PChome 優勢
{{ overview.pchome_advantage_count | default(0) | number_format }}
平均價差 +{{ overview.avg_advantage_gap | default(0) }}%
MOMO 威脅
{{ overview.momo_threat_count | default(0) | number_format }}
MOMO 價格低於 PChome
AI 挑品
{{ overview.ai_pick_count | default(0) | number_format }}
待比對
{{ overview.pending_match_count | default(0) | number_format }}
高價品項優先補抓
資料新鮮度
{{ '已更新' if overview.last_pchome_crawled else '待更新' }}
{{ overview.last_pchome_crawled or '尚無 PChome 抓取紀錄' }}
今日優先銷售
{% if overview.top_picks %}
{% for pick in overview.top_picks %}
{{ pick.name }}
AI {{ (pick.confidence * 100) | round(0) | int if pick.confidence else 0 }}% 證據 {{ pick.evidence_quality | round(0) | int }}% 機會 {{ pick.opportunity_score | round(0) | int }} MOMO ${{ pick.momo_price | int | number_format }} PChome ${{ pick.pchome_price | int | number_format }} +{{ pick.gap_pct | round(1) }}%
{% if pick.missing_evidence %}
{% for evidence in pick.missing_evidence[:2] %} {{ evidence }} {% endfor %}
{% endif %}
{% endfor %}
{% else %}
尚無 AI 挑品
請先讓 PChome 比對與挑品 Agent 累積資料
{% endif %}
價格威脅
{% if overview.top_momo_threats %}
{% for item in overview.top_momo_threats %}
{{ item.name }}
{{ item.gap_pct | round(1) }}% MOMO ${{ item.momo_price | int | number_format }} PChome ${{ item.pchome_price | int | number_format }}
{% endfor %}
{% else %}
尚無明顯威脅
目前沒有 MOMO 低於 PChome 5% 以上的配對商品
{% endif %}
補資料優先
{% if overview.pending_priority %}
{% for item in overview.pending_priority %}
{{ item.name }}
待比對 MOMO ${{ item.momo_price | int | number_format }} {{ item.category or '未分類' }}
{% endfor %}
{% else %}
待比對清單已清空
目前 ACTIVE 商品都有有效 PChome 配對或尚無最新 MOMO 價格
{% endif %}
04 {{ 'AI 挑品清單' if current_filter == 'ai_picks' else '商品列表' }} {% if current_filter == 'ai_picks' %} {{ total_items | number_format }} / {{ ai_pick_list_limit }} 品 {% else %} {{ total_items | number_format }} 筆 {% endif %}
匯出全部 匯出漲跌 {% if current_filter == 'ai_picks' %} 匯出 AI 挑品 {% endif %}
{% if current_filter == 'ai_picks' and ai_pick_summary %}
PICK COUNT
{{ ai_pick_summary.count | number_format }}
目前清單上限 {{ ai_pick_list_limit }} 品
AVG CONFIDENCE
{{ (ai_pick_summary.avg_confidence * 100) | round(0) | int }}%
高信心 {{ ai_pick_summary.high_confidence_count | number_format }} 品
EVIDENCE
{{ ai_pick_summary.avg_evidence_quality | round(0) | int }}%
需補證據 {{ ai_pick_summary.needs_evidence_count | number_format }} 品
AVG GAP
+{{ ai_pick_summary.avg_gap_pct | round(1) }}%
PChome 相對 MOMO 價差
BEST GAP
+{{ ai_pick_summary.max_gap_pct | round(1) }}%
清單內最大價格優勢
EVIDENCE GAP
{% if ai_pick_summary.top_missing_evidence %} {{ ai_pick_summary.top_missing_evidence[0].count | number_format }} {% else %} 0 {% endif %}
{% if ai_pick_summary.top_missing_evidence %} {{ ai_pick_summary.top_missing_evidence[0].label }} {% else %} 暫無待補證據 {% endif %}
{% endif %}
{% if current_filter == 'ai_picks' %} {% endif %} {% for item in items %} {% set product = item.record.product %} {% set competitor = item.pchome_competitor %} {% set decision = item.competitor_decision %} {% set image_url = product.image_url or ('https://m.momoshop.com.tw/moscdn/goods/' ~ product.i_code ~ '_m.webp') %} {% if current_filter == 'ai_picks' %} {% endif %} {% else %} {% endfor %}
分類 商品名稱 MOMO 價格 PChome 價格 競價判讀AI 建議 昨日漲跌 週漲跌 更新時間 上架時間
{{ product.category or '未分類' }}
{{ product.name }} {% set safe_product_url = item.safe_momo_url or '#' %} {{ product.name }}
{% if competitor and competitor.product_name %}
PChome:{{ competitor.product_name }}
{% endif %} {% if item.ai_pick %}
AI挑品 #{{ item.ai_pick.rank }} · 信心 {{ (item.ai_pick.confidence * 100) | round(0) | int }}% · 證據 {{ item.ai_pick.evidence_quality | round(0) | int }}% · 價差 {{ item.ai_pick.gap_pct | round(1) }}%
{% endif %}
{% if competitor and competitor.price %}
${{ competitor.price | int | number_format }}
{% if competitor.match_score %}
match {{ (competitor.match_score * 100) | round(0) | int }}%
{% endif %} {% else %} 待比對 {% endif %}
{{ decision.label }} {% if decision.gap_pct is not none %} MOMO - PChome: {% if decision.gap_amount > 0 %}+{% endif %}${{ decision.gap_amount | round(0) | int | number_format }} / {% if decision.gap_pct > 0 %}+{% endif %}{{ decision.gap_pct | round(1) }}% {% endif %} {{ decision.summary }}
{% if item.ai_pick %}
#{{ item.ai_pick.rank }} 信心 {{ (item.ai_pick.confidence * 100) | round(0) | int }}%
機會 {{ item.ai_pick.opportunity_score | round(0) | int }} 證據 {{ item.ai_pick.evidence_quality | round(0) | int }}% {% if item.ai_pick.margin_rate is not none %} 毛利 {{ item.ai_pick.margin_rate | round(1) }}% {% endif %}
{{ item.ai_pick.reason }}
{% if item.ai_pick.missing_evidence %}
{% for evidence in item.ai_pick.missing_evidence[:3] %} {{ evidence }} {% endfor %}
{% endif %}
{% else %} 尚無建議理由 {% endif %}
{% if item.yesterday_diff > 0 %} ▲ +{{ item.yesterday_diff | abs | int | number_format }} {% elif item.yesterday_diff < 0 %} ▼ -{{ item.yesterday_diff | abs | int | number_format }} {% else %} -- {% endif %} {% set week_diff = item.stats.get('7d_diff', 0) %} {% if week_diff > 0 %} +{{ week_diff | int | number_format }} {% elif week_diff < 0 %} -{{ week_diff | abs | int | number_format }} {% else %} -- {% endif %} {{ item.record.timestamp.strftime('%m-%d %H:%M') if item.record.timestamp else '--' }} {{ item.safe_created_at.strftime('%m-%d %H:%M') if item.safe_created_at else '--' }}
{% if search_query %} 找不到與「{{ search_query }}」相關的商品 {% else %} 目前沒有符合條件的商品 {% endif %}
{% if total_pages > 1 %}
{% if current_page > 1 %} 上一頁 {% endif %} 第 {{ current_page }} / {{ total_pages }} 頁 {% if current_page < total_pages %} 下一頁 {% endif %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}