王震
2023-11-20 1236ba48c630d4f1b88f830795a751331049b3bd
src/views/quality/finishedProductInspection/index.vue
@@ -213,12 +213,14 @@
      methods: {
            //打印按钮
            printFun() {
                const style = '@page {margin: 10mm 5mm; margin-bottom: 0;margin-top:0;} ' +'@media print {.title{font-size:30pt;font-weight: 400;font-family: 黑体;!important;}' ;
                PrintJS({
                    printable: "printRaw",
                    type: "html",
                    maxWidth: 1000,
                    // header: "产品检测报告",
                    style: '@page {margin: 10mm 5mm; margin-bottom: 0;margin-top:0;}',
                    style: style,
                    // scanStyles: false,
                    targetStyles: ["*"],
                    ignoreElements: ["no-ignore"],
                    orientation: 'portrait'