From 10d9b7bd6f7fc0cd67e210ba3ffbd74667a56f00 Mon Sep 17 00:00:00 2001 From: duhe Date: Tue, 25 Feb 2025 09:08:04 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E7=96=BE=E7=97=85=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E5=89=8D=E5=8F=B0=E4=BB=A3=E7=A0=81=20up=20by=20dh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/catalog/disease/authRole.vue | 112 ++++ .../catalog/disease/components/disease.js | 84 +++ .../src/views/catalog/disease/index.vue | 558 ++++++++++++++++++ .../views/catalog/disease/profile/index.vue | 87 +++ .../catalog/disease/profile/resetPwd.vue | 57 ++ .../catalog/disease/profile/userAvatar.vue | 171 ++++++ .../catalog/disease/profile/userInfo.vue | 67 +++ 7 files changed, 1136 insertions(+) create mode 100644 openhis-ui-vue3/src/views/catalog/disease/authRole.vue create mode 100644 openhis-ui-vue3/src/views/catalog/disease/components/disease.js create mode 100644 openhis-ui-vue3/src/views/catalog/disease/index.vue create mode 100644 openhis-ui-vue3/src/views/catalog/disease/profile/index.vue create mode 100644 openhis-ui-vue3/src/views/catalog/disease/profile/resetPwd.vue create mode 100644 openhis-ui-vue3/src/views/catalog/disease/profile/userAvatar.vue create mode 100644 openhis-ui-vue3/src/views/catalog/disease/profile/userInfo.vue diff --git a/openhis-ui-vue3/src/views/catalog/disease/authRole.vue b/openhis-ui-vue3/src/views/catalog/disease/authRole.vue new file mode 100644 index 00000000..0b5c14bc --- /dev/null +++ b/openhis-ui-vue3/src/views/catalog/disease/authRole.vue @@ -0,0 +1,112 @@ + + + diff --git a/openhis-ui-vue3/src/views/catalog/disease/components/disease.js b/openhis-ui-vue3/src/views/catalog/disease/components/disease.js new file mode 100644 index 00000000..3f947607 --- /dev/null +++ b/openhis-ui-vue3/src/views/catalog/disease/components/disease.js @@ -0,0 +1,84 @@ +import request from '@/utils/request' +import { parseStrEmpty } from "@/utils/openhis"; + +// 查询病种目录列表 +export function getDiseaseList(query) { + return request({ + url: '/datadictionary/disease/information-page', + method: 'get', + params: query + }) +} + +// 查询病种目录详细 +export function getDiseaseOne(id) { + return request({ + url: '/datadictionary/disease/information-one', + method: 'get', + params: id + }) +} + +// 新增病种目录 +export function addDisease(data) { + return request({ + url: '/datadictionary/disease/information', + method: 'post', + data: data + }) +} + +// 修改病种目录 +export function editDisease(data) { + return request({ + url: '/datadictionary/disease/information', + method: 'put', + data: data + }) +} + +// 删除病种目录 +export function delUser(userId) { + return request({ + url: '/system/user/' + userId, + method: 'delete' + }) +} + +// 用户状态修改 +export function changeUserStatus(userId, status) { + const data = { + userId, + status + } + return request({ + url: '/system/user/changeStatus', + method: 'put', + data: data + }) +} + +// 查询用户个人信息 +export function getUserProfile() { + return request({ + url: '/system/user/profile', + method: 'get' + }) +} + +// 修改用户个人信息 +export function updateUserProfile(data) { + return request({ + url: '/system/user/profile', + method: 'put', + data: data + }) +} + +// 查询部门下拉树结构 +export function deptTreeSelect() { + return request({ + url: '/system/user/deptTree', + method: 'get' + }) +} diff --git a/openhis-ui-vue3/src/views/catalog/disease/index.vue b/openhis-ui-vue3/src/views/catalog/disease/index.vue new file mode 100644 index 00000000..2c5bed27 --- /dev/null +++ b/openhis-ui-vue3/src/views/catalog/disease/index.vue @@ -0,0 +1,558 @@ + + + diff --git a/openhis-ui-vue3/src/views/catalog/disease/profile/index.vue b/openhis-ui-vue3/src/views/catalog/disease/profile/index.vue new file mode 100644 index 00000000..5851f05d --- /dev/null +++ b/openhis-ui-vue3/src/views/catalog/disease/profile/index.vue @@ -0,0 +1,87 @@ + + + diff --git a/openhis-ui-vue3/src/views/catalog/disease/profile/resetPwd.vue b/openhis-ui-vue3/src/views/catalog/disease/profile/resetPwd.vue new file mode 100644 index 00000000..96daef39 --- /dev/null +++ b/openhis-ui-vue3/src/views/catalog/disease/profile/resetPwd.vue @@ -0,0 +1,57 @@ + + + diff --git a/openhis-ui-vue3/src/views/catalog/disease/profile/userAvatar.vue b/openhis-ui-vue3/src/views/catalog/disease/profile/userAvatar.vue new file mode 100644 index 00000000..3b39636c --- /dev/null +++ b/openhis-ui-vue3/src/views/catalog/disease/profile/userAvatar.vue @@ -0,0 +1,171 @@ + + + + + \ No newline at end of file diff --git a/openhis-ui-vue3/src/views/catalog/disease/profile/userInfo.vue b/openhis-ui-vue3/src/views/catalog/disease/profile/userInfo.vue new file mode 100644 index 00000000..a5e1c773 --- /dev/null +++ b/openhis-ui-vue3/src/views/catalog/disease/profile/userInfo.vue @@ -0,0 +1,67 @@ + + + From e44ccb2e079cf438c921f82dfe8e623e1d5fa938 Mon Sep 17 00:00:00 2001 From: anxin Date: Tue, 25 Feb 2025 09:21:29 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E6=9C=BA=E6=9E=84org=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/OrganizationController.java | 18 +++++++++--------- .../service/impl/OrganizationServiceImpl.java | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/openhis-server/openhis-application/src/main/java/com/openhis/web/basedatamanage/controller/OrganizationController.java b/openhis-server/openhis-application/src/main/java/com/openhis/web/basedatamanage/controller/OrganizationController.java index 5b9a8c25..eb0e723b 100644 --- a/openhis-server/openhis-application/src/main/java/com/openhis/web/basedatamanage/controller/OrganizationController.java +++ b/openhis-server/openhis-application/src/main/java/com/openhis/web/basedatamanage/controller/OrganizationController.java @@ -54,11 +54,11 @@ public class OrganizationController { String code = assignSeqUtil.getSeq(AssignSeqEnum.TEST.getPrefix()); organization.setBus_no(code); - boolean saveOrganizationSuccess = organizationService.save(organization); + boolean saveOrgSuccess = organizationService.save(organization); - return saveOrganizationSuccess + return saveOrgSuccess ? R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00001, new Object[] {"科室信息"})) - : R.fail(PromptMsgConstant.Common.M00007, null); + : R.fail(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00003, new Object[] {"科室信息"})); } /** @@ -72,10 +72,10 @@ public class OrganizationController { // Organization organization = new Organization(); // BeanUtils.copyProperties(organizationdto, organization); - boolean updateSuccess = organizationService.updateById(organization); - return updateSuccess + boolean updateOrgSuccess = organizationService.updateById(organization); + return updateOrgSuccess ? R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00002, new Object[] {"科室信息"})) - : R.fail(PromptMsgConstant.Common.M00007, null); + : R.fail(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00007, new Object[] {"科室信息"})); } /** @@ -86,9 +86,9 @@ public class OrganizationController { @DeleteMapping("/organization") public R deleteSupplyRequest(@RequestParam Long orgId) { - boolean deleteSuccess = organizationService.removeById(orgId); + boolean deleteOrgSuccess = organizationService.removeById(orgId); - return deleteSuccess + return deleteOrgSuccess ? R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00005, new Object[] {"科室信息"})) : R.fail(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00006, new Object[] {"科室信息删除失败"})); } @@ -111,7 +111,7 @@ public class OrganizationController { // 查询【科室】分页列表 Page organizationPage = organizationService.getOrganizationPage(classEnum, activeFlag, pageNo, pageSize); - return R.ok(organizationPage); + return R.ok(organizationPage, MessageUtils.createMessage(PromptMsgConstant.Common.M00007, new Object[] {"科室信息"})); } } diff --git a/openhis-server/openhis-domain/src/main/java/com/openhis/administration/service/impl/OrganizationServiceImpl.java b/openhis-server/openhis-domain/src/main/java/com/openhis/administration/service/impl/OrganizationServiceImpl.java index c60b593c..4689cbf1 100644 --- a/openhis-server/openhis-domain/src/main/java/com/openhis/administration/service/impl/OrganizationServiceImpl.java +++ b/openhis-server/openhis-domain/src/main/java/com/openhis/administration/service/impl/OrganizationServiceImpl.java @@ -42,7 +42,7 @@ public class OrganizationServiceImpl extends ServiceImpl organizationPage = organizationMapper.selectPage(new Page<>(pageNo, pageSize), queryWrapper); From b5cf465f3d1e6d1665966b357afac98d96d05900 Mon Sep 17 00:00:00 2001 From: anxin Date: Tue, 25 Feb 2025 09:50:43 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=9C=BA=E6=9E=84org?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/OrganizationController.java | 32 +++++++++---------- .../administration/domain/Organization.java | 6 +--- .../service/IOrganizationService.java | 2 +- .../service/impl/OrganizationServiceImpl.java | 8 ++--- 4 files changed, 22 insertions(+), 26 deletions(-) diff --git a/openhis-server/openhis-application/src/main/java/com/openhis/web/basedatamanage/controller/OrganizationController.java b/openhis-server/openhis-application/src/main/java/com/openhis/web/basedatamanage/controller/OrganizationController.java index eb0e723b..3521f44b 100644 --- a/openhis-server/openhis-application/src/main/java/com/openhis/web/basedatamanage/controller/OrganizationController.java +++ b/openhis-server/openhis-application/src/main/java/com/openhis/web/basedatamanage/controller/OrganizationController.java @@ -22,7 +22,7 @@ import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; /** - * 机构管理(科室)controller + * 机构管理controller * * @author * @date 2025-02-21 @@ -39,9 +39,9 @@ public class OrganizationController { private AssignSeqUtil assignSeqUtil; /** - * 添加科室信息 + * 添加机构信息 * - * @param organization 科室信息 + * @param organization 机构信息 */ @PostMapping("/organization") public R addOrganization(@Validated @RequestBody Organization organization) { @@ -57,14 +57,14 @@ public class OrganizationController { boolean saveOrgSuccess = organizationService.save(organization); return saveOrgSuccess - ? R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00001, new Object[] {"科室信息"})) - : R.fail(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00003, new Object[] {"科室信息"})); + ? R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00001, new Object[] {"机构信息"})) + : R.fail(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00003, new Object[] {"机构信息"})); } /** - * 编辑科室信息 + * 编辑机构信息 * - * @param organization 科室信息 + * @param organization 机构信息 */ @PutMapping("/organization") public R editOrganization(@Validated @RequestBody Organization organization) { @@ -74,12 +74,12 @@ public class OrganizationController { boolean updateOrgSuccess = organizationService.updateById(organization); return updateOrgSuccess - ? R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00002, new Object[] {"科室信息"})) - : R.fail(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00007, new Object[] {"科室信息"})); + ? R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00002, new Object[] {"机构信息"})) + : R.fail(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00007, new Object[] {"机构信息"})); } /** - * 删除科室信息 + * 删除机构信息 * * @param orgId 主表id */ @@ -89,29 +89,29 @@ public class OrganizationController { boolean deleteOrgSuccess = organizationService.removeById(orgId); return deleteOrgSuccess - ? R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00005, new Object[] {"科室信息"})) - : R.fail(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00006, new Object[] {"科室信息删除失败"})); + ? R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00005, new Object[] {"机构信息"})) + : R.fail(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00006, new Object[] {"机构信息删除失败"})); } /** - * 科室分页列表 + * 机构分页列表 * * @param classEnum 机构分类枚举 * @param activeFlag 活动标识 * @param pageNo 当前页码 * @param pageSize 查询条数 * @param request 请求数据 - * @return 科室分页列表 + * @return 机构分页列表 */ @GetMapping(value = "/organization") public R getOrganizationPage(Integer classEnum, Integer activeFlag, @RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest request) { - // 查询【科室】分页列表 + // 查询【机构】分页列表 Page organizationPage = organizationService.getOrganizationPage(classEnum, activeFlag, pageNo, pageSize); - return R.ok(organizationPage, MessageUtils.createMessage(PromptMsgConstant.Common.M00007, new Object[] {"科室信息"})); + return R.ok(organizationPage, MessageUtils.createMessage(PromptMsgConstant.Common.M00007, new Object[] {"机构信息"})); } } diff --git a/openhis-server/openhis-domain/src/main/java/com/openhis/administration/domain/Organization.java b/openhis-server/openhis-domain/src/main/java/com/openhis/administration/domain/Organization.java index 474103d6..5a7f7c00 100644 --- a/openhis-server/openhis-domain/src/main/java/com/openhis/administration/domain/Organization.java +++ b/openhis-server/openhis-domain/src/main/java/com/openhis/administration/domain/Organization.java @@ -1,15 +1,12 @@ package com.openhis.administration.domain; -import java.math.BigDecimal; -import java.util.Date; - import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; - import com.core.common.core.domain.HisBaseEntity; import com.openhis.common.enums.OrganizationClass; import com.openhis.common.enums.OrganizationType; + import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; @@ -60,5 +57,4 @@ public class Organization extends HisBaseEntity { /** 显示顺序 */ private Integer displayOrder; - } diff --git a/openhis-server/openhis-domain/src/main/java/com/openhis/administration/service/IOrganizationService.java b/openhis-server/openhis-domain/src/main/java/com/openhis/administration/service/IOrganizationService.java index d23c4342..17de0231 100644 --- a/openhis-server/openhis-domain/src/main/java/com/openhis/administration/service/IOrganizationService.java +++ b/openhis-server/openhis-domain/src/main/java/com/openhis/administration/service/IOrganizationService.java @@ -5,7 +5,7 @@ import com.baomidou.mybatisplus.extension.service.IService; import com.openhis.administration.domain.Organization; /** - * 机构管理(科室)Service接口 + * 机构管理Service接口 * * @author system * @date 2025-02-21 diff --git a/openhis-server/openhis-domain/src/main/java/com/openhis/administration/service/impl/OrganizationServiceImpl.java b/openhis-server/openhis-domain/src/main/java/com/openhis/administration/service/impl/OrganizationServiceImpl.java index 4689cbf1..37692db3 100644 --- a/openhis-server/openhis-domain/src/main/java/com/openhis/administration/service/impl/OrganizationServiceImpl.java +++ b/openhis-server/openhis-domain/src/main/java/com/openhis/administration/service/impl/OrganizationServiceImpl.java @@ -13,7 +13,7 @@ import com.openhis.administration.service.IOrganizationService; import com.openhis.common.enums.DelFlag; /** - * 机构管理(科室)Service业务层处理 + * 机构管理Service业务层处理 * * @author system * @date 2025-02-21 @@ -26,11 +26,11 @@ public class OrganizationServiceImpl extends ServiceImpl getOrganizationPage(Integer classEnum,Integer activeFlag, Integer pageNo, Integer pageSize) { @@ -47,7 +47,7 @@ public class OrganizationServiceImpl extends ServiceImpl organizationPage = organizationMapper.selectPage(new Page<>(pageNo, pageSize), queryWrapper); - // 返回科室信息列表 + // 返回机构信息列表 return organizationPage; } From ede41782b4f8811c6031c7b24710ffecac222171 Mon Sep 17 00:00:00 2001 From: duhe Date: Tue, 25 Feb 2025 10:56:05 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E7=96=BE=E7=97=85=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0=20up=20by=20dh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/catalog/disease/authRole.vue | 112 ------------ .../catalog/disease/components/disease.js | 19 +- .../src/views/catalog/disease/index.vue | 29 ++- .../views/catalog/disease/profile/index.vue | 87 --------- .../catalog/disease/profile/resetPwd.vue | 57 ------ .../catalog/disease/profile/userAvatar.vue | 171 ------------------ .../catalog/disease/profile/userInfo.vue | 67 ------- 7 files changed, 16 insertions(+), 526 deletions(-) delete mode 100644 openhis-ui-vue3/src/views/catalog/disease/authRole.vue delete mode 100644 openhis-ui-vue3/src/views/catalog/disease/profile/index.vue delete mode 100644 openhis-ui-vue3/src/views/catalog/disease/profile/resetPwd.vue delete mode 100644 openhis-ui-vue3/src/views/catalog/disease/profile/userAvatar.vue delete mode 100644 openhis-ui-vue3/src/views/catalog/disease/profile/userInfo.vue diff --git a/openhis-ui-vue3/src/views/catalog/disease/authRole.vue b/openhis-ui-vue3/src/views/catalog/disease/authRole.vue deleted file mode 100644 index 0b5c14bc..00000000 --- a/openhis-ui-vue3/src/views/catalog/disease/authRole.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - diff --git a/openhis-ui-vue3/src/views/catalog/disease/components/disease.js b/openhis-ui-vue3/src/views/catalog/disease/components/disease.js index 3f947607..9d8fe7d9 100644 --- a/openhis-ui-vue3/src/views/catalog/disease/components/disease.js +++ b/openhis-ui-vue3/src/views/catalog/disease/components/disease.js @@ -45,23 +45,10 @@ export function delUser(userId) { }) } -// 用户状态修改 -export function changeUserStatus(userId, status) { - const data = { - userId, - status - } +// 病种目录分类查询 +export function getDiseaseCategory() { return request({ - url: '/system/user/changeStatus', - method: 'put', - data: data - }) -} - -// 查询用户个人信息 -export function getUserProfile() { - return request({ - url: '/system/user/profile', + url: '/datadictionary/disease/information-category', method: 'get' }) } diff --git a/openhis-ui-vue3/src/views/catalog/disease/index.vue b/openhis-ui-vue3/src/views/catalog/disease/index.vue index 2c5bed27..a63201c0 100644 --- a/openhis-ui-vue3/src/views/catalog/disease/index.vue +++ b/openhis-ui-vue3/src/views/catalog/disease/index.vue @@ -12,9 +12,9 @@ style="margin-bottom: 20px" /> --> -
+ @@ -282,20 +282,16 @@ diff --git a/openhis-ui-vue3/src/views/catalog/disease/profile/index.vue b/openhis-ui-vue3/src/views/catalog/disease/profile/index.vue deleted file mode 100644 index 5851f05d..00000000 --- a/openhis-ui-vue3/src/views/catalog/disease/profile/index.vue +++ /dev/null @@ -1,87 +0,0 @@ - - - diff --git a/openhis-ui-vue3/src/views/catalog/disease/profile/resetPwd.vue b/openhis-ui-vue3/src/views/catalog/disease/profile/resetPwd.vue deleted file mode 100644 index 96daef39..00000000 --- a/openhis-ui-vue3/src/views/catalog/disease/profile/resetPwd.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - diff --git a/openhis-ui-vue3/src/views/catalog/disease/profile/userAvatar.vue b/openhis-ui-vue3/src/views/catalog/disease/profile/userAvatar.vue deleted file mode 100644 index 3b39636c..00000000 --- a/openhis-ui-vue3/src/views/catalog/disease/profile/userAvatar.vue +++ /dev/null @@ -1,171 +0,0 @@ - - - - - \ No newline at end of file diff --git a/openhis-ui-vue3/src/views/catalog/disease/profile/userInfo.vue b/openhis-ui-vue3/src/views/catalog/disease/profile/userInfo.vue deleted file mode 100644 index a5e1c773..00000000 --- a/openhis-ui-vue3/src/views/catalog/disease/profile/userInfo.vue +++ /dev/null @@ -1,67 +0,0 @@ - - -