modified: src/views/quality/finishedProductInspection/finishedProducter-print.vue
modified: src/views/quality/finishedProductInspection/index.vue
| | |
| | | <tbody v-for="(item,index) in prjdata" :key="index"> |
| | | <tr class=xl6524921 height=53 style='mso-height-source:userset;height:40.05pt'> |
| | | <td rowspan=16 height=53 class=xl7624921 style='border-right:.5pt solid black; height:40.05pt'> |
| | | <p class="MsoNormal" align="center" style="text-align:centerdisplay:flex ;"> |
| | | <span style="font-family:宋体; writing-mode: vertical-rl;margin-left: 30px;">{{item.father}}</span> |
| | | <p > |
| | | <span style=" writing-mode: vertical-rl;font-size: 26pt;">{{item.father}}</span> |
| | | </p> |
| | | </td> |
| | | <td colspan=2 class=xl6624921 style='border-right:.5pt solid black;border-left:none'> |
| | |
| | | <div> |
| | | <template> |
| | | <div style="margin-top: 100pt;width: 75%;"> |
| | | <div class="head"> |
| | | <div class="head" id="head"> |
| | | <div class="head-1"> |
| | | <img width=174 height=58 src="../../../../public/img/image002.png"> |
| | | </div> |
| | |
| | | }, |
| | | //打印按钮 |
| | | printFun() { |
| | | this.printDialogVisible = false; |
| | | // this.printDialogVisible = false; |
| | | // const imgWidth = 841.89 - margin * 2 |
| | | // const imgHeight = 841.89 / (canvas.width / canvas.height) - margin * 2 |
| | | PrintJS({ |
| | | printable: "printRaw", |
| | | type: "html", |
| | | header:"", |
| | | maxWidth: 950, |
| | | style: '@page {margin: 2.0mm 2.0mm}', |
| | | targetStyles: ["*"], |