11
WXL
2024-04-09 c27ea97634aec2b6c8f0e6c535d809f1c809f0d0
11
已修改3个文件
96 ■■■■■ 文件已修改
src/api/project/donatebaseinfo.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/donatebaseinfo/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/donationdetails/index.vue 84 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/project/donatebaseinfo.js
@@ -16,6 +16,14 @@
    method: 'get'
  })
}
// 获取捐献编号
export function getDonationNumber(data) {
  return request({
    url: '/project/donatebaseinfo/donatenumber',
    method: 'post',
    data: data
  })
}
// 查询捐献工作流
export function getDonatebaseinfoflow(id) {
  return request({
src/views/project/donatebaseinfo/index.vue
@@ -888,8 +888,8 @@
  updateDonatebaseinfo,
  exportDonatebaseinfo,
  downloadbaseinfo,
  getdonatorno
  // exportProvincemessage,
  getDonationNumber,
  getdonatorno,
} from "@/api/project/donatebaseinfo";
import Li_area_select from "@/components/Address";
import OrgSelecter from "@/views/project/components/orgselect";
src/views/project/donationdetails/index.vue
@@ -2401,7 +2401,8 @@
  addDonatebaseinfo,
  updateDonatebaseinfo,
  getDonatebaseinfoflow,
  fileCase
  fileCase,
  getDonationNumber
} from "@/api/project/donatebaseinfo";
import {
  listMedicalevaluation,
@@ -2951,38 +2952,38 @@
          return;
        }
          listDonatecomporgan(searchParam).then(res => {
            if (res.code == 200) {
              if (res.rows[0]) {
                this.transplantdata = res.rows;
                this.transplantdata.infoid = this.infoid;
              } else {
                this.transplantdata = this.allocateddata;
                this.transplantdata = this.transplantdata.map(obj => {
                  obj.id = null;
                  if (
                    obj.organname == "左眼角膜" ||
                    obj.organname == "右眼角膜"
                  ) {
                    obj.transplantstate = 2;
                  }
                  return obj;
                });
                this.transplantdata.infoid = this.infoid;
              }
              for (let i = 0; i < this.transplantdata.length; i++) {
                this.organList.organtransplant.push(
                  this.transplantdata[i].organno
                );
              }
        listDonatecomporgan(searchParam).then(res => {
          if (res.code == 200) {
            if (res.rows[0]) {
              this.transplantdata = res.rows;
              this.transplantdata.infoid = this.infoid;
            } else {
              // this.$modal.msgError(
              //   "器官列表获取失败:" + JSON.stringify(resall)
              // );
              this.transplantdata = this.allocateddata;
              this.transplantdata = this.transplantdata.map(obj => {
                obj.id = null;
                if (
                  obj.organname == "左眼角膜" ||
                  obj.organname == "右眼角膜"
                ) {
                  obj.transplantstate = 2;
                }
                return obj;
              });
              this.transplantdata.infoid = this.infoid;
            }
          });
            for (let i = 0; i < this.transplantdata.length; i++) {
              this.organList.organtransplant.push(
                this.transplantdata[i].organno
              );
            }
          } else {
            // this.$modal.msgError(
            //   "器官列表获取失败:" + JSON.stringify(resall)
            // );
          }
        });
        // 获取完成登记信息
        listDonatecompletioninfo(searchParam).then(response => {
          if (response.code == 200 && response.rows.length) {
@@ -3021,7 +3022,9 @@
          this.form.birthday = this.$moment(this.form.birthday).format(
            "YYYY-MM-DD HH:mm:ss"
          );
          this.form.diseasetype = this.form.diseasetype.join(",");
          this.form.infectious = this.form.infectious.join(",");
          this.form.selfwill = this.form.selfwill.join(",");
          this.form.othercases = this.form.othercases.join(",");
@@ -3231,11 +3234,26 @@
            if (this.witnessform.id != null) {
              updateDonationwitness(this.witnessform).then(response => {
                this.$modal.msgSuccess("获取见证信息修改成功");
                this.form.donationcategory = this.witnessform.donationcategory;
                this.Processvalidation();
                this.$modal.closeLoading();
              });
            } else {
              addDonationwitness(this.witnessform).then(response => {
                this.$modal.msgSuccess("获取见证信息新增成功");
                this.form.donationcategory = this.witnessform.donationcategory;
                let data = JSON.parse(JSON.stringify(this.form));
                data.diseasetype = "";
                data.infectious = data.infectious.join(",");
                data.selfwill = data.selfwill.join(",");
                data.othercases = data.othercases.join(",");
                data.infosources = data.infosources.join(",");
                data.kinship = data.kinship.join(",");
                data.patientstate = data.patientstate.join(",");
                getDonationNumber(data).then(res => {
                  this.form.donorno = res.msg;
                  this.Processvalidation();
                });
                this.istb = true;
                this.$modal.closeLoading();
              });
@@ -3248,9 +3266,6 @@
                this.$modal.msgSuccess("捐献器官获取信息保存成功!");
              }
            });
            //this.form.donationcategory = this.witnessform.donationcategory;
            this.Processvalidation();
          }
        });
      } else if (this.actives == 6) {
@@ -3271,7 +3286,6 @@
                if (res.rows[0]) {
                  let objfn = res.rows[0];
                  console.log(objfn, "sass");
                  objfn.caseno = item.caseno;
                  objfn.hospitalno = item.hospitalno;
                  objfn.name = item.name;