diff --git a/src/api/purchase/purApply.js b/src/api/purchase/purApply.js index a8018eb4..01bb62d3 100644 --- a/src/api/purchase/purApply.js +++ b/src/api/purchase/purApply.js @@ -128,3 +128,15 @@ export function getDetailList(params) { params: params }) } + + +export function printOrder(data) { + return axios({ + url: "/pur/apply/order/printOrder", + method: "post", + data: data, + headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}, + responseType: 'arraybuffer', //一定要设置响应类型,否则页面会是空白pdf + }); +} + diff --git a/src/api/purchase/purOrder.js b/src/api/purchase/purOrder.js index b31981ea..37579a1c 100644 --- a/src/api/purchase/purOrder.js +++ b/src/api/purchase/purOrder.js @@ -155,3 +155,17 @@ export function filterSupList(data) { } +export function printOrder(data) { + return axios({ + url: "/pur/purchase/order/printOrder", + method: "post", + data: data, + headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}, + responseType: 'arraybuffer', //一定要设置响应类型,否则页面会是空白pdf + }); +} + + + + + diff --git a/src/views/purchase/purApply/pureApplyMySearch.vue b/src/views/purchase/purApply/pureApplyMySearch.vue index 2e7c7327..873995bc 100644 --- a/src/views/purchase/purApply/pureApplyMySearch.vue +++ b/src/views/purchase/purApply/pureApplyMySearch.vue @@ -134,8 +134,9 @@ - + @@ -184,7 +185,7 @@