diff --git a/client/src/pages/ReimbursementDetailPage.tsx b/client/src/pages/ReimbursementDetailPage.tsx index f8967f57..addae9de 100644 --- a/client/src/pages/ReimbursementDetailPage.tsx +++ b/client/src/pages/ReimbursementDetailPage.tsx @@ -12,6 +12,10 @@ import { import { useAuth } from "../auth/AuthContext"; import { hasPermission } from "../auth/permissions"; import { PageHeader } from "../components/common/PageHeader"; +import { Button } from "../components/ui/button"; +import { Card } from "../components/ui/card"; +import { Input } from "../components/ui/input"; +import { Textarea } from "../components/ui/textarea"; export function ReimbursementDetailPage() { const { reimbursementId = "" } = useParams(); @@ -78,17 +82,17 @@ export function ReimbursementDetailPage() { if (!reimbursementId) { return ( -
+

缺少 reimbursementId 参数。

-
+ ); } if (detailQuery.isLoading) { return ( -
+

加载报销详情中...

-
+ ); } @@ -102,12 +106,12 @@ export function ReimbursementDetailPage() { : "加载报销详情失败"; return ( -
+

{message}

- - 返回报销列表 - -
+ + ); } @@ -120,76 +124,81 @@ export function ReimbursementDetailPage() { title={`报销详情 ${detail.formNumber ?? detail.id}`} subtitle={`状态:${detail.status}`} actions={ - - 返回列表 - + } /> -
+
报销ID:{detail.id}
报销日期:{detail.reimbursementDate ?? "-"}
金额:{detail.totalAmount ?? "-"}
提交人:{detail.submitter?.name ?? "-"}
报销人:{detail.owner?.name ?? "-"}
说明:{detail.description || "-"}
-
+ -
+

可执行动作

{actionError ? ( -

+

{actionError}

) : null}
- +
-
+

撤回报销

-