ecg打印模板图片签名
This commit is contained in:
parent
1f547a53b2
commit
48a93cf55f
11
src/api/ECG/ReportInfoECG/index.ts
Normal file
11
src/api/ECG/ReportInfoECG/index.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
/*
|
||||
* 李传洋
|
||||
* ReportInfoECGApi
|
||||
*/
|
||||
export const ReportInfoECGApi = {
|
||||
getDoctorBydoctorID: async (doctorID: any) => {
|
||||
return await request.get({ url: `/doctor/getBydoctorID?doctorID=` + doctorID })
|
||||
}
|
||||
}
|
@ -38,7 +38,21 @@
|
||||
<el-col :span="7">住院号:{{ infoParams.regId }}</el-col>
|
||||
<el-col :span="5">RV5+SV1:{{ extraInfo.rv5Sv1 }}</el-col>
|
||||
<el-col :span="7">科室:{{ infoParams.billDoctorDepartment }}</el-col>
|
||||
<el-col :span="5">报告医生:{{ infoParams.doctorname }}</el-col>
|
||||
<el-col :span="5">
|
||||
<span>报告医生:</span>
|
||||
<span>
|
||||
<el-image
|
||||
alt=""
|
||||
fit="fill"
|
||||
loading="eager"
|
||||
style="vertical-align: text-top; width: 14mm; margin-top: -4mm"
|
||||
:src="userProfile_doctor.esignatureUrl"
|
||||
crossorigin="anonymous"
|
||||
v-if="userProfile_doctor.esignatureUrl"
|
||||
/>
|
||||
<span v-else> {{ userProfile_doctor.doctorName }} </span>
|
||||
</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
<hr v-if="false" />
|
||||
@ -140,8 +154,10 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { formatDate } from '@/utils/formatTime'
|
||||
import { getUserProfile } from '@/api/system/user/profile'
|
||||
import html2canvas from 'html2canvas'
|
||||
import htmlToPdf from '@/utils/htmlPdf'
|
||||
import { ReportInfoECGApi } from '@/api/ECG/ReportInfoECG'
|
||||
|
||||
defineOptions({ name: 'ReportInfoECG' })
|
||||
/*
|
||||
@ -219,6 +235,8 @@ const topCanvasL = ref<any>(null)
|
||||
const topCanvasR = ref<any>(null)
|
||||
|
||||
/** 数据内容 **/
|
||||
const userProfile = ref<any>({})
|
||||
const userProfile_doctor = ref<any>({})
|
||||
const age = computed(() => {
|
||||
let birthdate = infoParams.birthday
|
||||
if (!birthdate) {
|
||||
@ -601,6 +619,11 @@ const createImage = async () => {
|
||||
|
||||
/** 钩子方法 **/
|
||||
onMounted(async () => {
|
||||
userProfile.value = await getUserProfile()
|
||||
if (userProfile.value)
|
||||
userProfile_doctor.value = await ReportInfoECGApi.getDoctorBydoctorID(
|
||||
userProfile.value.doctorID
|
||||
)
|
||||
//heightoff.value = (leftCanvas.value.height - 100) / 6
|
||||
heightoff.value = (618 - 0) / 6
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user