Files
xin-procurement/web/api/recon/settlement.ts
T
2026-07-23 20:41:25 +08:00

12 lines
401 B
TypeScript

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}`
);
}