补齐报销待组批财务入口 [09-04-reimbursement-state-gap-finance-view][R1]

这个提交包含在:
2026-09-05 09:14:13 +08:00
父节点 8e0af8235e
当前提交 5fe9f78bc9
共修改 9 个文件,包含 243 行新增和 67 行删除
+12 -1
查看文件
@@ -160,6 +160,7 @@ export function ReimbursementDetailPage() {
const canUploadInvoice = hasPermission(permissions, "invoice.upload");
const canViewOwnInvoice = hasPermission(permissions, "invoice.view_own");
const canDeleteExpense = hasPermission(permissions, "expense.delete_own");
const canManagePaymentBatch = hasPermission(permissions, "payment.batch.manage");
const reimbursementPrecheckQuery = useQuery({
enabled: Boolean(
@@ -956,7 +957,7 @@ export function ReimbursementDetailPage() {
return currentProcessingStage?.detail ?? "查看处理进度";
}
if (detail.status === "approved") {
return "等待财务处理";
return "等待财务组建付款批次";
}
if (detail.status === "paid") {
return "查看付款结果";
@@ -1001,6 +1002,16 @@ export function ReimbursementDetailPage() {
);
}
if (detail.status === "approved" && canManagePaymentBatch) {
return (
<Button asChild data-testid="reimbursement-open-pending-payment-batches">
<Link to={`/payment-batches?view=pending&q=${encodeURIComponent(resolveReimbursementDisplayCode(detail))}`}>
去组建付款批次
</Link>
</Button>
);
}
return null;
})();