diff --git a/src/api/oa/erp/projectPurchase/index.ts b/src/api/oa/erp/projectPurchase/index.ts index 1d173b3..f8fa351 100644 --- a/src/api/oa/erp/projectPurchase/index.ts +++ b/src/api/oa/erp/projectPurchase/index.ts @@ -98,6 +98,18 @@ export function getErpProjectPurchaseList (query) { * @param projectId * @param spareFlag */ +/** + * 导出项目采购审批单 PDF + * @param projectPurchaseId 项目采购ID + */ +export const exportProjectPurchaseApprovalPdf = (projectPurchaseId: string | number) => { + return request({ + url: '/oa/erp/projectPurchase/exportApprovalPdf/' + projectPurchaseId, + method: 'get', + responseType: 'blob' + }); +}; + export const getProjectMaterialsByProjectId = ( projectId: string | number, spareFlag: string, diff --git a/src/views/oa/erp/projectPurchase/index.vue b/src/views/oa/erp/projectPurchase/index.vue index e2f3eb7..7b8f2e6 100644 --- a/src/views/oa/erp/projectPurchase/index.vue +++ b/src/views/oa/erp/projectPurchase/index.vue @@ -91,7 +91,7 @@ - +