From eed2047a2d73469e6daf6cb8f242c4181b8d1abc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com>
Date: Wed, 24 May 2023 09:15:06 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E6=89=93=E5=8D=B0=E4=BB=A3?=
=?UTF-8?q?=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/views/inout/IoAuditedOrder.vue | 14 ++++-----
src/views/inout/IoCheckAuditOrder.vue | 45 +++++++++++++++++++++++++--
2 files changed, 50 insertions(+), 9 deletions(-)
diff --git a/src/views/inout/IoAuditedOrder.vue b/src/views/inout/IoAuditedOrder.vue
index f23d6fa5..213b3f31 100644
--- a/src/views/inout/IoAuditedOrder.vue
+++ b/src/views/inout/IoAuditedOrder.vue
@@ -156,13 +156,13 @@
>打印
- 报表打印
-
+
+
+
+
+
+
+
-
+
打印
+ 报表打印
+
{
+ if (response.code === 20000) {
+ orderPDFFromStatemenTemplateFile(tQuery).then((response) => {
+ //将pdf文件转换为url。
+ const binaryData = [];
+ binaryData.push(response);
+ //获取blob链接。
+ let url = window.URL.createObjectURL(
+ new Blob(binaryData, {type: "application/pdf"})
+ );
+ this.loading = false;
+ window.open(url);//打开新标签页,预览pdf。
+ this.getOrderQRCodeTextList();
+ }).catch(() => {
+ this.loading = false;
+ });
+ } else {
+ this.loading = false;
+ this.$message.error(response.message);
+ }
+ }).catch(() => {
+ this.loading = false;
+ });
+ },
onCodeSubmit() {
this.codeQuery.page = 1;
this.getCodeDetailList();