diff --git a/src/views/PurchasingCenter/OfflineContract/index.vue b/src/views/PurchasingCenter/OfflineContract/index.vue index 604b0e38..f5d29a13 100644 --- a/src/views/PurchasingCenter/OfflineContract/index.vue +++ b/src/views/PurchasingCenter/OfflineContract/index.vue @@ -975,6 +975,7 @@ export default { body.append(printNode) window.print() body.children().not('script').show() + body.children().not('#app').hide() printNode.remove() }).catch(res => { console.log(res) diff --git a/src/views/PurchasingCenter/PurchaseContractSearch/index.vue b/src/views/PurchasingCenter/PurchaseContractSearch/index.vue index e4a58ea5..19fcc22c 100644 --- a/src/views/PurchasingCenter/PurchaseContractSearch/index.vue +++ b/src/views/PurchasingCenter/PurchaseContractSearch/index.vue @@ -255,7 +255,9 @@ export default { body.append(printNode) window.print() body.children().not('script').show() + body.children().not('#app').hide() printNode.remove() + this.reload() } else { this.$message.error('请选择合同') }