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 @@ - - + + + +