eight
2024-10-12 e477d995d50232304ba88f3cb673a780b609cc3e
领用&装机  统计信息
已修改5个文件
30 ■■■■ 文件已修改
src/api/ecg/doctor/index.ts 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/doctor/DevInstall.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/doctor/components/TitleInstallPanel.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/doctor/components/TitlePanel.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/doctor/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 })
  },
  // 召回过号患者
  recallPatient: async (params: PatientVO) => {
    return await request.get({ url: `/ecg/doctor/recall-patient`, params })
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
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>
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}}
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