src/components/experiment/checkTheReport/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/experiment/checkTheReport/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/experiment/checkTheReport/index.vue
@@ -26,7 +26,9 @@ </tr> <tr> <td>检测依据</td> <td colspan="2">{{reportData.specifications.split("-")[0]}}</td> <td colspan="2"> {{reportData.specifications.split("-")[0]}} </td> <td>检测类别</td> <td colspan="2">原材料</td> </tr> @@ -44,7 +46,7 @@ <td>{{item.unit}}</td> <td>{{item.required}}</td> <td>{{item.testValue}}</td> <td>{{item.testState == 1 ? "√" : "X"}}</td> <td>{{item.testState === 1 ? "√" : "X"}}</td> </tr> <tr> <td colspan="6">检验结论:{{reportData.type == 1 ? "合格" : "不合格"}}</td> @@ -60,8 +62,8 @@ <el-col :span="12">审核、日期:<span>{{reportData.checkTime}}</span></el-col> </el-row> <p class="footer"> <span>编号:</span><span>{{reportData.reportCode}}</span> <span> 发行日期:</span><span>{{new Date() | formatDate}}</span> <span>编号:</span><span>{{reportData.rcode}}</span> <span> 发行日期:</span><span>{{now}}</span> <span> 保存期限:</span><span>长期</span> </p> </div> @@ -72,6 +74,7 @@ data() { return { logoSrc : require("@/assets/404_images/logo.png"), now: new Date().toLocaleDateString() } }, methods:{ 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;