PFT肺功能

This commit is contained in:
Flow 2025-07-25 17:21:22 +08:00
parent 9103d5a412
commit fbb696066f
2 changed files with 103 additions and 0 deletions

54
src/api/pft/index.ts Normal file
View File

@ -0,0 +1,54 @@
import request from '@/config/axios'
// 肺功能患者 VO
export interface PftVO {
id: number // 主键
examid: string // 检查ID
regid: string // 患者法规ID
name: string // 患者姓名
gender: string // 性别
age: string // 年龄
orgid: string // 机构ID
orgname: string // 机构名称
managerorg: string // 管理机构
deviceid: string // 设备ID
devicename: string // 设备名称
status: number // 状态: 0=申请中, 1=已申请
weartime: Date // 佩戴时间
analysisresult: string // 分析结果
createtime: Date // 创建时间
updatetime: Date // 更新时间
}
// 肺功能患者 API
export const PftApi = {
// 查询肺功能患者分页
getPftPage: async (params: any) => {
return await request.get({ url: `/system/pft/page`, params })
},
// 查询肺功能患者详情
getPft: async (id: number) => {
return await request.get({ url: `/system/pft/get?id=` + id })
},
// 新增肺功能患者
createPft: async (data: PftVO) => {
return await request.post({ url: `/system/pft/create`, data })
},
// 修改肺功能患者
updatePft: async (data: PftVO) => {
return await request.put({ url: `/system/pft/update`, data })
},
// 删除肺功能患者
deletePft: async (id: number) => {
return await request.delete({ url: `/system/pft/delete?id=` + id })
},
// 导出肺功能患者 Excel
exportPft: async (params) => {
return await request.download({ url: `/system/pft/export-excel`, params })
}
}

49
src/api/pftdata/index.ts Normal file
View File

@ -0,0 +1,49 @@
import request from '@/config/axios'
// 肺功能数据 VO
export interface PftdataVO {
id: number // 主键ID
regid: string // 注册ID
examid: string // 检查ID
weartime: Date // 佩戴时间
measuretime: Date // 测量时间
deviceid: string // 设备ID
devicename: string // 设备名称
pftdata: string // 数据
createtime: Date // 创建时间
updatetime: Date // 更新时间
diagnosis: string // 诊断结论
}
// 肺功能数据 API
export const PftdataApi = {
// 查询肺功能数据分页
getPftdataPage: async (params: any) => {
return await request.get({ url: `/system/pftdata/page`, params })
},
// 查询肺功能数据详情
getPftdata: async (id: number) => {
return await request.get({ url: `/system/pftdata/get?id=` + id })
},
// 新增肺功能数据
createPftdata: async (data: PftdataVO) => {
return await request.post({ url: `/system/pftdata/create`, data })
},
// 修改肺功能数据
updatePftdata: async (data: PftdataVO) => {
return await request.put({ url: `/system/pftdata/update`, data })
},
// 删除肺功能数据
deletePftdata: async (id: number) => {
return await request.delete({ url: `/system/pftdata/delete?id=` + id })
},
// 导出肺功能数据 Excel
exportPftdata: async (params) => {
return await request.download({ url: `/system/pftdata/export-excel`, params })
}
}