| | |
| | | doProcessDeal, |
| | | addProcessDeal, |
| | | submitProcessTotaldeal, |
| | | pageProcessDeal, |
| | | checkProcessTotaldeal, |
| | | ratifyProcessTotaldeal, |
| | | delProcessDeal, |
| | | pageProcessTotaldeal, getProcessDeal, addProcessTotaldeal, |
| | | exportProcessTotaldeal |
| | | } from "@/api/cnas/process/sampleDisposal"; |
| | | export default { |
| | | name: 'SampleDisposal', |
| | |
| | | type: "text", |
| | | clickFun: (row) => { |
| | | this.handleDown0(row); |
| | | }, |
| | | disabled: (row) => { |
| | | return !row.url |
| | | } |
| | | }, |
| | | { |
| | |
| | | }, |
| | | // 导出详情 |
| | | handleDown0(row) { |
| | | if (!row.url) { |
| | | this.$message.warning('暂无文件') |
| | | return |
| | | } |
| | | // 后端下载 |
| | | this.$download.saveAs(row.url, row.month + ' 样品处理申请表'); |
| | | exportProcessTotaldeal({ id: row.id }).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res], { type: 'application/msword' }); |
| | | this.$download.saveAs(blob, '样品处理' + '.docx'); |
| | | }) |
| | | }, |
| | | handleDelete(row) { |
| | | this.$confirm("是否删除该条数据?", "提示", { |