| | |
| | | export interface PatientStatisticVO { |
| | | finishedNum: number |
| | | readyNum: number |
| | | receivedNum: number |
| | | passedNum: number |
| | | queuingNum: number |
| | | } |
| | |
| | | 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 }) |
| | |
| | | const patientStat = ref<PatientStatisticVO>({ |
| | | finishedNum: 0, |
| | | readyNum: 0, |
| | | receivedNum: 0, |
| | | passedNum: 0, |
| | | queuingNum: 0 |
| | | }) |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | |
| | | 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 |
| | |
| | | {{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> |
| | | |
| | |
| | | {{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}} |
| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | |
| | | 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 |