zouyu
2023-08-28 53c5f6245ad3abcdfbaf92ce55f08ad39ab0968a
src/views/experiment/checkTheReport/index.vue
@@ -60,7 +60,8 @@
          <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">
@@ -186,6 +187,7 @@
  data() {
    return {
      reportData: [],
      reportType: 0,
      searchData:{
        sample_code:'',
        reportCode:'',
@@ -217,6 +219,7 @@
    //查看报告按钮
    previewFun(row){
      this.dialogVisible = true;
      this.reportType = row.type;
      this.queryReportByRCode(row.reportCode);
    },
    //打印按钮
@@ -295,6 +298,8 @@
  }
}
.library-table {
  height: 80vh;
  overflow: scroll;
  background-color: #fff;
  flex: 1;
  margin: 0px -15px;
@@ -324,7 +329,7 @@
  }
  .printStyle{
    overflow: scroll;
    height:600px;
    height:500px;
    .el-button{
      position: absolute;
      top: 10vh;