diff --git a/apps/admin-web/src/lib/constants.ts b/apps/admin-web/src/lib/constants.ts index b9f1799..bfb5a3c 100644 --- a/apps/admin-web/src/lib/constants.ts +++ b/apps/admin-web/src/lib/constants.ts @@ -34,8 +34,8 @@ export const ORDER_STATUS_COLORS: Record = { export const STORE_STATUS_LABELS: Record = { OPEN: '营业中', - PAUSED: '暂停', - CLOSED: '已关闭', + PAUSED: '临时闭店', + CLOSED: '永久关闭', }; export const STORE_AUDIT_STATUS_LABELS: Record = { diff --git a/apps/admin-web/src/pages/StoresPage.tsx b/apps/admin-web/src/pages/StoresPage.tsx index b82c781..8d58e8b 100644 --- a/apps/admin-web/src/pages/StoresPage.tsx +++ b/apps/admin-web/src/pages/StoresPage.tsx @@ -262,7 +262,20 @@ type StoreRow = { createdAt: string; cityRef?: { name: string; code: string }; partner?: { companyName: string }; - account?: { phone: string; name: string; status: string }; + account?: { + phone: string; + name: string; + status: string; + bankAccountName?: string | null; + bankAccountNo?: string | null; + bankBranch?: string | null; + }; + openTime?: string | null; + closeTime?: string | null; + openTime2?: string | null; + closeTime2?: string | null; + avgPrice?: number | null; + settlementRate?: number; category?: { id: string; name: string; parentId?: string | null } | null; }; @@ -525,6 +538,11 @@ export default function StoresPage() { address: d.address, district: d.district, settlementRate: d.settlementRate != null ? Number(d.settlementRate) * 100 : 60, + openTime: d.openTime || '10:00', + closeTime: d.closeTime || '22:00', + openTime2: d.openTime2 || undefined, + closeTime2: d.closeTime2 || undefined, + avgPrice: d.avgPrice != null ? Number(d.avgPrice) : undefined, }); setDrawerOpen(true); }}>详情 @@ -640,9 +658,39 @@ export default function StoresPage() { {String(detail.rejectReason || '—')} ) : null} {String(detail.province)}{String(detail.cityName)}{String(detail.district)}{String(detail.address)} + + {[ + detail.openTime && detail.closeTime + ? `${String(detail.openTime)}-${String(detail.closeTime)}` + : null, + detail.openTime2 && detail.closeTime2 + ? `${String(detail.openTime2)}-${String(detail.closeTime2)}` + : null, + ] + .filter(Boolean) + .join(',') || '—'} + + + {detail.avgPrice != null ? `¥${Number(detail.avgPrice).toFixed(0)}` : '—'} + {detail.settlementRate != null ? `${Math.round(Number(detail.settlementRate) * 100)}%` : '60%'} + + {detail.account && typeof detail.account === 'object' && 'bankAccountName' in detail.account + ? String((detail.account as { bankAccountName?: string | null }).bankAccountName || '—') + : '—'} + + + {detail.account && typeof detail.account === 'object' && 'bankBranch' in detail.account + ? String((detail.account as { bankBranch?: string | null }).bankBranch || '—') + : '—'} + + + {detail.account && typeof detail.account === 'object' && 'bankAccountNo' in detail.account + ? String((detail.account as { bankAccountNo?: string | null }).bankAccountNo || '—') + : '—'} + {String(detail.redeemCount ?? 0)}