diff --git a/client/src/api/portal.ts b/client/src/api/portal.ts index dc2b58bc..319ef97d 100644 --- a/client/src/api/portal.ts +++ b/client/src/api/portal.ts @@ -71,6 +71,20 @@ export type PortalHomePayload = { } | null; peopleLifecycle: { onboardingCount: number; offboardingCount: number; assetReturnPendingCount: number; href: string } | null; + roleCapabilities?: { + canSubmitApplications: boolean; + canApproveTasks: boolean; + canUseFinance: boolean; + canManageSystem: boolean; + canViewTeam: boolean; + isAdminOnly: boolean; + }; + financeSummary?: { + pendingBatchCount: number; + failedItemCount: number; + riskCount: number; + href: string; + } | null; adoptionSummary: | { activeEmployeeCount: number; diff --git a/client/src/api/workflow.ts b/client/src/api/workflow.ts index f5f11f18..b7ebaf17 100644 --- a/client/src/api/workflow.ts +++ b/client/src/api/workflow.ts @@ -203,6 +203,7 @@ export type WorkflowApproverListResponse = { export type WorkflowTaskListQuery = { status?: "pending" | "completed" | "rejected" | "cancelled" | "skipped"; + entityType?: "reimbursement" | "leave" | "purchase_request" | "travel_request"; page?: number; pageSize?: number; }; diff --git a/client/src/pages/ApOperationsPage.tsx b/client/src/pages/ApOperationsPage.tsx index 2029c11e..d68e05f5 100644 --- a/client/src/pages/ApOperationsPage.tsx +++ b/client/src/pages/ApOperationsPage.tsx @@ -480,7 +480,7 @@ export function ApOperationsPage() { }), onSuccess: (response, format) => { downloadBlob(response.blob, response.filename ?? `ap-operations.${format}`); - toast.success(`AP 运营数据已导出为 ${format.toUpperCase()}`); + toast.success(`财务处理数据已导出为 ${format.toUpperCase()}`); }, onError: (error) => { toast.error(resolveErrorMessage(error, "导出失败")); @@ -533,14 +533,14 @@ export function ApOperationsPage() { }; if (summaryQuery.isLoading && paymentBatchesQuery.isLoading && riskFlagsQuery.isLoading) { - return
加载 AP 运营工作台...
; + return
加载财务工作台...
; } return (
+
+
+
采购状态
+
+
+
+
总金额
+
{totalAmountPreview}
+
+
+
当前节点
+
{detail.pendingWorkflow?.task?.stepName ?? "-"}
+
+
+
附件
+
{detail.attachments.length} 个
+
+
+
@@ -1059,10 +1078,15 @@ export function PurchaseRequestsPage() {