WXL
2026-05-17 3453ba7e5243022ad4388da1515dc75ad8d81f94
src/views/business/assess/index.vue
@@ -123,18 +123,13 @@
        @selection-change="handleSelectionChange"
      >
        <el-table-column type="selection" width="55" align="center" />
         <el-table-column
        <el-table-column
          label="住院号"
          align="center"
          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
@@ -170,7 +165,7 @@
          </template>
        </el-table-column>
        -->
        <el-table-column
          label="评估状态"
          align="center"
@@ -178,9 +173,10 @@
          width="100"
        >
          <template slot-scope="scope">
            <el-tag :type="statusFilter(scope.row.assessState)">
              {{ statusTextFilter(scope.row.assessState) }}
            </el-tag>
            <dict-tag
              :options="dict.type.state_Evaluation"
              :value="scope.row.assessState"
            />
          </template>
        </el-table-column>
        <el-table-column
@@ -220,8 +216,7 @@
            >
            <el-button
              v-if="
                scope.row.assessState != '3' ||
                  scope.row.assessState != '4'
                scope.row.assessState != '3' || scope.row.assessState != '4'
              "
              size="mini"
              type="text"
@@ -260,7 +255,7 @@
export default {
  name: "AssessmentList",
  components: { Pagination },
  dicts: ["sys_user_sex"],
  dicts: ["sys_user_sex", "state_Evaluation"],
  data() {
    return {
      // 遮罩层
@@ -359,12 +354,18 @@
      }
      // 处理时间范围查询
      if (this.queryParams.applyTimeRange && this.queryParams.applyTimeRange.length === 2) {
      if (
        this.queryParams.applyTimeRange &&
        this.queryParams.applyTimeRange.length === 2
      ) {
        params.startApplyTime = this.queryParams.applyTimeRange[0];
        params.endApplyTime = this.queryParams.applyTimeRange[1];
      }
      if (this.queryParams.assessTimeRange && this.queryParams.assessTimeRange.length === 2) {
      if (
        this.queryParams.assessTimeRange &&
        this.queryParams.assessTimeRange.length === 2
      ) {
        params.startAssessTime = this.queryParams.assessTimeRange[0];
        params.endAssessTime = this.queryParams.assessTimeRange[1];
      }
@@ -463,7 +464,7 @@
        // 刷新列表
        this.getList();
      } catch (error) {
        if (error !== 'cancel') {
        if (error !== "cancel") {
          console.error("确认失败:", error);
        }
      }
@@ -496,7 +497,6 @@
        // 这里需要调用删除接口,暂时模拟成功
        this.$message.success("删除成功");
        this.getList();
      } catch (error) {
        if (error !== "cancel") {
          console.error("删除失败:", error);
@@ -529,7 +529,6 @@
        } else {
          this.$message.error("导出失败:" + (response.msg || "未知错误"));
        }
      } catch (error) {
        if (error !== "cancel") {
          console.error("导出失败:", error);
@@ -548,11 +547,11 @@
      // 模拟文件下载
      const blob = new Blob([JSON.stringify(data, null, 2)], {
        type: 'application/vnd.ms-excel'
        type: "application/vnd.ms-excel"
      });
      const link = document.createElement('a');
      const link = document.createElement("a");
      link.href = URL.createObjectURL(blob);
      link.download = '医学评估数据.xlsx';
      link.download = "医学评估数据.xlsx";
      link.click();
    },
    // 时间格式化