R102/A1-A8 优化报销主流程
这个提交包含在:
@@ -8,6 +8,7 @@ import { mapApiErrorMessage } from "../api/errorMessages";
|
||||
import { useAuth } from "../auth/AuthContext";
|
||||
import { CardSkeleton } from "../components/common/CardSkeleton";
|
||||
import { Button } from "../components/ui/button";
|
||||
import { resolveReimbursementDisplayCode } from "../lib/reimbursementDisplay";
|
||||
|
||||
function formatDate(value: string | null) {
|
||||
return value || "-";
|
||||
@@ -85,6 +86,7 @@ export function ReimbursementPrintPage() {
|
||||
const detail = detailQuery.data;
|
||||
const totalAmount = detail.totalAmount ?? "0.00";
|
||||
const qrValue = `https://oa.hyinda.com/reimbursements/${detail.id}`;
|
||||
const displayCode = resolveReimbursementDisplayCode(detail);
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-zinc-100 print:bg-white">
|
||||
@@ -131,7 +133,7 @@ export function ReimbursementPrintPage() {
|
||||
</div>
|
||||
<div className="text-right">
|
||||
<div className="text-sm text-zinc-500">表单号</div>
|
||||
<div className="mt-1 text-xl font-semibold text-zinc-900">{detail.formNumber ?? detail.id}</div>
|
||||
<div className="mt-1 text-xl font-semibold text-zinc-900">{displayCode}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -169,7 +171,7 @@ export function ReimbursementPrintPage() {
|
||||
</div>
|
||||
<div className="flex justify-between gap-4">
|
||||
<span className="text-zinc-500">表单编号</span>
|
||||
<span className="font-medium text-zinc-900">{detail.formNumber ?? detail.id}</span>
|
||||
<span className="font-medium text-zinc-900">{displayCode}</span>
|
||||
</div>
|
||||
<div className="flex justify-between gap-4">
|
||||
<span className="text-zinc-500">总金额</span>
|
||||
|
||||
在新工单中引用
屏蔽一个用户