| | |
| | | </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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | data() { |
| | | return { |
| | | logoSrc : require("@/assets/404_images/logo.png"), |
| | | now: new Date().toLocaleDateString() |
| | | } |
| | | }, |
| | | methods:{ |
| | |
| | | <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; |