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();