Expose PChome rescore review metrics

This commit is contained in:
OoO
2026-05-24 21:12:27 +08:00
parent 0fff09a15c
commit dcabebbcf2
15 changed files with 58 additions and 11 deletions

View File

@@ -359,6 +359,10 @@
<span>需單位價覆核</span>
<strong class="momo-mono">{{ comp_coverage.unit_comparable_count | default(0) | number_format }}</strong>
</div>
<div>
<span>重算可採用待審</span>
<strong class="momo-mono">{{ comp_coverage.rescore_accepted_count | default(0) | number_format }}</strong>
</div>
<div>
<span>人工採用</span>
<strong class="momo-mono">{{ comp_coverage.manual_accept_count | default(0) | number_format }}</strong>

View File

@@ -42,7 +42,8 @@
<div class="dashboard-kpi-label momo-mono">比價覆核</div>
<div class="dashboard-kpi-value momo-mono is-warning">{{ overview.review_queue_count | default(0) | number_format }}</div>
<div class="dashboard-kpi-sub momo-mono">
<a class="dashboard-kpi-sub-link" href="{{ url_for('dashboard.index', filter='pchome_review', category=current_category, q=search_query, sort_by='pchome_review', order='desc') }}">需單位價覆核 {{ overview.unit_comparable_count | default(0) | number_format }}</a>
<a class="dashboard-kpi-sub-link" href="{{ url_for('dashboard.index', filter='pchome_review', category=current_category, q=search_query, review_status='rescore_accepted', sort_by='pchome_review', order='desc') }}">重算可採用 {{ overview.rescore_accepted_count | default(0) | number_format }}</a>
· <a class="dashboard-kpi-sub-link" href="{{ url_for('dashboard.index', filter='pchome_review', category=current_category, q=search_query, review_status='unit_comparable', sort_by='pchome_review', order='desc') }}">需單位價 {{ overview.unit_comparable_count | default(0) | number_format }}</a>
· 待補抓 {{ overview.pending_match_count | default(0) | number_format }}
</div>
</div>
@@ -61,7 +62,7 @@
<div class="dashboard-backfill-label momo-mono">PCHOME MATCH BACKFILL</div>
<div class="dashboard-backfill-title">待比對補抓產線</div>
<div class="dashboard-backfill-meta momo-mono">
待補抓 {{ overview.pending_match_count | default(0) | number_format }} · 覆核 {{ overview.review_queue_count | default(0) | number_format }} · 單位價 {{ overview.unit_comparable_count | default(0) | number_format }}
待補抓 {{ overview.pending_match_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 }}
</div>
</div>
<div class="dashboard-backfill-progress" aria-hidden="true">
@@ -300,7 +301,7 @@
{% if current_filter == 'ai_picks' %}
{{ total_items | number_format }} / {{ ai_pick_list_limit }} 品
{% elif current_filter == 'pchome_review' %}
{{ total_items | number_format }} / {{ overview.review_queue_count | default(0) | number_format }} 待處理
{% if review_total_is_estimated %}約 {% endif %}{{ total_items | number_format }} / {{ overview.review_queue_count | default(0) | number_format }} 待處理
{% else %}
{{ total_items | number_format }} 筆
{% endif %}

View File

@@ -149,6 +149,8 @@
<strong class="momo-mono">{{ coverage.pending | default(0) | number_format }}</strong>
<span>需單位價覆核</span>
<strong class="momo-mono">{{ coverage.unit_comparable_count | default(0) | number_format }}</strong>
<span>重算可採用待審</span>
<strong class="momo-mono">{{ coverage.rescore_accepted_count | default(0) | number_format }}</strong>
<span>人工採用</span>
<strong class="momo-mono">{{ coverage.manual_accept_count | default(0) | number_format }}</strong>
<span>人工否決</span>