更新采购导出

This commit is contained in:
吴红兵
2026-02-24 10:36:05 +08:00
parent 9c7798ac41
commit 7104b2ec07
4 changed files with 104 additions and 2 deletions

View File

@@ -182,3 +182,11 @@ export function getArchiveDownloadUrl(purchaseId: string | number) {
return `/purchase/purchasingfiles/archive?purchaseId=${encodeURIComponent(String(purchaseId))}`;
}
/**
* 下载审批表:导出采购审批表 Word 文档apply.docx 模板,仅占位符替换)
* @param id 采购申请ID
*/
export function getApplyTemplateDownloadUrl(id: string | number) {
return `/purchase/purchasingapply/export-apply-template?id=${encodeURIComponent(String(id))}`;
}

View File

@@ -134,6 +134,18 @@ export function getAcceptanceItems(acceptanceType: string) {
})
}
/**
* 下载履约验收模板
*/
export function downloadPerformanceAcceptanceTemplate(purchaseId: string, batch?: number) {
return request({
url: '/purchase/purchasingAccept/export-performance-acceptance-template',
method: 'get',
params: { purchaseId, batch },
responseType: 'blob' // 重要:用于文件下载
})
}
// ========== 工具函数 ==========
/**