From 196494dcd2bf19e0553a3ff81e93bb5122bf09c3 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Tue, 26 Mar 2019 13:37:03 +0800 Subject: [PATCH] fix bug --- src/views/TechnologyCenter/CreatePackingList/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/TechnologyCenter/CreatePackingList/index.vue b/src/views/TechnologyCenter/CreatePackingList/index.vue index 8aa4088a..0203931d 100644 --- a/src/views/TechnologyCenter/CreatePackingList/index.vue +++ b/src/views/TechnologyCenter/CreatePackingList/index.vue @@ -476,7 +476,7 @@ - 毛中 + 毛重 净重
@@ -905,12 +905,14 @@ export default { }, exportTable() { const htmlNode = $('#cjn').html() - const body = $('body') + const body = $('body').attr('style', 'padding: 20px;margin: 0 auto;display: block;width: 800px;background: #fff;') body.children().hide() const printNode = $(htmlNode) body.append(printNode) window.print() + body.removeAttr('style') body.children().not('script').show() + body.children().not('#app').hide() printNode.remove() } }