diff --git a/src/api/itextpdf/orderPrint.js b/src/api/itextpdf/orderPrint.js index c7b4ed60..b478ac57 100644 --- a/src/api/itextpdf/orderPrint.js +++ b/src/api/itextpdf/orderPrint.js @@ -20,3 +20,23 @@ export function orderPDFFromTemplateFile(query) { responseType: 'arraybuffer', //一定要设置响应类型,否则页面会是空白pdf }); } + +//---------报表打印订单 +export function inspectionOrderPDFFromStatemenTemplateFile(query) { + return axios({ + url: "/udiwms/pdf/template/inspection/order/code/file", + method: "post", + data: query, + }); +} + +export function orderPDFFromStatemenTemplateFile(query) { + return axios({ + url: "/udiwms/pdf/template/text/inspection/order/code/file", + method: "post", + data: query, + headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}, + responseType: 'arraybuffer', //一定要设置响应类型,否则页面会是空白pdf + }); +} + diff --git a/src/views/inout/IoAuditedOrder.vue b/src/views/inout/IoAuditedOrder.vue index 48dad128..f23d6fa5 100644 --- a/src/views/inout/IoAuditedOrder.vue +++ b/src/views/inout/IoAuditedOrder.vue @@ -147,7 +147,7 @@ - +