From 9769914f3023cfa2b69b1ee79b9ea4f6cf73d5f2 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Mon, 5 Feb 2024 17:23:56 +0800 Subject: [PATCH] doctor --- src/components/doctorCheck/ButtonList.vue | 5 ++--- src/components/doctorCheck/CheckSumSug.vue | 22 ++++++++++++++----- .../doctorCheck/PatientRegisterBase.vue | 9 +++----- .../doctorCheck/PatientRegisterList.vue | 2 +- .../doctorCheck/RegisterCheckList.vue | 10 ++++++--- src/components/sumDoctorCheck/ButtonList.vue | 2 +- src/views/doctorCheck/doctorCheck.vue | 2 +- 7 files changed, 31 insertions(+), 21 deletions(-) diff --git a/src/components/doctorCheck/ButtonList.vue b/src/components/doctorCheck/ButtonList.vue index 14333d6..61f7a9f 100644 --- a/src/components/doctorCheck/ButtonList.vue +++ b/src/components/doctorCheck/ButtonList.vue @@ -68,7 +68,7 @@
+ :style="`z-index:2;border-radius: 10px;border: 1px solid #000;background-color:#FFF; position: absolute;top:70px;right:10px;width:300px;height: ${window.pageHeight - 42 - 5 - 30}px;opacity:1;`"> @@ -83,7 +83,7 @@ - { diff --git a/src/components/doctorCheck/CheckSumSug.vue b/src/components/doctorCheck/CheckSumSug.vue index 2d569e3..0da2744 100644 --- a/src/components/doctorCheck/CheckSumSug.vue +++ b/src/components/doctorCheck/CheckSumSug.vue @@ -66,7 +66,7 @@ import Sortable from "sortablejs"; import { getapi, postapi, putapi, deletapi } from "@/api/api"; export default { components: {}, - props:["isCheckPicture","optGrant","addSummary","btnMakeDiagnosis","save","audit","unAudit","btnLineUp"], + props:["registerCheckId","isCheckPicture","optGrant","addSummary","btnMakeDiagnosis","save","audit","unAudit","btnLineUp"], data() { return { @@ -82,7 +82,7 @@ export default { }, computed: { - ...mapState(['window','dict', 'doctorCheck']), + ...mapState(['window','dataTransOpts','dict', 'doctorCheck']), //小结宽度 sumWidth(){ @@ -215,11 +215,21 @@ export default { //监听事件 watch: { //检查项目切换 - "doctorCheck.RegisterCheckId"(newVal, oldVal) { - console.log("watch doctorCheck.RegisterCheckId newVal:", newVal, " oldVal:", oldVal); - this.checkSummaryList(newVal) - this.checkSuggestionList(newVal) + // "doctorCheck.RegisterCheckId"(newVal, oldVal) { + // console.log("watch doctorCheck.RegisterCheckId newVal:", newVal, " oldVal:", oldVal); + // this.checkSummaryList(newVal) + // this.checkSuggestionList(newVal) + // }, + //检查项目未切换换时 也可以强制刷新数据 + "dataTransOpts.refresh.register_check_item":{ + immediate:true, + handler(newVal, oldVal) { + console.log(`watch 小结 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.registerCheckId}`); + this.checkSummaryList(this.registerCheckId) + this.checkSuggestionList(this.registerCheckId) + } }, + }, }; diff --git a/src/components/doctorCheck/PatientRegisterBase.vue b/src/components/doctorCheck/PatientRegisterBase.vue index 5fc1d27..b0c3802 100644 --- a/src/components/doctorCheck/PatientRegisterBase.vue +++ b/src/components/doctorCheck/PatientRegisterBase.vue @@ -3,18 +3,15 @@
条码号 - +
档案号 - +
姓名 - +
性别 diff --git a/src/components/doctorCheck/PatientRegisterList.vue b/src/components/doctorCheck/PatientRegisterList.vue index 966964a..d8b1ce1 100644 --- a/src/components/doctorCheck/PatientRegisterList.vue +++ b/src/components/doctorCheck/PatientRegisterList.vue @@ -163,7 +163,7 @@ - diff --git a/src/components/doctorCheck/RegisterCheckList.vue b/src/components/doctorCheck/RegisterCheckList.vue index 7e84be4..b8d2530 100644 --- a/src/components/doctorCheck/RegisterCheckList.vue +++ b/src/components/doctorCheck/RegisterCheckList.vue @@ -8,13 +8,13 @@