修改心电工作站保存生成PDF

This commit is contained in:
lxd 2024-12-25 17:09:38 +08:00
parent a958b24c90
commit be889c5e23
2 changed files with 64 additions and 38 deletions

View File

@ -7,10 +7,10 @@ export interface EcganalysisparasVO {
examId: string // 检查ID体检编号、住院号、门诊号等
collectionTime: Date // 采集时间
hr: string // 心率
pAxle: string // P电轴
paxle: string // P电轴
qrsAxle: string // QRS电轴
tAxle: string // T电轴
pTimeLimit: string // P波时限
taxle: string // T电轴
ptimeLimit: string // P波时限
pr: string // PR间期
qrsTimeLimit: string // QRS时限
qt: string // QT间期
@ -35,6 +35,10 @@ export interface EcganalysisparasVO {
ecgJsonDataFilePath: string // 心电数据json格式的数据文件路径路径或URL
createDate: Date // 分析参数的创建时间
regId: String//患者ID
name:String
gender:String
age:String
diagtime:undefined
}
// 心电分析数据 API
@ -89,4 +93,9 @@ export const EcganalysisparasApi = {
exportWorkloadExcel: async (doctorName: string, startTime: string, endTime: string) => {
return await request.download({ url: `/tblist/ecganalysisparas/export-workload-excel?doctorName=${doctorName}&startTime=${startTime}&endTime=${endTime} ` })
},
// 调用打印服务生成pdf
SaveEcgPdf: async (data: EcganalysisparasVO) => {
return await request.put({ url: `/tblist/ecganalysisparas/SaveEcgPdf`, data })
},
}

View File

@ -420,7 +420,9 @@
@click="getuporghiorgid(Primarykey, orgid)"
>申请诊断</el-button
>
<el-button style="width: 200px" type="primary" @click="save" :disabled="savedisabled">保存</el-button>
<el-button style="width: 200px" type="primary" @click="save" :disabled="savedisabled"
>保存</el-button
>
</div>
</el-form>
</div>
@ -644,7 +646,7 @@ const open = async (row: any) => {
orgid.value = row.orgId
rowinfo.value = row
// console.log( rowinfo.value)
const data = await EcganalysisparasApi.getexamIDdata('MZCF0191729074962197_44', orgid.value)
const data = await EcganalysisparasApi.getexamIDdata(rowinfo.value.examId, orgid.value)
queryParams.value = data
snapshotTime.value = formattedDate(queryParams.value.snapshotTime)
await getlogininfo()
@ -740,13 +742,12 @@ const queryParams = ref({
})
//
async function save() {
saveFormVO.value.id = queryParams.value.id
saveFormVO.value.hr = queryParams.value.hr
saveFormVO.value.pAxle = queryParams.value.paxle
saveFormVO.value.paxle = queryParams.value.paxle
saveFormVO.value.qrsAxle = queryParams.value.qrsAxle
saveFormVO.value.tAxle = queryParams.value.taxle
saveFormVO.value.qrsTimeLimit = queryParams.value.ptimeLimit
saveFormVO.value.taxle = queryParams.value.taxle
saveFormVO.value.ptimeLimit = queryParams.value.ptimeLimit
saveFormVO.value.pr = queryParams.value.pr
saveFormVO.value.qrsTimeLimit = queryParams.value.qrsTimeLimit
saveFormVO.value.qt = queryParams.value.qt
@ -770,10 +771,20 @@ async function save() {
await PatientexamlistApi.examineupdatelist(examineFormVO.value)
//
await getPatientexamlist(keyid.value)
//pdf
const data = await EcganalysisparasApi.getexamIDdata('MZCF0191729074962197_44', orgid.value)
const data = await EcganalysisparasApi.getexamIDdata(rowinfo.value.examId, orgid.value)
queryParams.value = data
message.alertSuccess('保存成功')
//pdf
saveFormVO.value.regId = id.value
saveFormVO.value.examId = rowinfo.value.examId
saveFormVO.value.orgId = orgid.value
saveFormVO.value.name = rowinfo.value.pname
saveFormVO.value.gender = rowinfo.value.gender
saveFormVO.value.age = age.value
saveFormVO.value.diagtime = queryParams.value.doctorDiagTime
saveFormVO.value.ecgJsonDataFilePath = queryParams.value.ecgJsonDataFilePath
await EcganalysisparasApi.SaveEcgPdf(saveFormVO.value)
emit('success')
//ElMessage.info('pdf')
@ -851,7 +862,13 @@ const handleUpdate = (newValue) => {
}
//
function ECGApplyDialog() {
ECGApply.value.opendiag('1',rowinfo.value,Profilevo.value.orgId,Profilevo.value.doctorname,Profilevo.value.id)
ECGApply.value.opendiag(
'1',
rowinfo.value,
Profilevo.value.orgId,
Profilevo.value.doctorname,
Profilevo.value.id
)
}
//
function openECGDialog() {