| | |
| | | :height="'calc(100vh - 290px)'" @pagination="pagination"></lims-table> |
| | | </div> |
| | | <el-dialog :title="'添加' + radio + '记录'" :visible.sync="addDialogVisible" top="10vh" width="800px"> |
| | | <el-row> |
| | | <el-row v-if="addDialogVisible"> |
| | | <el-col :span="12" style="margin-bottom: 16px;"> |
| | | <div class="search_thing"> |
| | | <div class="search_label"><span style="color:red;margin-right: 4px;">*</span>申请编号:</div> |
| | |
| | | <div class="search_thing"> |
| | | <div class="search_label">上传附件:</div> |
| | | <div class="search_input"><el-upload :auto-upload="false" :multiple="false" :on-change="handleChangeUpload" |
| | | accept='.pdf,.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx' action="#" style="margin: 8px 0 0px 50px;"> |
| | | accept='.pdf,.doc,.docx,.xls,.xlsx' action="#" style="margin: 8px 0 0px 50px;"> |
| | | <el-button size="small" type="primary">上传附件</el-button> |
| | | </el-upload></div> |
| | | </div> |
| | |
| | | exportManageDocumentIssueRecycle(this.queryParams).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, '发放回收记录.xlsx') |
| | | //将Blob 对象转换成字符串 |
| | | // let reader = new FileReader(); |
| | | // reader.readAsText(blob, 'utf-8'); |
| | | // reader.onload = () => { |
| | | // try { |
| | | // let result = JSON.parse(reader.result); |
| | | // if (result.message) { |
| | | // this.$message.error(result.message); |
| | | // } else { |
| | | // const url = URL.createObjectURL(blob); |
| | | // const link = document.createElement('a'); |
| | | // link.href = url; |
| | | // link.download = '发放回收记录.xlsx'; |
| | | // link.click(); |
| | | // this.$message.success('导出成功') |
| | | // } |
| | | // } catch (err) { |
| | | // console.log(err); |
| | | // const url = URL.createObjectURL(blob); |
| | | // const link = document.createElement('a'); |
| | | // link.href = url; |
| | | // link.download = '发放回收记录.xlsx'; |
| | | // link.click(); |
| | | // this.$message.success('导出成功') |
| | | // } |
| | | // } |
| | | this.$download.saveAs(blob, '发放回收记录.xlsx'); |
| | | }) |
| | | }, |
| | | changeFileList(e) { |