import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs" import { DashboardShell } from "@/components/dashboard-shell" import { DashboardHeader } from "@/components/dashboard-header" import { Button } from "@/components/ui/button" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Badge } from "@/components/ui/badge" import { ArrowLeft, Edit, AlertTriangle, FileText } from "lucide-react" import Link from "next/link" import { AddPrintBatchDialog } from "@/components/outfits/add-print-batch-dialog" import { ExportCardsDialog } from "@/components/outfits/export-cards-dialog" // Mock data for the outfit details const outfitData = { OFT001: { id: "OFT001", name: "经典原创服装", type: "常规", rarity: "稀有", description: "洛天依的经典原创服装,简约而不失时尚,适合各种场合穿着。", releaseDate: "2023-10-15", status: "已发布", activatedCount: 1245, printedCount: 2000, image: "/placeholder.svg?height=300&width=300", batches: [ { id: "B001", date: "2023-09-01", quantity: 1000, startId: "OFT001-0001", endId: "OFT001-1000" }, { id: "B002", date: "2023-12-15", quantity: 1000, startId: "OFT001-1001", endId: "OFT001-2000" }, ], }, OFT002: { id: "OFT002", name: "夏日泳装", type: "季节限定", rarity: "史诗", description: "专为夏季设计的清凉泳装,让洛天依在夏日活动中更加亮眼。", releaseDate: "2023-06-01", status: "已发布", activatedCount: 876, printedCount: 1500, image: "/placeholder.svg?height=300&width=300", batches: [{ id: "B003", date: "2023-05-10", quantity: 1500, startId: "OFT002-0001", endId: "OFT002-1500" }], }, OFT003: { id: "OFT003", name: "冬日圣诞服", type: "节日限定", rarity: "史诗", description: "圣诞节特别设计的节日服装,温暖而喜庆,让洛天依陪你度过欢乐的圣诞。", releaseDate: "2023-12-01", status: "已发布", activatedCount: 1032, printedCount: 2000, image: "/placeholder.svg?height=300&width=300", batches: [{ id: "B004", date: "2023-11-15", quantity: 2000, startId: "OFT003-0001", endId: "OFT003-2000" }], }, OFT004: { id: "OFT004", name: "校园制服", type: "常规", rarity: "稀有", description: "清新可爱的校园风格制服,展现洛天依青春活力的一面。", releaseDate: "2024-01-15", status: "已发布", activatedCount: 1567, printedCount: 3000, image: "/placeholder.svg?height=300&width=300", batches: [ { id: "B005", date: "2024-01-05", quantity: 2000, startId: "OFT004-0001", endId: "OFT004-2000" }, { id: "B006", date: "2024-02-10", quantity: 1000, startId: "OFT004-2001", endId: "OFT004-3000" }, ], }, OFT005: { id: "OFT005", name: "演唱会礼服", type: "特别版", rarity: "传说", description: "为重要演唱会设计的华丽礼服,尽显洛天依的优雅与魅力。", releaseDate: "", status: "未发布", activatedCount: 0, printedCount: 1000, image: "/placeholder.svg?height=300&width=300", batches: [{ id: "B007", date: "2024-03-20", quantity: 1000, startId: "OFT005-0001", endId: "OFT005-1000" }], }, } export default function OutfitDetailPage({ params }: { params: { id: string } }) { const outfit = outfitData[params.id as keyof typeof outfitData] if (!outfit) { return (

服装不存在

找不到ID为 {params.id} 的服装

) } const isPublished = outfit.status === "已发布" return (
{!isPublished && ( )}
服装详情 批次管理 数据分析
服装预览
{outfit.name}
{outfit.status}
服装详情

服装类型

{outfit.type}

稀有度

{outfit.rarity}

发布日期

{outfit.releaseDate || "尚未发布"}

激活数量

{outfit.activatedCount}

印刷总数

{outfit.printedCount}

剩余库存

{outfit.printedCount - outfit.activatedCount}

服装描述

{outfit.description}

{isPublished && (

该服装已发布,基本属性不可修改。您仍可以增加印刷数量。

)}
印刷批次 管理服装卡牌的印刷批次和卡牌ID
{outfit.batches.map((batch) => ( ))}
批次ID 创建日期 数量 起始ID 结束ID 操作
{batch.id} {batch.date} {batch.quantity} {batch.startId} {batch.endId}
数据分析 查看服装卡牌的激活数据和使用情况

激活数据图表

地区分布图表

时间趋势图表

) }