zouyu
2025-03-19 45792b3776cda2e1ada31755ffc226a663f90b48
src/views/business/inspectionOrder/index.vue
@@ -822,12 +822,12 @@
  revokeReviewConsistentByProductId,
  revokeReviewProduct,
  revokeReviewSample,
  upPlanUser2,
  updateStatus,
  updateInspected,
  revocationPassed,
  revocationCancel,
} from "@/api/business/inspectionOrder";
import { upPlanUser2 } from "@/api/business/inspectionTask";
import { getDicts } from "@/api/system/dict/data";
import vueQr from "vue-qr";
import getLodop from "@/utils/lodop";
@@ -1013,7 +1013,9 @@
            {
              name: "报告下载",
              type: "text",
              clickFun: (row) => {},
              clickFun: (row) => {
                this.download(row);
              },
              disabled: (row, index) => {
                return row.state != 4 || row.isRatify != 1;
              },
@@ -1194,7 +1196,9 @@
            {
              name: "查看",
              type: "text",
              clickFun: (row) => {},
              clickFun: (row) => {
                this.viewDetails(row);
              },
              showHide: (row) => {
                return (
                  row.inspectionItem == "单根垂直燃烧" ||
@@ -1429,6 +1433,7 @@
        insSampleId: row.insSampleId,
        entrustCode: row.entrustCode,
        sampleCode: row.sampleCode,
        inspectionItemSubclass: row.inspectionItemSubclass,
      };
      viewDetails(data)
        .then((res) => {
@@ -1628,7 +1633,7 @@
          active: 2,
          currentId: row.id,
          examine: 1,
          isReview: true,
          isPlan: false,
        },
      });
    },
@@ -1647,23 +1652,6 @@
    },
    // 下载报告
    download(row) {
      // let url = row.urlS ? row.urlS : row.url;
      // if (url) {
      //   url = url.split(".")[0] + ".pdf";
      //   const link = document.createElement("a");
      //   link.href = this.javaApi + url;
      //   link.target = "_blank";
      //   document.body.appendChild(link);
      //   link.click();
      // }
      // if(row.tempUrlPdf) {
      //   const link = document.createElement('a');
      //   link.href = this.javaApi + row.tempUrlPdf;
      //   link.target = '_blank';
      //   document.body.appendChild(link);
      //   link.click();
      // }
      downReport({ id: row.reportId })
        .then((res) => {
          let fileName = row.tempUrlPdf;
@@ -2283,6 +2271,7 @@
        query: {
          active: num,
          examine: 0,
          isPlan: false,
        },
      });
    },