| | |
| | | <template> |
| | | <div class="sample-disposal"> |
| | | <div class="capacity-scope"> |
| | | <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="queryParams.totaldealId = ''"> |
| | | <el-tab-pane label="填写" name="填写" style="height: 100%;" :key="1"> |
| | | <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;">新增</el-button> |
| | |
| | | }, |
| | | // 导出详情 |
| | | handleDown0(row) { |
| | | if (!row.url) { |
| | | this.$message.warning('暂无文件') |
| | | return |
| | | } |
| | | // 后端下载 |
| | | let url = this.javaApi + '/word/' + row.url |
| | | this.$download.saveAs(url, row.month + ' 样品处理申请表'); |
| | | this.$download.downloadFileFromUrl(row.url, row.month + ' 样品处理申请表'); |
| | | }, |
| | | handleDelete(row) { |
| | | this.$confirm("是否删除该条数据?", "提示", { |
| | |
| | | delProcessDeal({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refresh(); |
| | | this.page.current = 0; |
| | | this.getList(); |
| | | }); |
| | | }) |
| | | .catch(() => { }); |