11
WXL
2024-01-07 8324c778ee797ea5a844614c47d93bdacf3ffeab
src/views/project/organallocation/index.vue
@@ -64,27 +64,37 @@
    </el-form>
    <el-row :gutter="20">
      <el-col :span="8">
      <el-col :span="24">
        <el-card shadow="never">
          <!-- 捐献案例列表 -->
          <el-table v-loading="loading" border :data="donationCaseTableData" @row-click="selectDonotor">
            <el-table-column label="姓名" align="center" prop="name" />
            <el-table-column label="性别" align="center" prop="sex">
          <el-table v-loading="loading" border :data="donationCaseTableData">
            <el-table-column label="案例时间" align="center" prop="donatetime" width="150">
              <template slot-scope="scope">
                <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.sex" />
                <span>{{ parseTime(scope.row.donatetime, "{y}-{m}-{d}") }}</span>
              </template>
            </el-table-column>
            <el-table-column label="医疗机构" width="200px" align="center" prop="treatmenthospitalname" />
            <el-table-column label="姓名" align="center" prop="name" width="120" />
            <el-table-column label="性别" align="center" prop="sex" width="100">
              <template slot-scope="scope">
                <dict-tag :options="dict.type.sys_user_sex" :value="parseInt(scope.row.sex)" />
              </template>
            </el-table-column>
            <el-table-column label="年龄" align="center" prop="age" width="100" />
            <el-table-column label="报告人" align="center" prop="reportername" width="120" />
            <el-table-column label="案例归属" align="center" width="200px" prop="deptname" />
            <el-table-column label="医疗机构" align="center" prop="treatmenthospitalname" />
            <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right">
              <template slot-scope="scope">
                <el-button size="mini" type="text" icon="el-icon-edit" @click="selectDonotor(scope.row)">捐献详情</el-button>
              </template>
            </el-table-column>
          </el-table>
          <!-- hide-on-single-page -->
          <pagination v-show="total > 0" small layout="prev, pager, next" :total="total" :page.sync="queryParams.pageNum"
            :limit.sync="queryParams.pageSize" @pagination="getBaseInfoList" />
        </el-card>
      </el-col>
      <el-col :span="16">
        <!-- <div class="grid-content bg-purple-dark" style="width:100%;height:800px;background-color:purple">
                                         </div> -->
      <!-- <el-col :span="16">
        <el-card shadow="never">
          <el-form ref="infoForm" :model="organalForm" label-width="80px">
            <el-row>
@@ -135,7 +145,7 @@
            </el-form-item>
          </el-form>
        </el-card>
      </el-col>
      </el-col> -->
    </el-row>
    <!-- 添加或修改器官分配对话框 -->
@@ -538,6 +548,7 @@
        // this.queryParams.residencetown = this.$refs.areaSelect.getQu();
        listDonatebaseinfo(this.queryParams).then((response) => {
          this.donationCaseTableData = response.rows;
          console.log(this.donationCaseTableData, "Donation");
          this.total = response.total;
          this.loading = false;
        });
@@ -641,13 +652,20 @@
    },
    //点击捐献案例列表触发方法
    selectDonotor(row, column, event) {
      this.selectedRow = row;
      this.curdonorno = row.donorno;
      this.curdonorname = row.name;
      this.curage = row.age;
      this.curInfoid = row.id;
      this.distributionForm.donorno = row.donorno;
      this.GetDonortedList();
      this.$router.push({
        path: "/organ/donationdetails/",
        query: {
          id: row.id,
          organType: "edit",
        }
      });
      // this.selectedRow = row;
      // this.curdonorno = row.donorno;
      // this.curdonorname = row.name;
      // this.curage = row.age;
      // this.curInfoid = row.id;
      // this.distributionForm.donorno = row.donorno;
      // this.GetDonortedList();
    },
    //获取病人已捐献的器官列表
    GetDonortedList() {