WXL
昨天 c8e9849cb5f24848df0174c13bfbbff37bb08a5a
src/views/business/maintain/index.vue
@@ -116,7 +116,7 @@
        <el-table-column
          label="捐献编号"
          align="center"
          prop="inpatientno"
          prop="caseNo"
          width="120"
        />
        <el-table-column
@@ -125,12 +125,7 @@
          prop="inpatientno"
          width="120"
        />
        <el-table-column
          label="姓名"
          align="center"
          prop="name"
          width="120"
        />
        <el-table-column label="姓名" align="center" prop="name" width="120" />
        <el-table-column label="性别" align="center" prop="sex" width="80">
          <template slot-scope="scope">
            <dict-tag
@@ -139,7 +134,21 @@
            />
          </template>
        </el-table-column>
        <el-table-column label="年龄" align="center" prop="age" width="80" />
        <el-table-column label="年龄" align="center" prop="age" width="100">
          <template slot-scope="scope">
            {{
              `${
                scope.row.age && scope.row.age !== 0
                  ? `${scope.row.age}${scope.row.ageunit || ""}`
                  : ""
              } ${
                scope.row.age2 && scope.row.age2 !== 0
                  ? `${scope.row.age2}${scope.row.ageunit2}`
                  : ""
              }`.trim()
            }}
          </template>
        </el-table-column>
        <el-table-column
          label="血型"
          align="center"
@@ -187,9 +196,7 @@
        >
          <template slot-scope="scope">
            <span>{{
              scope.row.updateTime
                ? parseTime(scope.row.updateTime)
                : "-"
              scope.row.updateTime ? parseTime(scope.row.updateTime) : "-"
            }}</span>
          </template>
        </el-table-column>
@@ -201,9 +208,7 @@
        >
          <template slot-scope="scope">
            <span>{{
              scope.row.updateTime
                ? parseTime(scope.row.updateTime)
                : "-"
              scope.row.updateTime ? parseTime(scope.row.updateTime) : "-"
            }}</span>
          </template>
        </el-table-column>
@@ -281,7 +286,7 @@
export default {
  name: "MaintenanceList",
  components: { Pagination },
  dicts: ["sys_user_sex",'sys_BloodType','maintain_type'],
  dicts: ["sys_user_sex", "sys_BloodType", "maintain_type"],
  data() {
    return {
      // 遮罩层
@@ -369,18 +374,6 @@
            this.maintenanceList = response.data;
            this.total = response.total || 0;
            // 处理年龄显示
            this.maintenanceList.forEach(item => {
              if (item.startAge !== undefined && item.endAge !== undefined) {
                item.age = `${item.startAge}-${item.endAge}`;
              } else if (item.startAge !== undefined) {
                item.age = `${item.startAge}+`;
              } else if (item.endAge !== undefined) {
                item.age = `0-${item.endAge}`;
              } else {
                item.age = "-";
              }
            });
          } else {
            this.$message.error(response.msg || "获取数据失败");
          }