更新采购导出
This commit is contained in:
@@ -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))}`;
|
||||
}
|
||||
|
||||
|
||||
@@ -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' // 重要:用于文件下载
|
||||
})
|
||||
}
|
||||
|
||||
// ========== 工具函数 ==========
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user