11
WXL
2023-11-05 24112d26079c0010f0baff217d9ddcd9dfb595b4
src/views/project/ethicalReview/index.vue
@@ -683,52 +683,59 @@
    },
    /** 伦理审查弹窗 */
    showDonationEvaluationDialog(dontateInfo) {
      this.$router.push({
        path: "/organ/donationdetails/",
        query: {
          id: row.id,
          organType: "edit",
        }
      });
      //查找是否存在伦理审查记录
      //this.curCase = dontateInfo;
      this.curCase = {
        id: dontateInfo.id,
        donorno: dontateInfo.donorno,
        name: dontateInfo.name,
        recordstate: null,
      };
      // this.curCase = {
      //   id: dontateInfo.id,
      //   donorno: dontateInfo.donorno,
      //   name: dontateInfo.name,
      //   recordstate: null,
      // };
      this.reset();
      this.form.donorno = dontateInfo.donorno;
      this.form.infoid = dontateInfo.id;
      this.expertAdviceQueryParam.infoid = dontateInfo.id;
      this.expertAdviceQueryParam.donorno = dontateInfo.donorno;
      // this.listnews.ConclusionTime = this.expertAdviceForm.conclusiontime;
      // this.getExpertList();
      this.form.flowname = "伦理审查";
      if (dontateInfo.fcid) {
        let queryParam = {
          id: dontateInfo.fcid,
          flowname: "伦理审查",
        };
        // flowname: "伦理审查",
        listDonateflowchart(queryParam).then((response) => {
          let evaluationList = response.rows;
          console.log("伦理审查", response.rows);
          if (evaluationList.length == 1) {
            this.form = evaluationList[0];
            this.open = true;
            this.$nextTick(function () {
              this.$refs.ethicalannex.getAnnexList();
            });
            this.title = "修改伦理审查";
          } else if (evaluationList.length == 0) {
            this.$modal.msgError("未找到本案例的伦理审查记录,请联系管理员!");
          } else {
            this.$modal.msgError("数据重复");
          }
        });
      } else {
        this.title = "新增伦理审查";
        this.open = true;
        this.$nextTick(function () {
          this.$refs.ethicalannex.getAnnexList();
        });
      }
      // this.reset();
      // this.form.donorno = dontateInfo.donorno;
      // this.form.infoid = dontateInfo.id;
      // this.expertAdviceQueryParam.infoid = dontateInfo.id;
      // this.expertAdviceQueryParam.donorno = dontateInfo.donorno;
      // // this.listnews.ConclusionTime = this.expertAdviceForm.conclusiontime;
      // // this.getExpertList();
      // this.form.flowname = "伦理审查";
      // if (dontateInfo.fcid) {
      //   let queryParam = {
      //     id: dontateInfo.fcid,
      //     flowname: "伦理审查",
      //   };
      //   // flowname: "伦理审查",
      //   listDonateflowchart(queryParam).then((response) => {
      //     let evaluationList = response.rows;
      //     console.log("伦理审查", response.rows);
      //     if (evaluationList.length == 1) {
      //       this.form = evaluationList[0];
      //       this.open = true;
      //       this.$nextTick(function () {
      //         this.$refs.ethicalannex.getAnnexList();
      //       });
      //       this.title = "修改伦理审查";
      //     } else if (evaluationList.length == 0) {
      //       this.$modal.msgError("未找到本案例的伦理审查记录,请联系管理员!");
      //     } else {
      //       this.$modal.msgError("数据重复");
      //     }
      //   });
      // } else {
      //   this.title = "新增伦理审查";
      //   this.open = true;
      //   this.$nextTick(function () {
      //     this.$refs.ethicalannex.getAnnexList();
      //   });
      // }
    },
    /** 保存捐献评估 */
    submitForm() {