R92 A3-A4 优化发票上传状态与批量上传
这个提交包含在:
@@ -61,6 +61,12 @@ export type InvoicePoolListResponse = {
|
||||
items: InvoicePoolListItem[];
|
||||
};
|
||||
|
||||
export type UploadInvoiceResponse = {
|
||||
invoicePoolId: string;
|
||||
status: InvoicePoolStatus;
|
||||
fileSha256: string;
|
||||
};
|
||||
|
||||
export type InvoicePoolDetail = {
|
||||
id: string;
|
||||
status: InvoicePoolStatus;
|
||||
@@ -174,7 +180,7 @@ export async function uploadInvoice(file: File, ocrType?: string, ownerEmployeeI
|
||||
formData.append("owner_employee_id", ownerEmployeeId);
|
||||
}
|
||||
|
||||
return apiRequestData<{ invoicePoolId: string; status: string; fileSha256: string }>(
|
||||
return apiRequestData<UploadInvoiceResponse>(
|
||||
"/api/invoice-pool/upload",
|
||||
{
|
||||
method: "POST",
|
||||
|
||||
在新工单中引用
屏蔽一个用户