R73-A3 优化轻交互 OCR 前端处理

这个提交包含在:
2026-04-28 21:14:00 +08:00
父节点 b7c018922c
当前提交 03f384fdfe
共修改 8 个文件,包含 227 行新增和 12 行删除
@@ -4,6 +4,7 @@ import { StatusBadge } from "../../components/common/StatusBadge";
import { TableSkeleton } from "../../components/common/TableSkeleton";
import { Pagination } from "../../components/common/Pagination";
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../components/ui/dropdown-menu";
import { formatInvoiceOcrErrorMessage } from "../../lib/invoiceOcr";
export type InvoiceListCardProps = {
listQuery: UseQueryResult<InvoicePoolListResponse, Error>;
@@ -102,7 +103,7 @@ export function InvoiceListCard({
) : item.status === "ocr_failed" ? (
<span className="flex items-center gap-1.5 text-red-600">
<span className="size-1.5 rounded-full bg-red-500" />
识别失败 <span className="text-zinc-400 text-xs">({item.ocrLastError || "未知错误"})</span>
识别失败 <span className="text-zinc-400 text-xs">({formatInvoiceOcrErrorMessage(item.ocrLastError)})</span>
</span>
) : (
<span className="text-zinc-400 text-xs">解析成功</span>