R102/A1-A8 优化报销主流程
这个提交包含在:
@@ -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,
|
||||
|
||||
在新工单中引用
屏蔽一个用户