|
|
@@ -17,7 +17,7 @@
|
|
|
* * ⛔ 合同文档上传路由 ⇒ 合同文档区只给应备项说明。
|
|
|
*/
|
|
|
import { useEffect, useMemo, useRef, useState, type FormEvent, type KeyboardEvent as ReactKeyboardEvent, type ReactNode } from "react";
|
|
|
-import { ArrowLeft, Building2, CalendarPlus, Check, FileSignature, FileText, LoaderCircle, MapPin, PencilLine, RefreshCcw, RefreshCw, ScrollText, Upload, UserCheck, UsersRound, Wrench, X } from "lucide-react";
|
|
|
+import { ArrowLeft, Building2, CalendarPlus, Check, FileSignature, FileText, Gauge, LoaderCircle, MapPin, PencilLine, RefreshCcw, RefreshCw, ScrollText, Upload, UsersRound, Wrench, X } from "lucide-react";
|
|
|
import { Link, useLocation, useParams } from "react-router";
|
|
|
import { Button } from "../components/ui/button";
|
|
|
import { Input } from "../components/ui/input";
|
|
|
@@ -559,17 +559,20 @@ export function CustomerWorkspacePage() {
|
|
|
|
|
|
<dl className="customer-record-metrics" aria-label="客户业务摘要">
|
|
|
<div>
|
|
|
- <dt><UserCheck size={16} aria-hidden="true" />在用分账号</dt>
|
|
|
+ <dt><UsersRound size={16} aria-hidden="true" />分账号</dt>
|
|
|
<dd>
|
|
|
- <strong>{metricCount(accounts.data ? accountRows.filter((row) => row.status === "in_use").length : undefined, accounts.loading, accounts.error)}</strong>
|
|
|
- <small>{(accounts.data?.total ?? 0) > accountRows.length ? "当前已加载账号中在用" : "服务状态为在用"}</small>
|
|
|
+ <strong>{metricCount(accounts.data?.total, accounts.loading, accounts.error)}</strong>
|
|
|
+ <small>
|
|
|
+ 在用分账号{(accounts.data?.total ?? 0) > accountRows.length ? "(已加载)" : ""}{" "}
|
|
|
+ {metricCount(accounts.data ? accountRows.filter((row) => row.status === "in_use").length : undefined, accounts.loading, accounts.error)}
|
|
|
+ </small>
|
|
|
</dd>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <dt><UsersRound size={16} aria-hidden="true" />分账号</dt>
|
|
|
+ <dt><Gauge size={16} aria-hidden="true" />分账号订阅额度</dt>
|
|
|
<dd>
|
|
|
- <strong>{metricCount(accounts.data?.total, accounts.loading, accounts.error)}</strong>
|
|
|
- <small>订阅额度 <TextCell value={customer?.quota_cents != null ? `${customer.quota_cents} 席` : undefined} /></small>
|
|
|
+ <strong><TextCell value={customer?.quota_cents != null ? `${customer.quota_cents} 席` : undefined} /></strong>
|
|
|
+ <small>按在用订阅合计</small>
|
|
|
</dd>
|
|
|
</div>
|
|
|
<div>
|