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`);
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ export type PurchaseRequestSummary = {
|
||||
supplierId: string | null;
|
||||
documentCategoryId: string | null;
|
||||
budgetPoolId: string | null;
|
||||
projectId: string | null;
|
||||
title: string;
|
||||
reason: string | null;
|
||||
currencyCode: string;
|
||||
@@ -63,6 +64,12 @@ export type PurchaseRequestSummary = {
|
||||
code: string;
|
||||
name: string;
|
||||
} | null;
|
||||
project: {
|
||||
id: string;
|
||||
projectNo: string;
|
||||
name: string;
|
||||
status: string;
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type PurchaseRequestItem = {
|
||||
@@ -235,6 +242,7 @@ export type PurchaseRequestListQuery = {
|
||||
supplierId?: string;
|
||||
legalEntityId?: string;
|
||||
costCenterId?: string;
|
||||
projectId?: string;
|
||||
};
|
||||
|
||||
export type PurchaseRequestItemPayload = {
|
||||
@@ -285,6 +293,7 @@ export async function updatePurchaseRequest(
|
||||
supplierId: string | null;
|
||||
documentCategoryId: string | null;
|
||||
budgetPoolId: string | null;
|
||||
projectId: string | null;
|
||||
expectedDeliveryDate: string | null;
|
||||
items: PurchaseRequestItemPayload[];
|
||||
}>,
|
||||
|
||||
在新工单中引用
屏蔽一个用户