From 91370ed744be6c3f0a59fe622e1ab195438cfdf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Mon, 22 May 2023 17:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E6=8D=AE=E6=8A=A5=E8=A1=A8=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/itextpdf/orderPrint.js | 20 +++++++++++ src/views/inout/IoAuditedOrder.vue | 54 ++++++++++++++++++++++++++++-- 2 files changed, 71 insertions(+), 3 deletions(-) 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 @@ - +