| | |
| | | import {dateFormatter} from "@/utils/formatTime"; |
| | | import {JobRecordApi, JobRecordVO} from "@/api/ecg/jobrecord"; |
| | | import {DeviceApi, DeviceVO} from "@/api/ecg/devmanage"; |
| | | import {curDayEnd, curDayStart, formatTimestamp} from "@/utils/dateUtil"; |
| | | import {calculateAge, curDayEnd, curDayStart, formatTimestamp} from "@/utils/dateUtil"; |
| | | import {RoomBedVO} from "@/api/ecg/doctor"; |
| | | import {hiprint} from "vue-plugin-hiprint"; |
| | | import {AppointmentApi, AppointmentVO} from "@/api/ecg/appointment"; |
| | |
| | | //文本 |
| | | const checkTypeName = checkTypeStore.getCheckTypeName(curAppointment.bookCheckType) |
| | | panel.addPrintText({ options: { width: 140, height: 15, top: 20, left: 20, title: checkTypeName, textAlign: 'center', fontSize: 13 } }); |
| | | const patientBaisc = curAppointment.patName + " " + curAppointment.patGender + " " + curAppointment.patAge |
| | | const patientBaisc = curAppointment.patName + " " + calGender(curAppointment.patGender) + " " + calculateAge(curAppointment.patBirthday) + "岁" |
| | | panel.addPrintText({ options: { width: 140, height: 15, top: 40, left: 20, title: patientBaisc, textAlign: 'center' , fontSize: 12} }); |
| | | const ward_bed = curAppointment.patWardDesc + "-" + curAppointment.patBedNo |
| | | panel.addPrintText({ options: { width: 140, height: 15, top: 60, left: 20, title: ward_bed, textAlign: 'center' } }); |
| | |
| | | return PrefixInteger(hour,2) + ":" + PrefixInteger(minute, 2); |
| | | } |
| | | |
| | | const calGender = (_gender: number): string => { |
| | | if (1 === _gender) |
| | | return "男" |
| | | else |
| | | return "女" |
| | | } |
| | | |
| | | const getDevInfo = async () => { |
| | | deviceInfo.value.category = '' |
| | | deviceInfo.value.brand = '' |