| | |
| | | <div> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true"> |
| | | <el-form-item label="资质名称" prop="name"> |
| | | <el-select v-model="queryParams.name" placeholder="选择资质名称" size="small" @change="refreshTable()"> |
| | | <el-select v-model="queryParams.name" placeholder="选择资质名称" size="small" @change="refreshTable(), list = []"> |
| | | <el-option v-for="dict in dict.type.cnas_method_qualification" :key="dict.value" :label="dict.label" |
| | | :value="dict.value"> |
| | | {{ dict.label }} |
| | |
| | | import { getToken } from "@/utils/auth"; |
| | | |
| | | export default { |
| | | name: 'Laboratory', |
| | | components: { |
| | | limsTable, |
| | | }, |
| | |
| | | this.selection.forEach((item) => { |
| | | delIds.push(item.id); |
| | | }); |
| | | delCertificationDetail(delIds).then((res) => { |
| | | delCertificationDetail({ ids: delIds.join(',') }).then((res) => { |
| | | if (res.code !== 200) return; |
| | | this.refreshTable(); |
| | | this.$message.success("删除成功"); |
| | |
| | | }, |
| | | // 资质明细附件下载 |
| | | handleDownLoad(row) { |
| | | const url = process.env.VUE_APP_BASE_API + "/img/" + row.fileUrl; |
| | | this.$download.saveAs(url, row.fileUrl); |
| | | if (!row.fileUrl) { |
| | | this.$message.warning('暂无附件') |
| | | return; |
| | | } |
| | | this.$download.saveAs(row.fileUrl, row.fileUrl); |
| | | }, |
| | | openAdd() { |
| | | this.qualificationsConnectVisible = true; |
| | |
| | | addCertificationDetail({ ...this.formData }) |
| | | .then((res) => { |
| | | this.loading = false; |
| | | if (res.code === 201) return; |
| | | this.$message.success("已提交"); |
| | | this.refreshTable(); |
| | | this.resetForm("formDataRef"); |