WXL
5 天以前 05c3df33bd02a611c4930f38f3e6f5ca034e1c38
src/views/project/donationdetails/index.vue
@@ -1195,20 +1195,29 @@
          </el-row>
          <el-row>
            <el-form-item label-width="100px" label="捐献决定">
              <el-checkbox-group v-model="organdecision">
                <el-checkbox
                  v-for="item in fixedOrganSelection"
                  :key="item"
                  :label="item"
                  >{{ item }}
                </el-checkbox>
                <el-checkbox
                  v-if="shouldShowConditionalOrgan"
                  :key="conditionalOrgan"
                  :label="conditionalOrgan"
                  >{{ conditionalOrgan }}</el-checkbox
                >
              </el-checkbox-group>
             <el-checkbox-group v-model="organdecision">
  <!-- 第一行 -->
  <el-checkbox
    v-for="item in firstLineOrgans"
    :key="item"
    :label="item"
  >{{ item }}</el-checkbox>
  <!-- 第二行 -->
  <div style="clear: both;"></div>
  <el-checkbox
    v-for="item in secondLineOrgans"
    :key="item"
    :label="item"
  >{{ item }}</el-checkbox>
  <el-checkbox
    v-if="shouldShowConditionalOrgan"
    :key="conditionalOrgan"
    :label="conditionalOrgan"
  >{{ conditionalOrgan }}</el-checkbox>
</el-checkbox-group>
              <el-input
                v-if="organdecision.includes('其他')"
                v-model="affirmform.organdecisionOther"
@@ -1978,27 +1987,6 @@
                  </el-table-column> -->
                  <el-table-column
                    v-if="organgettimetrue"
                    label="器官离体时间"
                    align="center"
                    width="200"
                    prop="organgettime"
                  >
                    <template slot-scope="scope">
                      <el-date-picker
                        clearable
                        size="small"
                        style="width: 100%"
                        v-model="scope.row.organgettime"
                        type="datetime"
                        value-format="yyyy-MM-dd HH:mm:ss"
                        placeholder="请输入器官离体时间"
                      >
                      </el-date-picker>
                    </template>
                  </el-table-column>
                  <el-table-column
                    label="获取医院"
                    align="center"
                    width="280"
@@ -2043,6 +2031,26 @@
                        type="datetime"
                        value-format="yyyy-MM-dd HH:mm:ss"
                        placeholder="请输入获取开始时间"
                      >
                      </el-date-picker>
                    </template>
                  </el-table-column>
                  <el-table-column
                    v-if="organgettimetrue"
                    label="器官离体时间"
                    align="center"
                    width="200"
                    prop="organgettime"
                  >
                    <template slot-scope="scope">
                      <el-date-picker
                        clearable
                        size="small"
                        style="width: 100%"
                        v-model="scope.row.organgettime"
                        type="datetime"
                        value-format="yyyy-MM-dd HH:mm:ss"
                        placeholder="请输入器官离体时间"
                      >
                      </el-date-picker>
                    </template>
@@ -2845,18 +2853,14 @@
      kinshiplist: ["配偶", "父亲", "母亲", "子女", "受托人"],
      // 固定的选项列表(移除了"遗体")
      fixedOrganSelection: [
        "肝脏",
        "肾脏",
        "单左肾",
        "单右肾",
        "心脏",
        "肺脏",
        "胰腺",
        "小肠",
        "双眼组织",
        "其他"
      ],
      firstLineOrgans: [
      "肝脏", "肾脏", "左肾脏", "右肾脏",
      "心脏", "肺脏", "胰腺", "小肠"
    ],
    // 第二行选项(您需要一起换行的两项)
    secondLineOrgans: [
      "双眼组织", "其他"
    ],
      // 需要条件显示的选项
      conditionalOrgan: "遗体",
@@ -3067,7 +3071,7 @@
        ],
        coreteamassessdoctor: [
          { required: true, message: "请输入核心成员评估医生", trigger: "blur" }
        ],
        ]
      },
      affirmrules: {
        name: [
@@ -3288,32 +3292,41 @@
      } else if (this.actives == 2) {
        this.activetele = "捐献确认";
        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
                .split(",")
                .flatMap(item => (item === "双肾脏" ? ["左肾", "右肾"] : item));
            }
            if (this.affirmform.kinship) {
              this.kinship = this.affirmform.kinship.split(",");
            }
            if (!this.affirmform) {
              this.affirmform = {};
              this.affirmform.residenceprovincename = "";
              this.affirmform.residencecityname = "";
              this.affirmform.residencetownname = "";
            }
            this.defultAddresss.sheng = this.affirmform.residenceprovincename;
            this.defultAddresss.shi = this.affirmform.residencecityname;
            this.defultAddresss.qu = this.affirmform.residencetownname;
          } else {
            // this.$modal.msgError(
            //   "查询是否存在确认登记记录失败" + JSON.stringify(response)
            // );
          }
        });
       listRelativesconfirmation(searchParam).then(response => {
  if (response.code == 200 && response.rows[0]) {
    this.affirmform = response.rows[0];
    // 修改器官决策的显示文本
    if (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(",");
    }
    if (!this.affirmform) {
      this.affirmform = {};
      this.affirmform.residenceprovincename = "";
      this.affirmform.residencecityname = "";
      this.affirmform.residencetownname = "";
    }
    this.defultAddresss.sheng = this.affirmform.residenceprovincename;
    this.defultAddresss.shi = this.affirmform.residencecityname;
    this.defultAddresss.qu = this.affirmform.residencetownname;
  } else {
    // this.$modal.msgError(
    //   "查询是否存在确认登记记录失败" + JSON.stringify(response)
    // );
  }
});
      } else if (this.actives == 3) {
        this.activetele = "伦理审查";
@@ -4538,7 +4551,6 @@
        }
        // 折叠状态下调整标题文字
      }
      // 折叠状态下隐藏完整标题文字
@@ -4556,10 +4568,14 @@
      }
    }
  }
.Ticket-button{
  text-align: right;
  margin-right: 50px;
  .new-line {
  clear: both; /* 关键属性:清除两侧浮动,强制换行 */
  display: block; /* 可选:设置为块级元素,确保独占一行 */
}
  .Ticket-button {
    text-align: right;
    margin-right: 50px;
  }
  // 右侧内容区域
  .right-content {
    flex: 1;