WXL
5 天以前 05c3df33bd02a611c4930f38f3e6f5ca034e1c38
src/views/project/donationdetails/index.vue
@@ -2854,7 +2854,7 @@
      // 固定的选项列表(移除了"遗体")
      firstLineOrgans: [
      "肝脏", "肾脏", "单左肾", "单右肾",
      "肝脏", "肾脏", "左肾脏", "右肾脏",
      "心脏", "肺脏", "胰腺", "小肠"
    ],
    // 第二行选项(您需要一起换行的两项)
@@ -3295,11 +3295,20 @@
        listRelativesconfirmation(searchParam).then(response => {
          if (response.code == 200 && response.rows[0]) {
            this.affirmform = response.rows[0];
    // 修改器官决策的显示文本
            if (this.affirmform.organdecision) {
              this.organdecision = this.affirmform.organdecision
      // 替换器官名称
      let organdecision = this.affirmform.organdecision
        .replace(/单左肾/g, '左肾脏')
        .replace(/单右肾/g, '右肾脏')
        .replace(/双肾脏/g, '双肾脏'); // 保持双肾脏不变
      this.organdecision = organdecision
                .split(",")
                .flatMap(item => (item === "双肾脏" ? ["左肾", "右肾"] : item));
            }
            if (this.affirmform.kinship) {
              this.kinship = this.affirmform.kinship.split(",");
            }