R19/R20: 项目主域进 OA 并打通报销差旅周报待办

这个提交包含在:
2026-03-22 08:34:18 +08:00
父节点 0235ccb968
当前提交 3f9738ac9c
共修改 28 个文件,包含 3236 行新增和 21 行删除
+19
查看文件
@@ -48,6 +48,11 @@ export type ReimbursementListItem = {
employeeNo: string;
name: string;
} | null;
project: {
id: string;
projectNo: string;
name: string;
} | null;
createdAt: string | null;
updatedAt: string | null;
};
@@ -86,6 +91,12 @@ export type ReimbursementDetail = {
reimbursementDate: string | null;
totalAmount: string | null;
description: string | null;
projectId: string | null;
project: {
id: string;
projectNo: string;
name: string;
} | null;
owner: {
id: string;
employee_no: string;
@@ -270,3 +281,11 @@ export async function deleteReimbursementItem(reimbursementId: string, itemId: s
},
);
}
export async function linkReimbursementProject(reimbursementId: string, projectId: string | null) {
return apiRequestData<{ projectId: string | null; project: { id: string; projectNo: string; name: string } | null }>(`/api/reimbursements/${reimbursementId}/link-project`, {
method: "POST",
body: JSON.stringify({ projectId }),
});
}