| | |
| | | </div> |
| | | </div> |
| | | <div style="line-height: 30px;"> |
| | | <el-button size="small" type="primary" @click="exportSignatureTemplate">导出签名模板</el-button> |
| | | <el-button size="small" type="primary" @click="showDialog('add')">新增</el-button> |
| | | </div> |
| | | </div> |
| | |
| | | </el-dialog> |
| | | <el-dialog :visible.sync="downloadDialog" title="导出" width="600px"> |
| | | <span> |
| | | <el-button plain type="primary" :disabled="!download.qualityMonitorDetailsId" |
| | | <el-button plain type="primary" :disabled="download.detailsRatifyStatus !== 3" |
| | | @click="controlDown">实施计划导出</el-button> |
| | | <el-button plain type="primary" :disabled="!download.qualityMonitorDetailsId" |
| | | <el-button plain type="primary" :disabled="!download.finishReportUrl" |
| | | @click="finishReportExport">完成报告导出</el-button> |
| | | <el-button plain type="primary" :disabled="download.evaluateStatus !== 3" |
| | | @click="processingDown">评价导出</el-button> |
| | | </span> |
| | | <span slot="footer" class="dialog-footer"> |
| | |
| | | this.$download.saveAs(blob, '质量监控实施计划.docx') |
| | | }) |
| | | }, |
| | | // 完成报告导出 |
| | | finishReportExport() { |
| | | let url = this.download.finishReportUrl; |
| | | const link = document.createElement('a'); |
| | | link.href = this.javaApi +'/word/' + url; |
| | | link.target = '_blank'; |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | }, |
| | | // 处理单导出 |
| | | processingDown() { |
| | | exportQualityMonitorEvaluate({ qualityMonitorDetailsId: this.download.qualityMonitorDetailsId }).then(res => { |
| | |
| | | selectUserCondition().then((res) => { |
| | | this.responsibleOptions = res.data; |
| | | }) |
| | | }, |
| | | exportSignatureTemplate() { |
| | | let url = '质量监控记录签名模板.doc'; |
| | | const link = document.createElement('a'); |
| | | link.href = this.javaApi +'/word/' + url; |
| | | link.target = '_blank'; |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | } |
| | | }, |
| | | // 用于上传文件的信息 |