| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div style="display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 12px; border-radius: 4px; background: var(--el-color-primary-light-9); font-size: 13px;"> |
| | | <span>第一次导入请先下载模板,按模板格式填写后再上传。</span> |
| | | <el-button link type="primary" @click="downloadTemplate">下载导入模板</el-button> |
| | | <div style="display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; margin-bottom: 10px; padding: 8px 12px; border-radius: 4px; background: var(--el-color-primary-light-9); font-size: 13px;"> |
| | | <span style="white-space: nowrap;">第一次导入请先下载模板,按模板格式填写后再上传。</span> |
| | | <el-button link type="primary" style="flex-shrink: 0; margin-left: 0;" @click="downloadTemplate">下载导入模板</el-button> |
| | | </div> |
| | | <div style="margin: 0 auto;"> |
| | | <el-upload ref="upload" :action="action" :auto-upload="false" v-model:file-list="fileList" :headers="uploadHeader" |
| | |
| | | downloadTemplate() { |
| | | const link = document.createElement('a') |
| | | // 带版本参数避免浏览器继续使用缓存里的旧模板 |
| | | link.href = '/import-templates/质量监控计划导入模板.xlsx?v=2' |
| | | link.href = '/import-templates/质量监控计划导入模板.xlsx?v=3' |
| | | link.download = '质量监控计划导入模板.xlsx' |
| | | document.body.appendChild(link) |
| | | link.click() |
| | |
| | | exportQualityMonitorRatify({ qualityMonitorDetailsId: this.download.qualityMonitorDetailsId }).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res], { type: 'application/msword' }); |
| | | this.$download.saveAs(blob, '质量监控实施计划.docx') |
| | | this.$download.saveAs(blob, '质量控制措施.docx') |
| | | }) |
| | | }, |
| | | // 完成报告导出 |
| | |
| | | exportQualityMonitorEvaluate({ qualityMonitorDetailsId: this.download.qualityMonitorDetailsId }).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res], { type: 'application/msword' }); |
| | | this.$download.saveAs(blob, '质量监控评价.docx') |
| | | this.$download.saveAs(blob, '质量控制评价记录.docx') |
| | | }) |
| | | }, |
| | | delYearPlanDetail(row) { |