From 2e9cf9f89ff917e16d9cacd9abd2a6f706679764 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Sun, 15 Jun 2025 11:15:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E8=B4=AD=E9=85=8D=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../material/part/partAcceptTwo/index.vue | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/views/material/part/partAcceptTwo/index.vue b/src/views/material/part/partAcceptTwo/index.vue index a18cc190..88c88e6c 100644 --- a/src/views/material/part/partAcceptTwo/index.vue +++ b/src/views/material/part/partAcceptTwo/index.vue @@ -249,6 +249,7 @@ import { getListNewBuy,getInBoundForm } from '@/api/part/partArrived'; import { passAll, rejectAll } from '@/api/part/partAccept'; import vueEasyPrint from "vue-easy-print"; +import printJS from 'print-js' import { downloadFile } from '@/utils/download' import { getToken } from '@/utils/auth' export default { @@ -419,16 +420,16 @@ import { getToken } from '@/utils/auth' }); }, //打印 - // print() { - // // this.$refs.remarksPrintRef.print() - // printJS({ - // printable: 'checkId', - // type: 'html', - // targetStyles: ['*'], - // maxWidth:'1400' - // // 其他配置选项 - // }); - // }, + print() { + // this.$refs.remarksPrintRef.print() + printJS({ + printable: 'checkId', + type: 'html', + targetStyles: ['*'], + maxWidth:'1400' + // 其他配置选项 + }); + }, handleExport() { const formatTime = (date) => { const year = date.getFullYear();