modified: src/views/quality/finishedProductInspection/finishedProducter-print.vue
modified: src/views/quality/finishedProductInspection/index.vue
| | |
| | | <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;margin-top: 60px;" width="629"> |
| | | <table style="border-collapse:collapse;table-layout:fixed;page-break-after: always;margin-top: 0px;" 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'> |
| | |
| | | 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' |