11
lkk
2025-03-31 bad2bc143be3f8ddb93a1c9f984127b3ccf43e8f
src/views/doctor/inspectCheck/index.vue
@@ -6,6 +6,7 @@
      size="small"
      :inline="true"
      label-width="68px"
      @submit.native.prevent
    >
      <el-form-item label="体检号" prop="reportDoctorCode">
        <el-input
@@ -61,6 +62,7 @@
          style="width: 100%"
          @selection-change="handleSelectionChange"
          :header-cell-style="{ background: '#aad8df' }"
          height="350"
        >
          <el-table-column
            fixed
@@ -120,6 +122,7 @@
            align="center"
            prop="examinationDate"
            width="150px"
            :formatter="formatDate"
          />
          <el-table-column
@@ -281,10 +284,11 @@
    </div>
    <el-table
      border
      max-height="280"
      height="350"
      ref="tab1"
      :data="checkList"
      v-loading="loading"
      style="width: 100%"
      @selection-change="handleSelectionChangeSecond"
    >
      <el-table-column type="selection" width="55"> </el-table-column>
@@ -345,6 +349,7 @@
  
  <script>
import { getlisList, getJyTjList, asyncPacs } from "@/api/doctor/pacsCheck";
import moment from "moment";
export default {
  dicts: ["dict_tj_status"],
@@ -429,6 +434,17 @@
        this.queryParams.end = null;
      }
      console.log("Query Params:", this.queryParams);
    },
    formatDate(row) {
      if (!row.examinationDate) return "";
      // 使用 moment 解析指定格式的日期字符串
      const date = moment(row.examinationDate, "MM DD YYYY hh:mmA");
      if (!date.isValid()) return "无效日期";
      // 格式化为所需格式
      return date.format("YYYY-MM-DD HH:mm");
    },
    // isSelectable(row) {
    //   return !!row.mzh;
@@ -594,7 +610,7 @@
.table-title {
  text-align: center;
  margin-bottom: 15px;
  margin-bottom: 10px;
}
.row-disabled {
  color: #ccc; /* 设置禁用行的字体颜色 */