11
WXL
2023-11-10 9ee0e9c0cf83ebca413f3512c830014b7b9a5792
src/views/project/donationdetails/index.vue
@@ -33,7 +33,7 @@
              >
                <p>
                  提交时间:<span>{{
                    parseTime(Processdata.medicalevaluation.updatetime)
                    parseTime(Processdata.medicalevaluation.createtime)
                  }}</span>
                </p>
                <p>
@@ -54,7 +54,7 @@
              >
                <p>
                  提交时间:<span>{{
                    parseTime(Processdata.relativesconfirmation.updatetime)
                    parseTime(Processdata.relativesconfirmation.createtime)
                  }}</span>
                </p>
                <p>
@@ -75,7 +75,7 @@
              >
                <p>
                  提交时间:<span>{{
                    parseTime(Processdata.ethicalreviewopinions.updatetime)
                    parseTime(Processdata.ethicalreviewopinions.createtime)
                  }}</span>
                </p>
                <p>
@@ -96,7 +96,7 @@
              >
                <p>
                  提交时间:<span>{{
                    parseTime(Processdata.donateorgansService.updatetime)
                    parseTime(Processdata.donateorgansService.createtime)
                  }}</span>
                </p>
                <p>
@@ -117,7 +117,7 @@
              >
                <p>
                  提交时间:<span>{{
                    parseTime(Processdata.donationwitness.updatetime)
                    parseTime(Processdata.donationwitness.createtime)
                  }}</span>
                </p>
                <p>
@@ -138,7 +138,7 @@
              >
                <p>
                  提交时间:<span>{{
                    parseTime(Processdata.donatecompletioninfo.updatetime)
                    parseTime(Processdata.donatecompletioninfo.createtime)
                  }}</span>
                </p>
                <p>
@@ -966,7 +966,12 @@
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止案例" : "恢复案例" }}</el-button
          >
          <!-- <el-button
            v-show="makeastepforward"
            type="primary"
            @click="makeastepforward"
            >下一步</el-button
          > -->
          <el-button @click="cancel">取 消</el-button>
        </div>
      </div>
@@ -1161,7 +1166,12 @@
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止案例" : "恢复案例" }}</el-button
          >
          <!-- <el-button
            v-show="makeastepforward"
            type="primary"
            @click="makeastepforward"
            >下一步</el-button
          > -->
          <el-button @click="cancel">取 消</el-button>
        </div>
      </div>
@@ -1224,7 +1234,12 @@
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止案例" : "恢复案例" }}</el-button
          >
          <!-- <el-button
            v-show="makeastepforward"
            type="primary"
            @click="makeastepforward"
            >下一步</el-button
          > -->
          <el-button @click="cancel">取 消</el-button>
        </div>
      </div>
@@ -1952,6 +1967,12 @@
            @click="Terminationcase"
            >{{ showTerminationBtn == 0 ? "终止案例" : "恢复案例" }}</el-button
          >
          <!-- <el-button
            v-show="makeastepforward"
            type="primary"
            @click="makeastepforward"
            >下一步</el-button
          > -->
          <el-button @click="cancel">取 消</el-button>
        </div>
@@ -2352,7 +2373,7 @@
        infoid: null
      },
      affirmform: {
        infoid: null,
        infoid: null
      },
      ethicform: {
        infoid: null
@@ -2591,9 +2612,9 @@
          if (response.code == 200 && response.rows[0]) {
            this.medicineform = response.rows[0];
          } else {
            this.$modal.msgError(
              "获取医学评估记录失败:" + JSON.stringify(response)
            );
            // this.$modal.msgError(
            //   "获取医学评估记录失败:" + JSON.stringify(response)
            // );
          }
        });
      } else if (this.actives == 2 && !this.affirmform.infoid) {
@@ -2620,9 +2641,9 @@
            //   );
            // }
          } else {
            this.$modal.msgError(
              "查询是否存在确认登记记录失败" + JSON.stringify(response)
            );
            // this.$modal.msgError(
            //   "查询是否存在确认登记记录失败" + JSON.stringify(response)
            // );
          }
        });
      } else if (this.actives == 3 && !this.ethicform.infoid) {
@@ -2630,7 +2651,7 @@
        this.activetele = "伦理审查";
        listDonateflowchart(searchParam).then(response => {
          if (response.code == 200 && response.rows.length == 1) {
          if (response.code == 200 && response.rows.length) {
            this.ethicform = response.rows[0];
          } else {
            console.log("伦理审查数据为空");
@@ -2647,9 +2668,9 @@
              this.organalForm.organname.push(response.rows[i].organno);
            }
          } else {
            this.$modal.msgError(
              "获取器官分配信息失败:" + JSON.stringify(response)
            );
            // this.$modal.msgError(
            //   "获取器官分配信息失败:" + JSON.stringify(response)
            // );
          }
        });
      } else if (this.actives == 5 && !this.witnessform.infoid) {
@@ -2661,9 +2682,9 @@
                this.allocationform = resall.rows;
              }
            } else {
              this.$modal.msgError(
                "器官列表获取失败:" + JSON.stringify(resall)
              );
              // this.$modal.msgError(
              //   "器官列表获取失败:" + JSON.stringify(resall)
              // );
            }
          });
        }
@@ -2675,9 +2696,9 @@
              this.witnessform.infoid = this.infoid;
            }
          } else {
            this.$modal.msgError(
              "获取见证信息拿取失败:" + JSON.stringify(response)
            );
            // this.$modal.msgError(
            //   "获取见证信息拿取失败:" + JSON.stringify(response)
            // );
          }
        });
      } else if (this.actives == 6 && !this.allocationform.infoid) {
@@ -2695,9 +2716,9 @@
                this.allocationform.infoid = this.infoid;
              }
            } else {
              this.$modal.msgError(
                "器官列表获取失败:" + JSON.stringify(resall)
              );
              // this.$modal.msgError(
              //   "器官列表获取失败:" + JSON.stringify(resall)
              // );
            }
          });
        }
@@ -2707,7 +2728,7 @@
            this.accomplishform = response.rows[0];
            this.accomplishform.infoid = this.infoid;
          } else {
            this.$modal.msgError("完成登记失败:" + JSON.stringify(response));
            // this.$modal.msgError("完成登记失败:" + JSON.stringify(response));
          }
        });
      } else if (this.actives == 0) {
@@ -2953,11 +2974,13 @@
    },
    // 切换tab
    on_click(e) {
      console.log(e);
      // if (e != "" || e != null) {
      if (this.form.workflow >= e) {
      console.log(this.form.workflow);
      console.log(e);
      let asdx = this.form.workflow + 1;
      if (asdx >= e) {
        this.actives = e;
        this.Processvalidation(e);
        this.GetAttacheddata();
      } else {
        this.$modal.msgWarning("请先完成前部步骤");
      }
@@ -2986,7 +3009,7 @@
            donorno: this.form.donorno,
            transplanthospitalname: null,
            transplanthospitalno: null,
            organstate: "2"
            organstate: 0
          });
        }
      } else {
@@ -3033,10 +3056,10 @@
    Processvalidation() {
      console.log(this.form.workflow);
      console.log(this.actives);
      if (this.form.workflow == this.actives) {
      if (this.form.workflow + 1 == this.actives) {
        if (this.form.workflow <= 6) {
        } else {
          this.form.workflow++;
        } else {
        }
        this.submitForm();
        // this.GetAttacheddata();