| | |
| | | align="center" |
| | | label="选择" |
| | | width="40" |
| | | |
| | | > |
| | | <!-- :selectable="isSelectable" --> |
| | | </el-table-column> |
| | |
| | | |
| | | <script> |
| | | import { getLeftList, getRightList, asyncPacs } from "@/api/doctor/pacsCheck"; |
| | | import moment from "moment"; |
| | | |
| | | export default { |
| | | dicts: ["dict_tj_status"], |
| | |
| | | }); |
| | | }, |
| | | methods: { |
| | | |
| | | handleDateChange(val){ |
| | | if (val && val.length === 2) { |
| | | this.queryParams.start = val[0]; // 设置开始时间 |
| | |
| | | this.queryParams.start = null; |
| | | this.queryParams.end = null; |
| | | } |
| | | console.log('Query Params:', this.queryParams); |
| | | |
| | | console.log("Query Params:", this.queryParams); |
| | | }, |
| | | isSelectable(row) { |
| | | return !!row.mzh; |
| | | }, |
| | | // isSelectable(row) { |
| | | // return !!row.mzh; |
| | | // }, |
| | | tableRowClassName({ row }) { |
| | | return !row.mzh ? "row-disabled" : ""; |
| | | }, |
| | |
| | | |
| | | this.selectedFirstTable = selectedRow; |
| | | console.log("当前选中的行数据:", this.selectedFirstTable); |
| | | this.fetchRightTableData(selectedRow); |
| | | const code = this.queryParams.tjNum; |
| | | if (!code) { |
| | | this.$message.warning("体检号不能为空!"); |
| | | return; // 直接返回,避免继续执行请求 |
| | | } |
| | | this.loading = true; |
| | | getRightList(code).then((response) => { |
| | | this.checkList = response.data; |
| | | this.loading = false; |
| | | }); |
| | | // this.fetchRightTableData(selectedRow); |
| | | } else { |
| | | this.selectedFirstTable = null; |
| | | this.checkList = []; |
| | |
| | | if (res.code == 200) { |
| | | this.loading = false; |
| | | this.exaLists = res.data; |
| | | this.code = this.exaLists.mzh; |
| | | // this.code = this.exaLists.mzh; |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | |
| | | this.clearTimeSet = null; |
| | | this.$modal.closeLoading(); |
| | | // this.$modal.error("操作失败,请稍后重试"); |
| | | }) |
| | | }); |
| | | }, |
| | | }, |
| | | }; |