From 9749201e5e4a1ae4d2c4c736302b91b43b897700 Mon Sep 17 00:00:00 2001 From: Flow <958079825@qq.com> Date: Sat, 26 Jul 2025 15:39:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=82=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/pft/index.ts | 24 +- src/api/pftdata/index.ts | 14 +- src/patientcom/index.vue | 5 + src/views/analysis/PFT.vue | 0 src/views/analysis/PFT/PFT.vue | 447 +++++++++++++++++ src/views/analysis/PFT/PFT_analysis.vue | 639 ++++++++++++++++++++++++ 6 files changed, 1127 insertions(+), 2 deletions(-) delete mode 100644 src/views/analysis/PFT.vue create mode 100644 src/views/analysis/PFT/PFT.vue create mode 100644 src/views/analysis/PFT/PFT_analysis.vue diff --git a/src/api/pft/index.ts b/src/api/pft/index.ts index c4f6b00..cd81598 100644 --- a/src/api/pft/index.ts +++ b/src/api/pft/index.ts @@ -1,4 +1,5 @@ import request from '@/config/axios' +import { patientinfoVO } from '../patientinfo' // 肺功能患者 VO export interface PftVO { @@ -50,5 +51,26 @@ export const PftApi = { // 导出肺功能患者 Excel exportPft: async (params) => { return await request.download({ url: `/system/pft/export-excel`, params }) + }, + + // 批量新增肺功能患者数据 + insertPftPatientData: async (data: patientinfoVO[]) => { + return await request.post({ url: `/system/pft/insertPftPatientData`, data }) + }, + + // 根据examid更新肺功能分析结果 + updatePftAnalysis: async (examid: string, analysisResult: string) => { + return await request.put({ + url: `/system/pft/updatePftAnalysis`, + params: { + examid, + analysisResult + } + }) + }, + + // 根据examid查询肺功能分析结果 + getPftAnalysis: async (examid: string) => { + return await request.get({ url: `/system/pft/getPftAnalysis`, params: { examid } }) } -} \ No newline at end of file +} diff --git a/src/api/pftdata/index.ts b/src/api/pftdata/index.ts index 36c42f7..3bd2b2f 100644 --- a/src/api/pftdata/index.ts +++ b/src/api/pftdata/index.ts @@ -45,5 +45,17 @@ export const PftdataApi = { // 导出肺功能数据 Excel exportPftdata: async (params) => { return await request.download({ url: `/system/pftdata/export-excel`, params }) + }, + + // 根据检查ID&患者ID获取肺功能数据 + getPftDataByExamidAndRegid: async (examid: string, regid: string) => { + return await request.get({ + url: `/system/pftdata/getByExamidAndRegid?examid=` + examid + '®id=' + regid + }) + }, + + //根据examid®id保存诊断结论 + savePftDataDiagnosis: async (data: any) => { + return await request.put({ url: `/system/pftdata/saveDiagnosisByExamidAndRegid`, data }) } -} \ No newline at end of file +} diff --git a/src/patientcom/index.vue b/src/patientcom/index.vue index 75543ca..da97020 100644 --- a/src/patientcom/index.vue +++ b/src/patientcom/index.vue @@ -210,6 +210,7 @@ import { StaticecgApi } from '@/api/staticecg' import { Spo2infoApi } from '@/api/spo2info' import { CgmApi } from '@/api/cgm/index' import { arterialApi } from '@/api/arterial/index' +import { PftApi } from '@/api/pft/index' const message = useMessage() // 消息弹窗 @@ -373,6 +374,10 @@ const handleConfirm = async () => { // 批量新增动脉硬化患者数据 await arterialApi.insertArterialPatientData(selectedPatients.value) } + if (props.type === 'pft') { + // 批量新增肺功能患者数据 + await PftApi.insertPftPatientData(selectedPatients.value) + } handleCancel() } catch (error) { message.error('操作失败,请重试') diff --git a/src/views/analysis/PFT.vue b/src/views/analysis/PFT.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/analysis/PFT/PFT.vue b/src/views/analysis/PFT/PFT.vue new file mode 100644 index 0000000..fd9bae4 --- /dev/null +++ b/src/views/analysis/PFT/PFT.vue @@ -0,0 +1,447 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + 选择患者 + + + + + + + + + + + + {{ row.gender === '1' ? '男' : row.gender === '2' ? '女' : '未知' }} + + + + + {{ row.age + '岁' }} + + + + + + + + + + + + + + + + + {{ formatTime(row.weartime) }} + + + + + + + + + + + + + + + + + + + + + + + {{ row.devicename }} + + + + + + + + + + 分析 + + + + + 查看 + + + + + 已申请 + 申请 + + + + + + + + + + + diff --git a/src/views/analysis/PFT/PFT_analysis.vue b/src/views/analysis/PFT/PFT_analysis.vue new file mode 100644 index 0000000..774b3c6 --- /dev/null +++ b/src/views/analysis/PFT/PFT_analysis.vue @@ -0,0 +1,639 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + 诊断模板 + + + + + + {{ diag.name }} + + 暂无匹配的诊断模板 + + + + + + 诊断结论 + + + + + + + + + + + 关闭 + 保存结论 + + + + + + + +