11
WXL
2023-11-05 24112d26079c0010f0baff217d9ddcd9dfb595b4
src/views/project/donatefinish/index.vue
@@ -222,7 +222,7 @@
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            @click="handleAdd(scope.row)"
            v-hasPermi="['project:donatebaseinfo:edit']"
            >修改</el-button
          >
@@ -1053,63 +1053,70 @@
    /** 新增按钮操作 */
    handleAdd(row) {
      this.reset();
      //读取案例基本信息
      //this.curCase = row;
      this.curCase = {
        id: row.id,
        recordstate: null,
        donorno: row.donorno,
      };
      this.form.coordinateduserido = row.coordinateduserido;
      this.form.coordinateduseridt = row.coordinateduseridt;
      this.form.coordinatedusernameo = row.coordinatedusernameo;
      this.form.coordinatedusernamet = row.coordinatedusernamet;
      this.form.responsibleuserid = row.responsibleuserid;
      this.form.responsibleusername = row.responsibleusername;
      this.form.receivingunit = row.receivingunit;
      this.form.responsibleusername = row.responsibleusername;
      this.registerAddresss.sheng = row.residenceprovincename;
      this.registerAddresss.shi = row.residencecityname;
      this.registerAddresss.qu = row.residencetownname;
      //判断是否存在上报记录
      let searchParam = {
        id: row.id,
      };
      listDonatecompletioninfo(searchParam).then((response) => {
        if (response.code == 200 && response.rows.length == 1) {
          this.form = response.rows[0];
          this.form.donateorganList = JSON.parse(this.form.donateorgan);
          this.title = "修改捐献完成登记表";
        } else {
          this.curdonotor = row;
          this.open = true;
          this.title = "新增捐献完成登记表";
      this.$router.push({
        path: "/organ/donationdetails/",
        query: {
          id: row.id,
          organType: "edit",
        }
      });
      // this.reset();
      //获取器官信息
      let oraganqueryParam = {
        infoid: row.id,
      };
      listDonateorgan(oraganqueryParam).then((response) => {
        if (response.code == 200) {
          this.tableData = response.rows;
        } else {
          this.$modal.msgError("获取捐献器官失败:" + response.msg);
        }
      });
      // //读取案例基本信息
      // //this.curCase = row;
      // this.curCase = {
      //   id: row.id,
      //   recordstate: null,
      //   donorno: row.donorno,
      // };
      // this.form.coordinateduserido = row.coordinateduserido;
      // this.form.coordinateduseridt = row.coordinateduseridt;
      // this.form.coordinatedusernameo = row.coordinatedusernameo;
      // this.form.coordinatedusernamet = row.coordinatedusernamet;
      // this.form.responsibleuserid = row.responsibleuserid;
      // this.form.responsibleusername = row.responsibleusername;
      //获取附件信息
      // this.$nextTick(function () {
      //   this.$refs.finishannex.getAnnexList();
      // this.form.receivingunit = row.receivingunit;
      // this.form.responsibleusername = row.responsibleusername;
      // this.registerAddresss.sheng = row.residenceprovincename;
      // this.registerAddresss.shi = row.residencecityname;
      // this.registerAddresss.qu = row.residencetownname;
      // //判断是否存在上报记录
      // let searchParam = {
      //   id: row.id,
      // };
      // listDonatecompletioninfo(searchParam).then((response) => {
      //   if (response.code == 200 && response.rows.length == 1) {
      //     this.form = response.rows[0];
      //     this.form.donateorganList = JSON.parse(this.form.donateorgan);
      //     this.title = "修改捐献完成登记表";
      //   } else {
      //     this.curdonotor = row;
      //     this.open = true;
      //     this.title = "新增捐献完成登记表";
      //   }
      // });
      this.loading = false;
      this.open = true;
      // //获取器官信息
      // let oraganqueryParam = {
      //   infoid: row.id,
      // };
      // listDonateorgan(oraganqueryParam).then((response) => {
      //   if (response.code == 200) {
      //     this.tableData = response.rows;
      //   } else {
      //     this.$modal.msgError("获取捐献器官失败:" + response.msg);
      //   }
      // });
      // //获取附件信息
      // // this.$nextTick(function () {
      // //   this.$refs.finishannex.getAnnexList();
      // // });
      // this.loading = false;
      // this.open = true;
    },
    /** 修改按钮操作 */