BIZ8-11 增强采购项目关联
这个提交包含在:
@@ -145,6 +145,7 @@ export type ProjectDetail = {
|
||||
tasks: number;
|
||||
risks: number;
|
||||
reimbursements: number;
|
||||
purchaseRequests: number;
|
||||
travelRequests: number;
|
||||
todoItems: number;
|
||||
weeklyReports: number;
|
||||
@@ -209,6 +210,18 @@ export type ProjectTravelSummary = {
|
||||
}>;
|
||||
};
|
||||
|
||||
export type ProjectPurchaseSummary = {
|
||||
totalAmount: string;
|
||||
items: Array<{
|
||||
id: string;
|
||||
requestNo: string;
|
||||
title: string;
|
||||
status: string;
|
||||
totalAmount: string;
|
||||
updatedAt: string | null;
|
||||
}>;
|
||||
};
|
||||
|
||||
export type ProjectWeeklyReportLink = {
|
||||
id: string;
|
||||
weeklyReportId: string;
|
||||
@@ -458,6 +471,10 @@ export async function fetchProjectTravelSummary(projectId: string) {
|
||||
return apiRequestData<ProjectTravelSummary>(`/api/projects/${projectId}/travel/summary`);
|
||||
}
|
||||
|
||||
export async function fetchProjectPurchaseSummary(projectId: string) {
|
||||
return apiRequestData<ProjectPurchaseSummary>(`/api/projects/${projectId}/purchase-requests/summary`);
|
||||
}
|
||||
|
||||
export async function fetchProjectWeeklyReports(projectId: string) {
|
||||
return apiRequestData<{ items: ProjectWeeklyReportLink[] }>(`/api/projects/${projectId}/weekly-reports`);
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户