11
WXL
2024-07-17 21fe2968337eb8eab97adc88750b71c4057e98f8
src/views/project/medicalevaluation/index.vue
@@ -51,13 +51,13 @@
        <el-col :span="6">
          <el-form-item label="捐献进度" prop="recordstate">
            <el-select
              v-model="queryParams.recordstate"
              v-model="queryParams.workflow"
              placeholder="请选择捐献进度"
              clearable
              size="small"
            >
              <el-option
                v-for="dict in dict.type.sys_DonationStatus"
                v-for="dict in dict.type.sys_donornode"
                :key="dict.value"
                :label="dict.label"
                :value="dict.value"
@@ -85,7 +85,7 @@
        </el-col>
        <el-col :span="12">
          <el-form-item label="报告日期">
          <el-form-item label="评估时间">
            <el-date-picker
              style="width: 100%"
              v-model="selecttime"
@@ -120,7 +120,17 @@
    <!--<el-table v-loading="loading" border :data="donatebaseinfoList">     -->
    <el-table v-loading="loading" border :data="VMedicalevaluation">
      <el-table-column
        label="报告时间"
        label="案例时间"
        align="center"
        prop="donatetime"
        width="120"
      >
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.donatetime, "{y}-{m}-{d}") }}</span>
        </template>
      </el-table-column>
      <el-table-column
        label="评估时间"
        align="center"
        prop="reporttime"
        width="120"
@@ -200,10 +210,13 @@
        width="120"
      >
        <template slot-scope="scope">
          <dict-tag
            :options="dict.type.sys_DonationStatus"
            :value="scope.row.recordstate"
          />
          <div v-if="!scope.row.terminationCase">
            <dict-tag
              :options="dict.type.sys_donornode"
              :value="scope.row.workflow"
            />
          </div>
          <div v-else>任务终止</div>
        </template>
      </el-table-column>
@@ -628,7 +641,8 @@
    "sys_organstate",
    "sys_CoreAssessConclusion",
    "sys_BaseAssessConclusion",
    "sys_OrganDecision"
    "sys_OrganDecision",
    "sys_donornode"
  ],
  data() {
    //这里存放数据
@@ -754,7 +768,6 @@
      this.selecttime = [
        this.$moment(this.$route.params.starttime).format("YYYY-MM-DD"),
        this.$moment(this.$route.params.endtime)
          .add(-1, "month")
          .format("YYYY-MM-DD")
      ];
    }
@@ -882,22 +895,17 @@
    getList(e) {
      this.loading = true;
      this.queryParams.params = {};
      // if (null != this.daterangeReporttime && "" != this.daterangeReporttime) {
      //   this.queryParams.params["beginReporttime"] =
      //     this.daterangeReporttime[0];
      //   this.queryParams.params["endReporttime"] = this.daterangeReporttime[1];
      // }
      sessionStorage.removeItem("medicalevaluation");
      sessionStorage.setItem(
        "medicalevaluation",
        JSON.stringify(this.queryParams)
      );
      // 跳转时的默认进度
      if (e != null && e != undefined && !isNaN(e)) {
        this.queryParams.recordstate = e;
      }
      // if (this.selecttime[0] != null && this.selecttime[1] != null) {
      //   this.queryParams.params["starttime"] = this.selecttime[0];
      //   this.queryParams.params["endReporttime"] = this.selecttime[1];
      // }
      // this.queryParams.city='001'
      //console.log(JSON.stringify(this.queryParams));
      if (this.starttime != "") {
        this.queryParams.starttime = this.starttime;
      }
@@ -1341,6 +1349,10 @@
    //获取用户列表
    this.getuserlist();
    //获取列表
    if (sessionStorage.getItem("medicalevaluation")) {
      this.queryParams = JSON.parse(sessionStorage.getItem("medicalevaluation"));
      console.log(this.queryParams, "queryParams");
    }
    this.getList();
  }
  // //生命周期 - 挂载完成(可以访问DOM元素)