src/views/quality/rawMaterial/index.vue
@@ -214,7 +214,14 @@ text: '打印', type: 'text', size: 'small', fun: this.previewFun fun: this.previewFun, show: { val: [ '1', '0' ], key: 'judgeState' } }, { text: '作废', @@ -255,6 +262,7 @@ //查看报告按钮 previewFun(row){ getObj(row.id).then(res=>{ console.log(res); this.printFormData = res.data.data this.printDialogVisible = true }).catch(error=>{ @@ -267,7 +275,7 @@ PrintJS({ printable: "printRaw", type: "html", maxWidth: 1200, maxWidth: 900, // header: "原材料检测报告", style: '@page {margin: 0 5mm}', targetStyles: ["*"],