From e475c8572b163d59b5c02445c7de724594b5eb7d Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Mon, 5 Jun 2023 15:42:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/print.html | 557 +++++++++--------- src/views/inventorys/index.vue | 11 +- .../outbounds/component/addoutbounds.vue | 80 ++- src/views/stocks/component/addRuku.vue | 56 +- 4 files changed, 389 insertions(+), 315 deletions(-) diff --git a/public/print.html b/public/print.html index 0be00e5..3831ed7 100644 --- a/public/print.html +++ b/public/print.html @@ -1,277 +1,280 @@ - - - - - 打印 - - - - - - - -
- -
-
-
-
生成打印单4张,耗时0.40861988067627秒
- 本打印功能只能在IE浏览器使用,非IE浏览器请采用兼容模式
- 使用之前需要安装插件(点击下载),并正确设置打印机 -
-
- -
-
-
- - - - \ No newline at end of file + + + + + 打印 + + + + + + + +
+ +
+
+
+
生成打印单
+ 本打印功能只能在IE浏览器使用,非IE浏览器请采用兼容模式
+ 使用之前需要安装插件(点击下载),并正确设置打印机 +
+
+ +
+
+
+ + + + diff --git a/src/views/inventorys/index.vue b/src/views/inventorys/index.vue index 462a483..df5a953 100644 --- a/src/views/inventorys/index.vue +++ b/src/views/inventorys/index.vue @@ -165,9 +165,9 @@ selectionChange(e){ console.log(e) if(e.length>0){ - for(var m of e){ - m = escape(m) - } + // for(var m of e){ + // m = escape(m) + // } this.printObj = e } @@ -181,6 +181,11 @@ }) return } + for(var m of this.printObj){ + for(var k in m){ + m[k] = encodeURI(encodeURI(m[k])) + } + } Cookies.set('objs', this.printObj) window.open('/admin/print.html','_blank') }, diff --git a/src/views/outbounds/component/addoutbounds.vue b/src/views/outbounds/component/addoutbounds.vue index ce3c70b..f168705 100644 --- a/src/views/outbounds/component/addoutbounds.vue +++ b/src/views/outbounds/component/addoutbounds.vue @@ -1,6 +1,6 @@