WXL
昨天 edf132557e5eee4e8607ca83d987c5f6b830f025
src/views/project/donationdetails/index.vue
@@ -640,7 +640,7 @@
          </el-row>
          <el-row>
            <el-col :span="24">
              <el-form-item align="left" label="本人意愿 ">
              <el-form-item align="left" label="本人意愿 " prop="selfwill">
                <el-checkbox-group v-model="form.selfwill">
                  <el-checkbox
                    v-for="dict in dict.type.sys_SelfWill || []"
@@ -1707,7 +1707,7 @@
                  clearable
                  v-model="witnessform.coordinatorSignTime"
                  type="datetime"
                  value-format="yyyy-MM-dd"
                  value-format="yyyy-MM-dd HH:mm:ss"
                  placeholder="选择手术结束时间"
                >
                </el-date-picker>
@@ -1916,7 +1916,7 @@
                    </template>
                  </el-table-column> -->
                  <el-table-column
                    label="获取开始时间"
                    label="器官离体时间"
                    align="center"
                    width="200"
                    prop="organgettime"
@@ -1927,6 +1927,25 @@
                        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="200"
                    prop="organStartTime"
                  >
                    <template slot-scope="scope">
                      <el-date-picker
                        clearable
                        size="small"
                        style="width: 100%"
                        v-model="scope.row.organStartTime"
                        type="datetime"
                        value-format="yyyy-MM-dd HH:mm:ss"
                        placeholder="请输入获取开始时间"
@@ -2901,6 +2920,12 @@
        majorrelatives: [
          { required: true, message: "请输入主要亲属", trigger: "blur" }
        ],
        selfwill: [
          { required: true, message: "请选择本人意愿", trigger: "blur" }
        ],
        registerAddresss: [
          { required: true, message: "请输入现所在地", trigger: "blur" }
        ],
        familyrelations: [
          { required: true, message: "请选择亲属与捐献者关系", trigger: "blur" }
        ],
@@ -3056,7 +3081,7 @@
          return;
        }
        this.customOrganSort();
      },
      }
      // deep: true // 深度监听,因为数组内容可能变化
    },
    allocateddata: {
@@ -3065,17 +3090,17 @@
          return;
        }
        this.allocateddataSort();
      },
      }
      // deep: true // 深度监听,因为数组内容可能变化
    }
  },
  methods: {
    loadRowData(row, treeNode, resolve) {
    // 只有当行展开或需要时才完整渲染内部组件
    this.$set(row, 'loaded', true)
    resolve()
  },
      // 只有当行展开或需要时才完整渲染内部组件
      this.$set(row, "loaded", true);
      resolve();
    },
    // 获取主表及附属数据
    Getbasicinformation() {
      // 左侧流程数据
@@ -3163,7 +3188,9 @@
          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);;
              this.organdecision = this.affirmform.organdecision
                .split(",")
                .flatMap(item => (item === "双肾脏" ? ["左肾", "右肾"] : item));
            }
            if (this.affirmform.kinship) {
              this.kinship = this.affirmform.kinship.split(",");
@@ -3430,9 +3457,8 @@
              }
            });
          }
        }else{
                this.$modal.msgError("前部步骤表单信息有缺漏请排查后重新保存");
        } else {
          this.$modal.msgError("前部潜在捐献表单信息有缺漏请排查后重新保存");
        }
      });
    },
@@ -3706,7 +3732,7 @@
      this.procureddata = [...this.procureddata];
      this.$nextTick(() => {
        this.isSorting = false;
      this.loading = false;
        this.loading = false;
      });
    },
    allocateddataSort() {