feat(P25-2/P25-3/P26-2/P28-1/P24-2/P29-3): 落地内部OA够用版前端入口与运营页面
关联 Issue: P25-2, P25-3, P25-4, P26-2, P26-4, P28-1, P28-2, P28-3, P28-4, P24-2, P29-3
这个提交包含在:
@@ -1,4 +1,5 @@
|
||||
import { apiRequestData } from "./http";
|
||||
import type { PrecheckResponse, RiskFlag } from "./feeControl";
|
||||
|
||||
export type PurchaseRequestStatus = "draft" | "reviewing" | "approved" | "rejected" | "cancelled";
|
||||
|
||||
@@ -205,6 +206,7 @@ export type PurchaseRequestDetail = PurchaseRequestSummary & {
|
||||
canWithdraw: boolean;
|
||||
canArchiveOrder: boolean;
|
||||
};
|
||||
riskFlags: RiskFlag[];
|
||||
};
|
||||
|
||||
export type PurchaseRequestListResponse = {
|
||||
@@ -283,6 +285,13 @@ export async function updatePurchaseRequest(
|
||||
});
|
||||
}
|
||||
|
||||
export async function precheckPurchaseRequest(purchaseRequestId: string) {
|
||||
return apiRequestData<PrecheckResponse>(`/api/purchase-requests/${purchaseRequestId}/precheck`, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({}),
|
||||
});
|
||||
}
|
||||
|
||||
export async function submitPurchaseRequest(purchaseRequestId: string) {
|
||||
return apiRequestData<{
|
||||
purchaseRequestId: string;
|
||||
@@ -296,6 +305,8 @@ export async function submitPurchaseRequest(purchaseRequestId: string) {
|
||||
applied: boolean;
|
||||
reservedAmount: string;
|
||||
};
|
||||
precheckDecision: "pass" | "warn" | "manual_review";
|
||||
openedRiskFlagCount: number;
|
||||
}>(`/api/purchase-requests/${purchaseRequestId}/submit`, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({}),
|
||||
|
||||
在新工单中引用
屏蔽一个用户