From d4c86d3527045f83c7b81921390003c543e214c4 Mon Sep 17 00:00:00 2001 From: Flow <958079825@qq.com> Date: Mon, 14 Jul 2025 11:12:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9F=BA=E7=A1=80=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/org/index.ts | 7 +- src/api/patient/index.ts | 1 + src/api/patientinfo/index.ts | 51 ++++ src/views/org/OrgForm.vue | 111 ++++++-- src/views/org/index.vue | 143 ++-------- src/views/patientinfo/index.vue | 308 ++++++++++++++++++++++ src/views/patientinfo/patientinfoForm.vue | 165 ++++++++++++ 7 files changed, 647 insertions(+), 139 deletions(-) create mode 100644 src/api/patient/index.ts create mode 100644 src/api/patientinfo/index.ts create mode 100644 src/views/patientinfo/index.vue create mode 100644 src/views/patientinfo/patientinfoForm.vue diff --git a/src/api/org/index.ts b/src/api/org/index.ts index 5387614..d515196 100644 --- a/src/api/org/index.ts +++ b/src/api/org/index.ts @@ -43,5 +43,10 @@ export const OrgApi = { // 导出机构 Excel exportOrg: async (params) => { return await request.download({ url: `/system/org/export-excel`, params }) + }, + + // 查询上级机构 + getParentOrgList: async () => { + return await request.get({ url: `/system/org/parent-org-list` }) } -} \ No newline at end of file +} diff --git a/src/api/patient/index.ts b/src/api/patient/index.ts new file mode 100644 index 0000000..0519ecb --- /dev/null +++ b/src/api/patient/index.ts @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/api/patientinfo/index.ts b/src/api/patientinfo/index.ts new file mode 100644 index 0000000..6aadb3c --- /dev/null +++ b/src/api/patientinfo/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +// 人员信息表(患者信息表) VO +export interface patientinfoVO { + id: number // 主键ID,自增 + name: string // 患者姓名 + idcard: string // 身份证号 + regid: string // 注册ID + orgid: string // 机构ID + orgname: string // 机构名称 + phone: string // 手机号 + gender: number // 性别:0-未知,1-男,2-女 + birthdate: Date // 出生日期 + address: string // 地址 + status: number // 状态:0-禁用,1-启用 + createtime: Date // 创建时间 + updatetime: Date // 更新时间 +} + +// 人员信息表(患者信息表) API +export const patientinfoApi = { + // 查询人员信息表(患者信息表)分页 + getpatientinfoPage: async (params: any) => { + return await request.get({ url: `/system/patientinfo/page`, params }) + }, + + // 查询人员信息表(患者信息表)详情 + getpatientinfo: async (id: number) => { + return await request.get({ url: `/system/patientinfo/get?id=` + id }) + }, + + // 新增人员信息表(患者信息表) + createpatientinfo: async (data: patientinfoVO) => { + return await request.post({ url: `/system/patientinfo/create`, data }) + }, + + // 修改人员信息表(患者信息表) + updatepatientinfo: async (data: patientinfoVO) => { + return await request.put({ url: `/system/patientinfo/update`, data }) + }, + + // 删除人员信息表(患者信息表) + deletepatientinfo: async (id: number) => { + return await request.delete({ url: `/system/patientinfo/delete?id=` + id }) + }, + + // 导出人员信息表(患者信息表) Excel + exportpatientinfo: async (params) => { + return await request.download({ url: `/system/patientinfo/export-excel`, params }) + } +} \ No newline at end of file diff --git a/src/views/org/OrgForm.vue b/src/views/org/OrgForm.vue index f0b534a..9c6dfbd 100644 --- a/src/views/org/OrgForm.vue +++ b/src/views/org/OrgForm.vue @@ -7,9 +7,6 @@ label-width="100px" v-loading="formLoading" > - - - @@ -22,14 +19,33 @@ - - + + + + + - - - - - + + + + \ No newline at end of file + diff --git a/src/views/org/index.vue b/src/views/org/index.vue index f8e3881..d1346aa 100644 --- a/src/views/org/index.vue +++ b/src/views/org/index.vue @@ -8,15 +8,6 @@ :inline="true" label-width="68px" > - - - - - - - - - - - - - - - - - - - - + - - - + class="!w-180px" + > + + + 搜索 重置 - + 新增 - + 导出 @@ -118,40 +44,27 @@ - - + + + - - - + + + @@ -169,9 +82,8 @@ \ No newline at end of file + diff --git a/src/views/patientinfo/index.vue b/src/views/patientinfo/index.vue new file mode 100644 index 0000000..02d6cbf --- /dev/null +++ b/src/views/patientinfo/index.vue @@ -0,0 +1,308 @@ + + + diff --git a/src/views/patientinfo/patientinfoForm.vue b/src/views/patientinfo/patientinfoForm.vue new file mode 100644 index 0000000..344e154 --- /dev/null +++ b/src/views/patientinfo/patientinfoForm.vue @@ -0,0 +1,165 @@ + +