From e477d995d50232304ba88f3cb673a780b609cc3e Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期六, 12 十月 2024 18:03:57 +0800
Subject: [PATCH] 领用&装机  统计信息

---
 src/views/ecg/doctor/components/TitlePanel.vue        |    2 +-
 src/views/ecg/doctor/DevInstall.vue                   |    7 ++++---
 src/views/ecg/doctor/index.vue                        |    6 +++---
 src/views/ecg/doctor/components/TitleInstallPanel.vue |    4 ++--
 src/api/ecg/doctor/index.ts                           |   11 +++++++++++
 5 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/src/api/ecg/doctor/index.ts b/src/api/ecg/doctor/index.ts
index 74f9894..040377d 100644
--- a/src/api/ecg/doctor/index.ts
+++ b/src/api/ecg/doctor/index.ts
@@ -16,6 +16,7 @@
 export interface PatientStatisticVO {
   finishedNum: number
   readyNum: number
+  receivedNum: number
   passedNum: number
   queuingNum: number
 }
@@ -88,6 +89,16 @@
     return await request.get({ url: `/ecg/doctor/get-patient-statistic`, params })
   },
 
+  // 璁惧棰嗙敤缁熻
+  getDevReadyStatistic: async (params: RoomBedVO) => {
+    return await request.get({ url: `/ecg/doctor/get-dev-ready-statistic`, params })
+  },
+
+  // 璁惧瑁呮満缁熻
+  getDevInstallStatistic: async (params: RoomBedVO) => {
+    return await request.get({ url: `/ecg/doctor/get-dev-install-statistic`, params })
+  },
+
   // 鍙洖杩囧彿鎮h��
   recallPatient: async (params: PatientVO) => {
     return await request.get({ url: `/ecg/doctor/recall-patient`, params })
diff --git a/src/views/ecg/doctor/DevInstall.vue b/src/views/ecg/doctor/DevInstall.vue
index c2d66dc..d9e1158 100644
--- a/src/views/ecg/doctor/DevInstall.vue
+++ b/src/views/ecg/doctor/DevInstall.vue
@@ -23,6 +23,7 @@
 const patientStat = ref<PatientStatisticVO>({
     finishedNum: 0,
     readyNum: 0,
+    receivedNum: 0,
     passedNum: 0,
     queuingNum: 0
 })
@@ -40,7 +41,7 @@
   finishFlag.value = true
   try {
     patientList.value = await DoctorApi.finishInstallNextPatient(roomBedVO.value)
-    patientStat.value = await DoctorApi.getPatientStatistic(roomBedVO.value)
+    patientStat.value = await DoctorApi.getDevInstallStatistic(roomBedVO.value)
     getInstallingPatient()
   } finally {
     finishFlag.value = false
@@ -51,7 +52,7 @@
   passFlag.value = true
   try {
     patientList.value = await DoctorApi.passNextPatient(roomBedVO.value)
-    patientStat.value = await DoctorApi.getPatientStatistic(roomBedVO.value)
+    patientStat.value = await DoctorApi.getDevInstallStatistic(roomBedVO.value)
     getInstallingPatient()
   } finally {
     passFlag.value = false
@@ -84,7 +85,7 @@
 
   patientList.value = await DoctorApi.getReceivedPatientList(roomBedVO.value)
   getInstallingPatient()
-  patientStat.value = await DoctorApi.getPatientStatistic(roomBedVO.value)
+  patientStat.value = await DoctorApi.getDevInstallStatistic(roomBedVO.value)
   const queueVO2 = await DoctorApi.bedDoctorGet(roomBedVO.value)
   if (queueVO2.status === 20)
     state.value = true
diff --git a/src/views/ecg/doctor/components/TitleInstallPanel.vue b/src/views/ecg/doctor/components/TitleInstallPanel.vue
index 25f9e62..25ae9ac 100644
--- a/src/views/ecg/doctor/components/TitleInstallPanel.vue
+++ b/src/views/ecg/doctor/components/TitleInstallPanel.vue
@@ -29,8 +29,8 @@
       {{room.roomName || ''}} {{room.bedNo || ''}}
     </div>
     <div>
-      宸茶鏈簕{patientStatistic.finishedNum==undefined ? 0 : patientStatistic.finishedNum}}
-      宸查鐢▄{patientStatistic.readyNum==undefined ? 0 : patientStatistic.readyNum}}
+      宸茶鏈簕{patientStatistic.finishedNum??0}}
+      宸查鐢▄{patientStatistic.receivedNum??0}}
     </div>
 </div>
 
diff --git a/src/views/ecg/doctor/components/TitlePanel.vue b/src/views/ecg/doctor/components/TitlePanel.vue
index 6a80cf4..c90736f 100644
--- a/src/views/ecg/doctor/components/TitlePanel.vue
+++ b/src/views/ecg/doctor/components/TitlePanel.vue
@@ -25,7 +25,7 @@
       {{room.roomName || ''}} {{room.bedNo || ''}}
     </div>
     <div>
-    宸插氨璇妠{patientStatistic.finishedNum==undefined ? 0 : patientStatistic.finishedNum}}
+    宸查鐢▄{patientStatistic.finishedNum==undefined ? 0 : patientStatistic.finishedNum}}
     鍑嗗涓瓄{patientStatistic.readyNum==undefined ? 0 : patientStatistic.readyNum}}
     杩囧彿{{patientStatistic.passedNum==undefined ? 0 : patientStatistic.passedNum}}
     鎺掗槦涓瓄{patientStatistic.queuingNum==undefined ? 0 : patientStatistic.queuingNum}}
diff --git a/src/views/ecg/doctor/index.vue b/src/views/ecg/doctor/index.vue
index 49badb0..7f032fe 100644
--- a/src/views/ecg/doctor/index.vue
+++ b/src/views/ecg/doctor/index.vue
@@ -40,7 +40,7 @@
   finishFlag.value = true
   try {
     patientList.value = await DoctorApi.finishReceiveNextPatient(roomBedVO)
-    patientStat.value = await DoctorApi.getPatientStatistic(roomBedVO)
+    patientStat.value = await DoctorApi.getDevReadyStatistic(roomBedVO)
     getOnstagePatient()
   } finally {
     finishFlag.value = false
@@ -51,7 +51,7 @@
   passFlag.value = true
   try {
     patientList.value = await DoctorApi.passNextPatient(roomBedVO)
-    patientStat.value = await DoctorApi.getPatientStatistic(roomBedVO)
+    patientStat.value = await DoctorApi.getDevReadyStatistic(roomBedVO)
     getOnstagePatient()
   } finally {
     passFlag.value = false
@@ -84,7 +84,7 @@
 
   patientList.value = await DoctorApi.getPatientList(roomBedVO)
   getOnstagePatient()
-  patientStat.value = await DoctorApi.getPatientStatistic(roomBedVO)
+  patientStat.value = await DoctorApi.getDevReadyStatistic(roomBedVO)
   const queueVO2 = await DoctorApi.bedDoctorGet(roomBedVO)
   if (queueVO2.status === 20)
     state.value = true

--
Gitblit v1.9.3