关联 Issue: P25-2, P25-3, P25-4, P26-2, P26-4, P28-1, P28-2, P28-3, P28-4, P24-2, P29-3
20 行
1.1 KiB
TypeScript
20 行
1.1 KiB
TypeScript
import { apiRequestData } from "./http";
|
|
import type { RiskFlag } from "./feeControl";
|
|
|
|
export type ApOperationsSummary = {
|
|
summary: {
|
|
openPaymentBatchCount: number;
|
|
failedPaymentBatchItemCount: number;
|
|
openRiskFlagCount: number;
|
|
reconciliationAnomalyCount: number;
|
|
};
|
|
openPaymentBatches: Array<{ id: string; batchNo: string; entityType: string; name: string; status: string; createdAt: string | null }>;
|
|
failedPaymentBatchItems: Array<{ id: string; paymentBatchId: string; entityId: string; entityCode: string; entityTitle: string; amount: string; currencyCode: string; failureCode: string | null; failureMessage: string | null; createdAt: string | null }>;
|
|
openRiskFlags: RiskFlag[];
|
|
reconciliationAnomalies: Array<{ id: string; travelReconciliationBatchId: string; travelOrderId: string | null; travelRequestId: string | null; matchStatus: string; resolutionStatus: string; anomalyCode: string | null; orderAmount: string | null; transactionAmount: string | null; currency: string; createdAt: string | null }>;
|
|
};
|
|
|
|
export async function fetchApOperations() {
|
|
return apiRequestData<ApOperationsSummary>("/api/ap-operations");
|
|
}
|