{% extends 'ewoooc_base.html' %} {% block title %}EwoooC 商品看板{% endblock %} {% block extra_css %} {% endblock %} {% block ewooo_content %}
{% set overview = competitor_overview | default({}) %}
決策支援覆蓋率
{{ overview.decision_support_rate | default(overview.decision_ready_rate | default(0)) }}%
{{ overview.decision_support_count | default(overview.decision_ready_count | default(0)) | number_format }} / {{ overview.total_active | default(total_products) | number_format }} ACTIVE · 精準可用 {{ overview.decision_ready_rate | default(0) }}% · 型錄可比 {{ overview.catalog_comparable_count | default(0) | number_format }} · 單位價 {{ overview.unit_comparable_count | default(0) | number_format }} · 身份 {{ overview.identity_coverage_rate | default(overview.match_rate | default(0)) }}% · 過期 {{ overview.stale_match_count | default(0) | number_format }} · 未設到期 {{ overview.unknown_freshness_count | default(0) | number_format }}
PChome 價格壓力
{{ overview.pchome_advantage_count | default(0) | number_format }}
PChome 較低 · 平均價差 +{{ 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.review_queue_count | default(0) | number_format }}
重算待覆核 {{ overview.rescore_accepted_count | default(0) | number_format }} · 需單位價 {{ overview.unit_comparable_count | default(0) | number_format }} · 人工閉環 {{ overview.manual_closed_count | default(0) | number_format }} · 待補抓 {{ overview.pending_match_count | default(0) | number_format }}
最新有效價格抓取
{{ overview.last_pchome_crawled or '待刷新' }}
新鮮率 {{ overview.fresh_match_rate | default(0) }}% · 待刷新 {{ overview.stale_match_count | default(0) | number_format }} · 未設到期 {{ overview.unknown_freshness_count | default(0) | number_format }}
PCHOME MATCH BACKFILL
PChome 比價補強產線
待刷新 {{ overview.stale_match_count | default(0) | number_format }} · 未設到期 {{ overview.unknown_freshness_count | default(0) | number_format }} · 待補抓 {{ overview.pending_match_count | default(0) | number_format }} · 待處理覆核 {{ overview.review_queue_count | default(0) | number_format }} · 人工閉環 {{ overview.manual_closed_count | default(0) | number_format }} · 單位價 {{ overview.unit_comparable_count | default(0) | number_format }}
讀取狀態中 --
今日優先銷售
{% 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.review_queue %}
{% for item in overview.review_queue %}
{{ item.name }}
{{ item.status_label }} MOMO ${{ item.momo_price | int | number_format }} {% if item.candidate_pc_price %} 候選 PChome ${{ item.candidate_pc_price | int | number_format }} {% endif %} {% if item.best_match_score %} match {{ (item.best_match_score * 100) | round(0) | int }}% {% endif %}
{{ item.action_label }}
{% if item.decision_envelope %} {% set envelope = item.decision_envelope %} {% set guardrails = envelope.guardrails or {} %}
{{ envelope.severity or 'P4' }} {{ guardrails.data_quality or 'partial' }} {% if guardrails.can_auto_execute == false %} HITL {% endif %}
{% endif %} {% if item.diagnostic_reasons %}
{% for reason in item.diagnostic_reasons[:4] %} {{ reason.label }} {% endfor %}
{% endif %} {% if item.unit_comparison and item.unit_comparison.summary %}
{{ item.unit_comparison.summary }}
{% endif %} {% if item.unit_price_insight and item.unit_price_insight.summary %}
{{ item.unit_price_insight.summary }}
{% endif %}
{% endfor %}
查看高優先覆核隊列 {% elif 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 覆核項目
{% endif %}
04 {{ 'AI 挑品清單' if current_filter == 'ai_picks' else ('比價覆核隊列' if current_filter == 'pchome_review' else '商品列表') }} {% if current_filter == 'ai_picks' %} {{ total_items | number_format }} / {{ ai_pick_list_limit }} 品 {% elif current_filter == 'pchome_review' %} {% if review_total_is_estimated %}約 {% endif %}{{ total_items | number_format }} / {{ overview.review_queue_count | default(0) | number_format }} 待處理 {% else %} {{ total_items | number_format }} 筆 {% endif %}
匯出全部 匯出漲跌 {% if current_filter == 'ai_picks' %} 匯出 AI 挑品 {% elif current_filter == 'pchome_review' %} 匯出覆核 {% 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 == 'pchome_review' %}
{% for option in review_status_options %} {{ option.label }} {{ option.count | number_format }} {% endfor %}
{% endif %}
{% if current_filter == 'ai_picks' %} {% elif current_filter == 'pchome_review' %} {% endif %} {% for item in items %} {% set product = item.record.product %} {% set competitor = item.pchome_competitor %} {% set decision = item.competitor_decision %} {% set match_status = item.pchome_match_status %} {% set image_url = product.image_url or ('https://m.momoshop.com.tw/moscdn/goods/' ~ product.i_code ~ '_m.webp') %} {% if current_filter == 'ai_picks' %} {% elif current_filter == 'pchome_review' %} {% 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 }}
{% elif item.pchome_match_attempt and item.pchome_match_attempt.best_competitor_product_name %}
候選:{{ item.pchome_match_attempt.best_competitor_product_name }}
{% if item.pchome_match_attempt.competitor_product_url %} PChome 候選 {{ item.pchome_match_attempt.best_competitor_product_id }} {% endif %} {% if item.pchome_match_attempt.diagnostic_reasons %}
{% for reason in item.pchome_match_attempt.diagnostic_reasons[:3] %} {{ reason.label }} {% endfor %}
{% endif %} {% 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 %} {% elif item.pchome_match_attempt and item.pchome_match_attempt.best_competitor_price and match_status.label == '需單位價比較' %}
${{ item.pchome_match_attempt.best_competitor_price | int | number_format }}
候選價,需單位換算
{% else %} {{ match_status.label | default('尚未搜尋') }} {% if match_status.detail %}
{{ match_status.detail }}
{% endif %} {% if match_status.summary %}
{{ match_status.summary }}
{% endif %} {% 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 %}
{% set review = item.pchome_review %} {% set envelope = review.decision_envelope if review else {} %} {% set guardrails = envelope.guardrails if envelope else {} %}
{{ review.status_label if review else match_status.label }} {% if review and review.best_match_score %} match {{ (review.best_match_score * 100) | round(0) | int }}% {% endif %}
{{ review.action_label if review else decision.summary }}
{% if envelope %}
{{ envelope.severity or 'P4' }} {{ guardrails.data_quality or 'partial' }} {% if guardrails.can_auto_execute == false %} HITL {% endif %} {% if envelope.decision_id %} trace {% endif %}
{% endif %} {% if review %} {% if review.candidate_pc_name or review.candidate_pc_price %}
{% if review.candidate_pc_name %} {{ review.candidate_pc_name[:42] }} {% endif %} {% if review.candidate_pc_price %} 候選 ${{ review.candidate_pc_price | number_format }} {% endif %}
{% endif %} {% if review.diagnostic_reasons %}
{% for reason in review.diagnostic_reasons[:4] %} {{ reason.label }} {% endfor %}
{% endif %} {% if review.catalog_review_guidance %}
覆核建議:{{ review.catalog_review_guidance.lane_label }} · {{ review.catalog_review_guidance.action_hint }}
{% endif %}
{% if review.candidate_count %} {{ review.candidate_count }} 筆候選 {% endif %} {% if review.candidate_pc_id %} PChome {{ review.candidate_pc_id }} {% endif %} {% if review.attempted_at %} {{ review.attempted_at }} {% endif %}
{% if review.unit_comparison and review.unit_comparison.summary %}
{{ review.unit_comparison.summary }}
{% endif %} {% if review.unit_price_insight and review.unit_price_insight.summary %}
{{ review.unit_price_insight.summary }}
{% endif %}
{% if review.candidate_pc_id and review.candidate_pc_price %} {% endif %}
{% 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 %}