From f1d586c0cf89b0b7bafbcf8ed941e899aa625e47 Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Tue, 30 Jul 2024 14:59:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=95=8C=E9=9D=A2=20=E5=A2=9E=E5=8A=A0=E6=9C=BA?= =?UTF-8?q?=E6=9E=84=E5=AD=97=E5=85=B8=E5=92=8C=E7=A7=91=E5=AE=A4=E5=AD=97?= =?UTF-8?q?=E5=85=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/department/index.ts | 54 +++ src/api/system/org/index.ts | 6 +- src/api/system/user/index.ts | 1 + src/layout/components/Menu/src/Menu.vue | 1 + .../applyregistration/applyform/index.vue | 230 ++++++------ src/views/system/apiconfig/ApiconfigForm.vue | 25 +- .../system/department/DepartmentForm.vue | 143 ++++++++ src/views/system/department/index.vue | 197 +++++++++++ src/views/system/doctor/Form.vue | 18 +- src/views/system/examitems/examitemsForm.vue | 36 +- src/views/system/org/index.vue | 12 +- src/views/system/user/UserForm.vue | 29 +- src/views/system/wx/WxForm.vue | 25 +- src/views/ultrasoniccom/ultrasonicForm.vue | 332 ++++++++++-------- 14 files changed, 795 insertions(+), 314 deletions(-) create mode 100644 src/api/system/department/index.ts create mode 100644 src/views/system/department/DepartmentForm.vue create mode 100644 src/views/system/department/index.vue diff --git a/src/api/system/department/index.ts b/src/api/system/department/index.ts new file mode 100644 index 00000000..bfb8f354 --- /dev/null +++ b/src/api/system/department/index.ts @@ -0,0 +1,54 @@ +import request from '@/config/axios' + +// 科室管理 VO +export interface DepartmentVO { + id: string // 主键 + departmentName: string // 科室名称 + createPerson: string // 创建人 + createDate: Date // 创建时间 + departmentRemark: string // 科室备注 + deletePerson: string // 删除操作人 + deleteDate: Date // 删除时间 + departmentAddress: string // 科室具体位置 + orgId: string // 机构ID + departmentCode: string // 科室代号:科室短号 + isDelete: string // 删除标记:1为删除 +} + +// 科室管理 API +export const DepartmentApi = { + // 查询科室管理分页 + getDepartmentPage: async (params: any) => { + return await request.get({ url: `/system/department/page`, params }) + }, + + // 查询科室管理详情 + getDepartment: async (id: number) => { + return await request.get({ url: `/system/department/get?id=` + id }) + }, + + // 查询科室相关数据字典 + getDepartmentList: async () => { + return await request.get({ url: `/system/department/getlist` }) + }, + + // 新增科室管理 + createDepartment: async (data: DepartmentVO) => { + return await request.post({ url: `/system/department/create`, data }) + }, + + // 修改科室管理 + updateDepartment: async (data: DepartmentVO) => { + return await request.put({ url: `/system/department/update`, data }) + }, + + // 删除科室管理 + deleteDepartment: async (id: number) => { + return await request.delete({ url: `/system/department/delete?id=` + id }) + }, + + // 导出科室管理 Excel + exportDepartment: async (params) => { + return await request.download({ url: `/system/department/export-excel`, params }) + }, +} diff --git a/src/api/system/org/index.ts b/src/api/system/org/index.ts index 26999ead..0bdb72bf 100644 --- a/src/api/system/org/index.ts +++ b/src/api/system/org/index.ts @@ -27,7 +27,11 @@ export const OrgApi = { getOrg: async (id: number) => { return await request.get({ url: `/org/org/get?id=` + id }) }, - + // 查询机构管理字典 + getOrglist: async () => { + return await request.get({ url: `/org/org/getlist` }) + }, + // 新增机构管理 createOrg: async (data: OrgVO) => { return await request.post({ url: `/org/org/create`, data }) diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index beb6e515..7f0fc3f4 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -15,6 +15,7 @@ export interface UserVO { remark: string loginDate: Date createTime: Date + orgId:string } // 查询用户管理列表 diff --git a/src/layout/components/Menu/src/Menu.vue b/src/layout/components/Menu/src/Menu.vue index 466cca50..409d9e7e 100644 --- a/src/layout/components/Menu/src/Menu.vue +++ b/src/layout/components/Menu/src/Menu.vue @@ -91,6 +91,7 @@ export default defineComponent({ textColor="var(--left-menu-text-color)" activeTextColor="var(--left-menu-text-active-color)" onSelect={menuSelect} + > {{ default: () => { diff --git a/src/views/applyregistration/applyform/index.vue b/src/views/applyregistration/applyform/index.vue index add7201e..d7bca149 100644 --- a/src/views/applyregistration/applyform/index.vue +++ b/src/views/applyregistration/applyform/index.vue @@ -8,16 +8,16 @@ :inline="true" label-width="68px" > - + - - - + + + @@ -63,7 +63,7 @@ class="!w-150px" /> - + - - - - - - - - - 搜索 重置 - - + - + - + - - + + - - - - + + + + - + - + - + - + @@ -263,22 +268,23 @@ \ No newline at end of file + diff --git a/src/views/system/apiconfig/ApiconfigForm.vue b/src/views/system/apiconfig/ApiconfigForm.vue index bbe709a2..58a6724b 100644 --- a/src/views/system/apiconfig/ApiconfigForm.vue +++ b/src/views/system/apiconfig/ApiconfigForm.vue @@ -46,8 +46,15 @@ - - + + + + @@ -61,6 +68,7 @@ diff --git a/src/views/system/department/index.vue b/src/views/system/department/index.vue new file mode 100644 index 00000000..fe10168c --- /dev/null +++ b/src/views/system/department/index.vue @@ -0,0 +1,197 @@ + + + \ No newline at end of file diff --git a/src/views/system/doctor/Form.vue b/src/views/system/doctor/Form.vue index 8cd20f7c..f997554c 100644 --- a/src/views/system/doctor/Form.vue +++ b/src/views/system/doctor/Form.vue @@ -69,8 +69,14 @@ - - + + + +