From bea35fb70749a8bfc3a1c004664d4e0b5a4f371f Mon Sep 17 00:00:00 2001 From: linkeyu Date: Mon, 27 Jul 2026 17:33:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=AF=94=E4=BB=B7=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E4=B8=AD=E5=B1=95=E7=A4=BA=E6=98=AF=E5=90=A6=E4=B8=8B=E5=8D=95?= =?UTF-8?q?=20(#88)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 改动说明 - 在“省”列后新增“是否下单”列 - 使用“已下单/未下单”标签展示 - 同步补充前端接口类型 ## 验证 - Next.js 生产构建和类型检查通过 --------- Co-authored-by: linkeyu <798648091@qq.com> Reviewed-on: https://gitea.shaguabijia.com/WonderableAI/shaguabijia-admin-web/pulls/88 Co-authored-by: linkeyu Co-committed-by: linkeyu --- src/app/(main)/comparison-records/page.tsx | 8 ++++++++ src/lib/types.ts | 1 + 2 files changed, 9 insertions(+) diff --git a/src/app/(main)/comparison-records/page.tsx b/src/app/(main)/comparison-records/page.tsx index 4abd3c4..e0dd817 100644 --- a/src/app/(main)/comparison-records/page.tsx +++ b/src/app/(main)/comparison-records/page.tsx @@ -333,6 +333,14 @@ export default function ComparisonRecordsPage() { 0 ? '#3f8600' : '#999' }}>{yuan(r.saved_amount_cents)} ), }, + { + title: '是否下单', + dataIndex: 'ordered', + width: 84, + render: (ordered: boolean) => ( + {ordered ? '已下单' : '未下单'} + ), + }, { title: 'LLM', dataIndex: 'llm_call_count', width: 56, render: (v) => v ?? '-' }, { title: 'TOKEN', diff --git a/src/lib/types.ts b/src/lib/types.ts index aa213ba..6444a9e 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -457,6 +457,7 @@ export interface ComparisonRecordListItem { source_price_cents: number | null; best_price_cents: number | null; saved_amount_cents: number | null; + ordered: boolean; total_ms: number | null; step_count: number | null; llm_call_count: number | null;