From be889c5e236a7b5e63ed251dc0dbba5314e8fed1 Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Wed, 25 Dec 2024 17:09:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BF=83=E7=94=B5=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E7=AB=99=E4=BF=9D=E5=AD=98=E7=94=9F=E6=88=90PDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tblist/ecganalysisparas/index.ts | 55 ++++++++++++++---------- src/views/ECG/ECGForm.vue | 47 +++++++++++++------- 2 files changed, 64 insertions(+), 38 deletions(-) diff --git a/src/api/tblist/ecganalysisparas/index.ts b/src/api/tblist/ecganalysisparas/index.ts index e9b69535..3c026e77 100644 --- a/src/api/tblist/ecganalysisparas/index.ts +++ b/src/api/tblist/ecganalysisparas/index.ts @@ -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间期 @@ -34,7 +34,11 @@ export interface EcganalysisparasVO { ecgDataFilePath: string // 心电数据文件的路径: 路径或URL ecgJsonDataFilePath: string // 心电数据json格式的数据文件路径:路径或URL createDate: Date // 分析参数的创建时间 - regId:String//患者ID + regId: String//患者ID + name:String + gender:String + age:String + diagtime:undefined } // 心电分析数据 API @@ -58,10 +62,10 @@ export const EcganalysisparasApi = { updateEcganalysisparas: async (data: EcganalysisparasVO) => { return await request.put({ url: `/tblist/ecganalysisparas/update`, data }) }, - // 保存心电分析数据 - SaveEcganalysisparas: async (data: EcganalysisparasVO) => { - return await request.put({ url: `/tblist/ecganalysisparas/save`, data }) - }, + // 保存心电分析数据 + SaveEcganalysisparas: async (data: EcganalysisparasVO) => { + return await request.put({ url: `/tblist/ecganalysisparas/save`, data }) + }, // 删除心电分析数据 deleteEcganalysisparas: async (id: number) => { @@ -73,20 +77,25 @@ export const EcganalysisparasApi = { return await request.download({ url: `/tblist/ecganalysisparas/export-excel`, params }) }, // 按照examId查询心电分析数据详情 - getexamIDdata: async (examId: String,orgId:String) => { - return await request.get({ url: `/tblist/ecganalysisparas/getexamIDdata?examId=${examId} &orgId=${orgId}`}) + getexamIDdata: async (examId: String, orgId: String) => { + return await request.get({ url: `/tblist/ecganalysisparas/getexamIDdata?examId=${examId} &orgId=${orgId}` }) + }, + + // 获取所有心电分析数据记录 + getlist: async (regId: String, orgId: String) => { + return await request.get({ url: `/tblist/ecganalysisparas/list?regId=${regId}&orgId=${orgId}` }) + }, + // 获取开始和结束时间的心电分析数据记录 + getDateStaAndEndData: async (doctorName: String, startDate: String, endDate: String) => { + return await request.get({ url: `/tblist/ecganalysisparas/getDateStaAndEndData?doctorName=${doctorName}&TimeSta=${startDate}&TimeEnd=${endDate}` }) + }, + // 添加导出Excel的方法 + 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 }) }, - - // 获取所有心电分析数据记录 - getlist: async (regId:String,orgId:String) => { - return await request.get({ url: `/tblist/ecganalysisparas/list?regId=${regId}&orgId=${orgId}` }) - }, - // 获取开始和结束时间的心电分析数据记录 - getDateStaAndEndData: async (doctorName:String,startDate:String,endDate:String) => { - return await request.get({ url: `/tblist/ecganalysisparas/getDateStaAndEndData?doctorName=${doctorName}&TimeSta=${startDate}&TimeEnd=${endDate}` }) - }, - // 添加导出Excel的方法 - exportWorkloadExcel: async (doctorName:string,startTime:string,endTime:string) => { - return await request.download({ url: `/tblist/ecganalysisparas/export-workload-excel?doctorName=${doctorName}&startTime=${startTime}&endTime=${endTime} ` }) - }, } diff --git a/src/views/ECG/ECGForm.vue b/src/views/ECG/ECGForm.vue index edcc76a9..f24a5d1f 100644 --- a/src/views/ECG/ECGForm.vue +++ b/src/views/ECG/ECGForm.vue @@ -420,7 +420,9 @@ @click="getuporghiorgid(Primarykey, orgid)" >申请诊断 - 保存 + 保存 @@ -561,7 +563,7 @@ - +