From 08eaa91ca11c2bff24d0050dfeca99043c94d2de Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Mon, 17 Jul 2023 22:31:30 +0800 Subject: [PATCH] doctor --- src/components/doctorCheck/ButtonList.vue | 207 ++++++++++- src/components/doctorCheck/CheckItemList.vue | 18 +- src/components/doctorCheck/CheckSumSug.vue | 168 +++++---- .../doctorCheck/RegisterCheckList.vue | 3 +- .../patientRegister/PatientRegisterList.vue | 4 +- src/views/doctorCheck/doctorCheck.vue | 330 +++++++++--------- 6 files changed, 477 insertions(+), 253 deletions(-) diff --git a/src/components/doctorCheck/ButtonList.vue b/src/components/doctorCheck/ButtonList.vue index f076b56..9ee0251 100644 --- a/src/components/doctorCheck/ButtonList.vue +++ b/src/components/doctorCheck/ButtonList.vue @@ -1,10 +1,10 @@ \ No newline at end of file diff --git a/src/components/doctorCheck/CheckItemList.vue b/src/components/doctorCheck/CheckItemList.vue index b960f3c..78f237b 100644 --- a/src/components/doctorCheck/CheckItemList.vue +++ b/src/components/doctorCheck/CheckItemList.vue @@ -74,15 +74,15 @@ export default { checkItemList(RegisterCheckId) { console.log(`/api/app/registercheckitem/getlistinregistercheckid?RegisterCheckId=${RegisterCheckId}`) getapi(`/api/app/registercheckitem/getlistinregistercheckid?RegisterCheckId=${RegisterCheckId}`) - .then((res) => { - console.log("checkItemList", res.data); - if (res.code == 1) { - this.doctorCheck.checkItemList = res.data; - } - }) - .catch((err) => { - this.$message({ type: "error", message: `操作失败,原因:${err}` }); - }); + .then((res) => { + console.log("checkItemList", res.data); + if (res.code == 1) { + this.doctorCheck.checkItemList = res.data; + } + }) + .catch((err) => { + this.$message({ type: "error", message: `操作失败,原因:${err}` }); + }); }, diff --git a/src/components/doctorCheck/CheckSumSug.vue b/src/components/doctorCheck/CheckSumSug.vue index 940a756..1acfe13 100644 --- a/src/components/doctorCheck/CheckSumSug.vue +++ b/src/components/doctorCheck/CheckSumSug.vue @@ -1,88 +1,108 @@ - - + //监听事件 + watch: { + //检查项目切换 + "doctorCheck.RegisterCheckId"(newVal, oldVal) { + console.log("watch doctorCheck.RegisterCheckId newVal:", newVal, " oldVal:", oldVal); + if (newVal != oldVal && newVal != '') { + this.checkSummaryList(newVal) + this.checkSuggestionList(newVal) + } + }, + }, +}; + + \ No newline at end of file diff --git a/src/components/doctorCheck/RegisterCheckList.vue b/src/components/doctorCheck/RegisterCheckList.vue index d73826d..e04f32d 100644 --- a/src/components/doctorCheck/RegisterCheckList.vue +++ b/src/components/doctorCheck/RegisterCheckList.vue @@ -1,6 +1,7 @@