Crunchy
2025-03-17 0a26d58a3906b9e13946c7cb46fae51a0de98920
src/views/structural/capabilityAndLaboratory/laboratory/index.vue
@@ -151,6 +151,7 @@
import { getToken } from "@/utils/auth";
export default {
  name: 'Laboratory',
  components: {
    limsTable,
  },
@@ -320,7 +321,7 @@
      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("删除成功");
@@ -328,8 +329,11 @@
    },
    // 资质明细附件下载
    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;
@@ -377,7 +381,6 @@
          addCertificationDetail({ ...this.formData })
            .then((res) => {
              this.loading = false;
              if (res.code === 201) return;
              this.$message.success("已提交");
              this.refreshTable();
              this.resetForm("formDataRef");