From 9df6a2d7920b84480603b2c03d4364f73561fac7 Mon Sep 17 00:00:00 2001
From: linkeyu <798648091@qq.com>
Date: Mon, 27 Jul 2026 14:56:55 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=9A=E5=B1=95=E7=A4=BA?=
=?UTF-8?q?=E6=AF=94=E4=BB=B7=E8=AE=B0=E5=BD=95=E6=98=AF=E5=90=A6=E4=B8=8B?=
=?UTF-8?q?=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
在比价记录的省金额列后新增是否下单列,并同步接口类型。
---
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 be8cd7f..22a8503 100644
--- a/src/app/(main)/comparison-records/page.tsx
+++ b/src/app/(main)/comparison-records/page.tsx
@@ -298,6 +298,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 307284f..7dfb737 100644
--- a/src/lib/types.ts
+++ b/src/lib/types.ts
@@ -449,6 +449,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;
--
2.52.0