From 4ca4fc9135c27305d4bf4f33fd44764386786606 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 12 Jan 2026 04:12:22 -0800 Subject: [PATCH] =?UTF-8?q?fix(mining-admin-web):=20=E9=80=82=E9=85=8Dplan?= =?UTF-8?q?ting-ledger=E5=90=8E=E7=AB=AF=E8=BF=94=E5=9B=9E=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.5 --- .../users/components/planting-ledger.tsx | 28 ++++++++----------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/frontend/mining-admin-web/src/features/users/components/planting-ledger.tsx b/frontend/mining-admin-web/src/features/users/components/planting-ledger.tsx index 382d076c..5097d899 100644 --- a/frontend/mining-admin-web/src/features/users/components/planting-ledger.tsx +++ b/frontend/mining-admin-web/src/features/users/components/planting-ledger.tsx @@ -138,41 +138,35 @@ export function PlantingLedger({ accountSequence }: PlantingLedgerProps) { - 订单号 + 认种ID 认种数量 - 金额 - 省市 + 单棵算力 + 总算力 状态 - 创建时间 - 支付时间 + 认种日期 {data.items.length === 0 ? ( - + 暂无认种记录 ) : ( - data.items.map((item) => ( - - {item.orderNo} + data.items.map((item: any) => ( + + {item.originalAdoptionId || item.orderNo} {formatNumber(item.treeCount)} - {formatDecimal(item.totalAmount, 2)} - - {item.selectedProvince || '-'} / {item.selectedCity || '-'} - + {formatDecimal(item.contributionPerTree || '0', 4)} + {formatDecimal(item.totalContribution || item.totalAmount || '0', 4)} {plantingStatusLabels[item.status] || item.status} - {formatDateTime(item.createdAt)} - - - {item.paidAt ? formatDateTime(item.paidAt) : '-'} + {item.adoptionDate ? formatDateTime(item.adoptionDate) : (item.createdAt ? formatDateTime(item.createdAt) : '-')} ))