R102/A1-A8 优化报销主流程

这个提交包含在:
2026-05-06 23:06:12 +08:00
父节点 ed35967a65
当前提交 9a9def6286
共修改 10 个文件,包含 608 行新增和 54 行删除
+12
查看文件
@@ -303,6 +303,12 @@ export type ReimbursementItemDeleteResponse = {
totalAmount: string;
};
export type ReimbursementDeleteResponse = {
reimbursementId: string;
outcome: "deleted";
unboundInvoiceCount: number;
};
export type ReimbursementSubmitResponse = {
reimbursementId: string;
formNumber: string;
@@ -415,6 +421,12 @@ export async function payReimbursement(reimbursementId: string, payload: Reimbur
});
}
export async function deleteReimbursement(reimbursementId: string) {
return apiRequestData<ReimbursementDeleteResponse>(`/api/reimbursements/${reimbursementId}`, {
method: "DELETE",
});
}
export async function createReimbursementItem(
reimbursementId: string,
payload: ReimbursementItemPayload,