first version
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import type { ExportFormat } from '@/domain/iPurchaseOrder.ts';
|
||||
import { downloadBlob } from '@/api/common/download.ts';
|
||||
|
||||
/** D10 结算表下载(blob,成功后后端回写 file_path 存档标记) */
|
||||
export async function downloadSettlement(id: number, format: ExportFormat) {
|
||||
return downloadBlob(
|
||||
`/recon/settlement/${id}/download`,
|
||||
{ format },
|
||||
`结算表_${id}.${format}`
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user