R19/R20: 项目主域进 OA 并打通报销差旅周报待办
这个提交包含在:
@@ -20,6 +20,12 @@ export type TravelRequestSummary = {
|
||||
startDate: string | null;
|
||||
endDate: string | null;
|
||||
estimatedAmount: string;
|
||||
projectId: string | null;
|
||||
project: {
|
||||
id: string;
|
||||
projectNo: string;
|
||||
name: string;
|
||||
} | null;
|
||||
status: TravelRequestStatus;
|
||||
createdAt: string | null;
|
||||
updatedAt: string | null;
|
||||
@@ -233,3 +239,11 @@ export async function withdrawTravelRequest(travelRequestId: string) {
|
||||
body: JSON.stringify({}),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export async function linkTravelRequestProject(travelRequestId: string, projectId: string | null) {
|
||||
return apiRequestData<{ projectId: string | null; project: { id: string; projectNo: string; name: string } | null }>(`/api/travel-requests/${travelRequestId}/link-project`, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({ projectId }),
|
||||
});
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户