From 7db3a6e5b28f2d9e4d611abf727091fe6e722b49 Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Tue, 3 Dec 2024 15:39:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8D=B1=E6=80=A5=E5=80=BC?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/warning/index.ts | 52 +++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/api/system/warning/index.ts diff --git a/src/api/system/warning/index.ts b/src/api/system/warning/index.ts new file mode 100644 index 00000000..824ffd85 --- /dev/null +++ b/src/api/system/warning/index.ts @@ -0,0 +1,52 @@ +import request from '@/config/axios' + +// 危急值记录 VO +export interface WarningVO { + id: string // 主键 + orgId: string // 机构ID + examId: string // 检查ID,一人多个检查的检查id + regId: string // 登记ID :patientid + reportOrgId: string // 上报机构id + reportorgName: string // 上报机构名称 + reportDoctor: string // 上报医生 + reportDate: Date // 上报时间 + warningContent: string // 危急值内容 + receiveDoctor: string // 危急值接收医生 + dealDoctor: string // 处理医生 + checkDateTime: Date // 确认时间 + remark: string // 备注 + warningProcess: string // 危急值报告进程:Json格式 +} + +// 危急值记录 API +export const WarningApi = { + // 查询危急值记录分页 + getWarningPage: async (params: any) => { + return await request.get({ url: `/system/warning/page`, params }) + }, + + // 查询危急值记录详情 + getWarning: async (id: number) => { + return await request.get({ url: `/system/warning/get?id=` + id }) + }, + + // 新增危急值记录 + createWarning: async (data: WarningVO) => { + return await request.post({ url: `/system/warning/create`, data }) + }, + + // 修改危急值记录 + updateWarning: async (data: WarningVO) => { + return await request.put({ url: `/system/warning/update`, data }) + }, + + // 删除危急值记录 + deleteWarning: async (id: number) => { + return await request.delete({ url: `/system/warning/delete?id=` + id }) + }, + + // 导出危急值记录 Excel + exportWarning: async (params) => { + return await request.download({ url: `/system/warning/export-excel`, params }) + }, +} \ No newline at end of file