| | |
| | | <el-button type="primary" @click="printFun()">打印</el-button> |
| | | </span> |
| | | <div class="printStyle"> |
| | | <preview id="printDiv" :reportData="reportData"></preview> |
| | | <preview id="printDiv" :reportData="reportData" v-if="reportType===0"></preview> |
| | | <div v-else>成品检测报告</div> |
| | | </div> |
| | | </el-dialog> |
| | | <div class="table-box"> |
| | |
| | | data() { |
| | | return { |
| | | reportData: [], |
| | | reportType: 0, |
| | | searchData:{ |
| | | sample_code:'', |
| | | reportCode:'', |
| | |
| | | //查看报告按钮 |
| | | previewFun(row){ |
| | | this.dialogVisible = true; |
| | | this.reportType = row.type; |
| | | this.queryReportByRCode(row.reportCode); |
| | | }, |
| | | //打印按钮 |
| | |
| | | } |
| | | } |
| | | .library-table { |
| | | height: 80vh; |
| | | overflow: scroll; |
| | | background-color: #fff; |
| | | flex: 1; |
| | | margin: 0px -15px; |
| | |
| | | } |
| | | .printStyle{ |
| | | overflow: scroll; |
| | | height:600px; |
| | | height:500px; |
| | | .el-button{ |
| | | position: absolute; |
| | | top: 10vh; |