R19/R20: 项目主域进 OA 并打通报销差旅周报待办
这个提交包含在:
@@ -1,5 +1,14 @@
|
||||
import { apiRequestData } from "./http";
|
||||
|
||||
export type WeeklyReportProjectLink = {
|
||||
id: string;
|
||||
projectId: string;
|
||||
progressText: string | null;
|
||||
riskText: string | null;
|
||||
nextStepText: string | null;
|
||||
project: { id: string; projectNo: string; name: string } | null;
|
||||
};
|
||||
|
||||
export type WeeklyReport = {
|
||||
id: string;
|
||||
employeeId: string;
|
||||
@@ -12,6 +21,7 @@ export type WeeklyReport = {
|
||||
submittedAt: string | null;
|
||||
createdAt: string | null;
|
||||
updatedAt: string | null;
|
||||
projectLinks: WeeklyReportProjectLink[];
|
||||
};
|
||||
|
||||
export type WeeklyReportTeamItem = {
|
||||
@@ -44,6 +54,7 @@ export async function updateMyWeeklyReport(payload: {
|
||||
blockersText?: string;
|
||||
nextWeekText?: string;
|
||||
needsHelp?: boolean;
|
||||
projectLinks?: Array<{ projectId: string; progressText?: string; riskText?: string; nextStepText?: string }>;
|
||||
}) {
|
||||
return apiRequestData<{ item: WeeklyReport }>("/api/weekly-reports/me", {
|
||||
method: "PUT",
|
||||
|
||||
在新工单中引用
屏蔽一个用户