| | |
| | | "jsbarcode": "^3.11.6", |
| | | "jsencrypt": "3.0.0-rc.1", |
| | | "lodash": "^4.17.21", |
| | | "moment": "^2.29.4", |
| | | "moment": "^2.30.1", |
| | | "nprogress": "0.2.0", |
| | | "pinyin-match": "^1.2.2", |
| | | "print-js": "^1.6.0", |
| | |
| | | size="small" |
| | | :inline="true" |
| | | label-width="68px" |
| | | @submit.native.prevent |
| | | > |
| | | <el-form-item label="体检号" prop="reportDoctorCode"> |
| | | <el-input |
| | |
| | | style="width: 100%" |
| | | @selection-change="handleSelectionChange" |
| | | :header-cell-style="{ background: '#aad8df' }" |
| | | height="350" |
| | | > |
| | | <el-table-column |
| | | fixed |
| | |
| | | align="center" |
| | | prop="examinationDate" |
| | | width="150px" |
| | | :formatter="formatDate" |
| | | /> |
| | | |
| | | <el-table-column |
| | |
| | | </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> |
| | |
| | | |
| | | <script> |
| | | import { getlisList, getJyTjList, asyncPacs } from "@/api/doctor/pacsCheck"; |
| | | import moment from "moment"; |
| | | |
| | | export default { |
| | | dicts: ["dict_tj_status"], |
| | |
| | | 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; |
| | |
| | | |
| | | .table-title { |
| | | text-align: center; |
| | | margin-bottom: 15px; |
| | | margin-bottom: 10px; |
| | | } |
| | | .row-disabled { |
| | | color: #ccc; /* 设置禁用行的字体颜色 */ |
| | |
| | | size="small" |
| | | :inline="true" |
| | | label-width="68px" |
| | | @submit.native.prevent |
| | | > |
| | | <el-form-item label="体检号" prop="reportDoctorCode"> |
| | | <el-input |
| | |
| | | align="center" |
| | | prop="examinationDate" |
| | | width="150px" |
| | | :formatter="formatDate" |
| | | /> |
| | | |
| | | <el-table-column label="门诊号" align="center" prop="mzh" width="140px" /> |
| | |
| | | |
| | | <script> |
| | | import { getLeftList, getRightList, asyncPacs } from "@/api/doctor/pacsCheck"; |
| | | import moment from "moment"; |
| | | |
| | | export default { |
| | | dicts: ["dict_tj_status"], |
| | |
| | | tableRowClassName({ row }) { |
| | | return !row.mzh ? "row-disabled" : ""; |
| | | }, |
| | | 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"); |
| | | }, |
| | | |
| | | handleSelectionChange(val) { |
| | | console.log(val); |