王震
2023-11-20 f47d5f26a54cf2e72cd741bca541ded5f6a4b743
	modified:   src/views/quality/finishedProductInspection/finishedProducter-print.vue
modified: src/views/quality/finishedProductInspection/index.vue
已修改2个文件
58 ■■■■ 文件已修改
src/views/quality/finishedProductInspection/finishedProducter-print.vue 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/quality/finishedProductInspection/index.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/quality/finishedProductInspection/finishedProducter-print.vue
@@ -1,7 +1,7 @@
<template>
<div  class="WordSection1"  align=center  style="word-wrap:break-word;text-justify-trim:punctuation">
        <div align="center" >
            <table  style="border-collapse:collapse;table-layout:fixed;page-break-after: always;" width="629">
            <table  style="border-collapse:collapse;table-layout:fixed;page-break-after: always;margin-top: 60px;" width="629">
                <tr class="xl6524921" height=20 style='mso-height-source:userset;height:30.0pt'>
                    <td  colspan=3 rowspan=2  style='width:160pt;height: 60pt;border: 1pt solid windowtext'>
                        <span style='mso-ignore:vglayout;margin-left:12px;margin-top:14px;width:104px;height:42px'>
@@ -625,7 +625,7 @@
            if(list && list.length<2){
                list.forEach(item=>{
                    if(item.children && item.children.length < rowNum){
                        rowNum = 15 - item.children.length
                        rowNum = 20 - item.children.length
                        for(let j=0;j<item.children.length;j++){
                            let arr = []
                            if(item.children[j].inspectionValue){
@@ -690,8 +690,9 @@
}
</script>
<style lang="scss">
<style lang="scss" >
.xl6524921 {
    padding: 0px;
    mso-ignore: padding;
@@ -1941,41 +1942,5 @@
    mso-pattern: auto;
    white-space: nowrap;
}
@font-face{
    font-family:微软雅黑;
    panose-1:2 1 6 0 3 1 1 1 1 1;
}
@font-face{
    font-family:"Cambria Math";
    panose-1:2 4 5 3 5 4 6 3 2 4;
}
@font-face{
    font-family:Calibri;
    panose-1:2 15 5 2 2 2 4 3 2 4;
}
@font-face{
    font-family:"\@微软雅黑";
    panose-1:2 1 6 0 3 1 1 1 1 1;
}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal{
    margin:0cm;
    text-align:justify;
    text-justify:inter-ideograph;
    font-size:10.5pt;
    font-family:"Calibri",sans-serif;
}
/* Page Definitions */
@page WordSection1{
   size:595.3pt 841.9pt;
    margin:72.0pt 2.0cm 2.0cm 2.0cm;
    layout-grid:15.6pt;
}
div.WordSection1{
    page : WordSection1;
}
.procedure {
    word-wrap:break-word;
}
</style>
src/views/quality/finishedProductInspection/index.vue
@@ -211,25 +211,14 @@
        }
    },
        methods: {
            closedown(){
                // this.printFormData = []
                this.printDialogVisible = false;
            },
            //打印按钮
            printFun() {
                // const printSettings = {
                //         paper: {
                //         width: 827, // A4纸的宽度(单位:像素)
                //         height: 595, // A4纸的高度(单位:像素)
                //         orientation: 'portrait', // 竖向打印
                //         }}
                PrintJS({
                    printable: "printRaw",
                    type: "html",
                    maxWidth: 1000,
                    // printSettings,
                    style: '@page {margin: 10mm 5mm;size:A4;}',
                    // header: "产品检测报告",
                    style: '@page {margin: 10mm 5mm; margin-bottom: 0;margin-top:0;}',
                    targetStyles: ["*"],
                    ignoreElements: ["no-ignore"],
                    orientation: 'portrait'