refactor: 彻底清除所有openhis痕迹
- 重命名目录: openhis-server-new → healthlink-his-server - 重命名目录: openhis-ui-vue3 → healthlink-his-ui - 重命名Java类: OpenHisApplication → HealthLinkHisApplication - 重命名Java类: OpenHisMiniApp → HealthLinkHisMiniApp - 重命名组件目录: OpenHis → HealthLinkHis - 重命名样式文件: openhis.scss → healthlink-his.scss - 重命名配置: nginx-openhis.conf → nginx-healthlink-his.conf - 更新所有源码引用 (0个残留) - 更新所有文档/脚本/配置中的引用
This commit is contained in:
247
healthlink-his-ui/src/api/system/checkType.js
Executable file
247
healthlink-his-ui/src/api/system/checkType.js
Executable file
@@ -0,0 +1,247 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询所有检查类型列表(不分页,用于下拉选项)
|
||||
export function getAllCheckTypes() {
|
||||
return request({
|
||||
url: '/system/check-type/all',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询检查类型列表
|
||||
export function listCheckType(query) {
|
||||
return request({
|
||||
url: '/system/check-type/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询检查类型详细
|
||||
export function getCheckType(checkTypeId) {
|
||||
return request({
|
||||
url: '/system/check-type/' + checkTypeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增检查类型
|
||||
export function addCheckType(data) {
|
||||
return request({
|
||||
url: '/system/check-type',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改检查类型
|
||||
export function updateCheckType(data) {
|
||||
return request({
|
||||
url: '/system/check-type',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除检查类型
|
||||
export function delCheckType(checkTypeId) {
|
||||
return request({
|
||||
url: '/system/check-type/' + checkTypeId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询检查方法列表
|
||||
export function listCheckMethod(query) {
|
||||
return request({
|
||||
url: '/check/method/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 搜索检查方法列表
|
||||
export function searchCheckMethod(query) {
|
||||
return request({
|
||||
url: '/check/method/search',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 新增检查方法
|
||||
export function addCheckMethod(data) {
|
||||
return request({
|
||||
url: '/check/method/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改检查方法
|
||||
export function updateCheckMethod(data) {
|
||||
return request({
|
||||
url: '/check/method/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除检查方法
|
||||
export function delCheckMethod(checkMethodId) {
|
||||
return request({
|
||||
url: '/check/method/delete/' + checkMethodId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出检查方法
|
||||
export function exportCheckMethod(query) {
|
||||
return request({
|
||||
url: '/check/method/export',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出检查部位
|
||||
export function exportCheckPart(query) {
|
||||
return request({
|
||||
url: '/check/part/export',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询检查部位列表
|
||||
export function listCheckPart(query) {
|
||||
return request({
|
||||
url: '/check/part/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 搜索检查部位列表
|
||||
export function searchCheckPart(query) {
|
||||
return request({
|
||||
url: '/check/part/search',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 新增检查部位
|
||||
export function addCheckPart(data) {
|
||||
return request({
|
||||
url: '/check/part/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除检查部位
|
||||
export function delCheckPart(checkPartId) {
|
||||
return request({
|
||||
url: '/check/part/delete/' + checkPartId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 更新检查部位
|
||||
export function updateCheckPart(data) {
|
||||
return request({
|
||||
url: '/check/part/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询检查套餐列表
|
||||
export function listCheckPackage(query) {
|
||||
return request({
|
||||
url: '/system/package/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 根据ID查询检查套餐详情
|
||||
export function getCheckPackage(id) {
|
||||
return request({
|
||||
url: `/system/check-package/${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增检查套餐
|
||||
export function addCheckPackage(data) {
|
||||
return request({
|
||||
url: '/system/check-package',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改检查套餐
|
||||
export function updateCheckPackage(data) {
|
||||
return request({
|
||||
url: '/system/check-package',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除检查套餐
|
||||
export function delCheckPackage(id) {
|
||||
return request({
|
||||
url: `/system/check-package/${id}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询LIS分组列表
|
||||
export function listLisGroup(query) {
|
||||
return request({
|
||||
url: '/check/lisGroupInfo/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 根据ID查询LIS分组详情
|
||||
export function getLisGroup(id) {
|
||||
return request({
|
||||
url: `/check/lisGroupInfo/${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增LIS分组
|
||||
export function addLisGroup(data) {
|
||||
return request({
|
||||
url: '/check/lisGroupInfo/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改LIS分组
|
||||
export function updateLisGroup(data) {
|
||||
return request({
|
||||
url: '/check/lisGroupInfo/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除LIS分组
|
||||
export function delLisGroup(id) {
|
||||
return request({
|
||||
url: `/check/lisGroupInfo/${id}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
61
healthlink-his-ui/src/api/system/config.js
Executable file
61
healthlink-his-ui/src/api/system/config.js
Executable file
@@ -0,0 +1,61 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询参数列表
|
||||
export function listConfig(query) {
|
||||
return request({
|
||||
url: '/system/config/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询参数详细
|
||||
export function getConfig(configId) {
|
||||
return request({
|
||||
url: '/system/config/' + configId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据参数键名查询参数值
|
||||
export function getConfigKey(configKey, options = {}) {
|
||||
return request({
|
||||
url: '/system/config/configKey/' + configKey,
|
||||
method: 'get',
|
||||
...options
|
||||
})
|
||||
}
|
||||
|
||||
// 新增参数配置
|
||||
export function addConfig(data) {
|
||||
return request({
|
||||
url: '/system/config',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改参数配置
|
||||
export function updateConfig(data) {
|
||||
return request({
|
||||
url: '/system/config',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除参数配置
|
||||
export function delConfig(configId) {
|
||||
return request({
|
||||
url: '/system/config/' + configId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 刷新参数缓存
|
||||
export function refreshCache() {
|
||||
return request({
|
||||
url: '/system/config/refreshCache',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
52
healthlink-his-ui/src/api/system/dept.js
Executable file
52
healthlink-his-ui/src/api/system/dept.js
Executable file
@@ -0,0 +1,52 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询部门列表
|
||||
export function listDept(query) {
|
||||
return request({
|
||||
url: '/system/dept/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门列表(排除节点)
|
||||
export function listDeptExcludeChild(deptId) {
|
||||
return request({
|
||||
url: '/system/dept/list/exclude/' + deptId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门详细
|
||||
export function getDept(deptId) {
|
||||
return request({
|
||||
url: '/system/dept/' + deptId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增部门
|
||||
export function addDept(data) {
|
||||
return request({
|
||||
url: '/system/dept',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改部门
|
||||
export function updateDept(data) {
|
||||
return request({
|
||||
url: '/system/dept',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除部门
|
||||
export function delDept(deptId) {
|
||||
return request({
|
||||
url: '/system/dept/' + deptId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
53
healthlink-his-ui/src/api/system/dict/data.js
Executable file
53
healthlink-his-ui/src/api/system/dict/data.js
Executable file
@@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询字典数据列表
|
||||
export function listData(query) {
|
||||
return request({
|
||||
url: '/system/dict/data/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询字典数据详细
|
||||
export function getData(dictCode) {
|
||||
return request({
|
||||
url: '/system/dict/data/' + dictCode,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据字典类型查询字典数据信息
|
||||
export function getDicts(dictType, searchKey) {
|
||||
return request({
|
||||
url: '/system/dict/data/type/' + dictType,
|
||||
method: 'get',
|
||||
params: searchKey ? { searchKey } : {}
|
||||
})
|
||||
}
|
||||
|
||||
// 新增字典数据
|
||||
export function addData(data) {
|
||||
return request({
|
||||
url: '/system/dict/data',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改字典数据
|
||||
export function updateData(data) {
|
||||
return request({
|
||||
url: '/system/dict/data',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除字典数据
|
||||
export function delData(dictCode) {
|
||||
return request({
|
||||
url: '/system/dict/data/' + dictCode,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
60
healthlink-his-ui/src/api/system/dict/type.js
Executable file
60
healthlink-his-ui/src/api/system/dict/type.js
Executable file
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询字典类型列表
|
||||
export function listType(query) {
|
||||
return request({
|
||||
url: '/system/dict/type/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询字典类型详细
|
||||
export function getType(dictId) {
|
||||
return request({
|
||||
url: '/system/dict/type/' + dictId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增字典类型
|
||||
export function addType(data) {
|
||||
return request({
|
||||
url: '/system/dict/type',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改字典类型
|
||||
export function updateType(data) {
|
||||
return request({
|
||||
url: '/system/dict/type',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除字典类型
|
||||
export function delType(dictId) {
|
||||
return request({
|
||||
url: '/system/dict/type/' + dictId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 刷新字典缓存
|
||||
export function refreshCache() {
|
||||
return request({
|
||||
url: '/system/dict/type/refreshCache',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取字典选择框列表
|
||||
export function optionselect() {
|
||||
return request({
|
||||
url: '/system/dict/type/optionselect',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
10
healthlink-his-ui/src/api/system/info.js
Executable file
10
healthlink-his-ui/src/api/system/info.js
Executable file
@@ -0,0 +1,10 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getSystemVersion(options = {}) {
|
||||
return request({
|
||||
url: '/system/version',
|
||||
method: 'get',
|
||||
...options
|
||||
})
|
||||
}
|
||||
|
||||
79
healthlink-his-ui/src/api/system/inspectionPackage.js
Executable file
79
healthlink-his-ui/src/api/system/inspectionPackage.js
Executable file
@@ -0,0 +1,79 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询检验套餐列表
|
||||
export function listInspectionPackage(query) {
|
||||
return request({
|
||||
url: '/system/inspection-package/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询检验套餐详细
|
||||
export function getInspectionPackage(packageId) {
|
||||
return request({
|
||||
url: '/system/inspection-package/' + packageId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增检验套餐基本信息
|
||||
export function addInspectionPackage(data) {
|
||||
return request({
|
||||
url: '/system/inspection-package',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改检验套餐基本信息
|
||||
export function updateInspectionPackage(data) {
|
||||
return request({
|
||||
url: '/system/inspection-package',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除检验套餐
|
||||
export function delInspectionPackage(packageId) {
|
||||
return request({
|
||||
url: '/system/inspection-package/' + packageId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 保存检验套餐明细数据
|
||||
export function saveInspectionPackageDetails(data) {
|
||||
return request({
|
||||
url: '/system/inspection-package/details',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询检验套餐明细列表
|
||||
export function listInspectionPackageDetails(packageId) {
|
||||
return request({
|
||||
url: '/system/inspection-package/details/' + packageId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 删除检验套餐明细
|
||||
export function delInspectionPackageDetails(detailIds) {
|
||||
return request({
|
||||
url: '/system/inspection-package/details',
|
||||
method: 'delete',
|
||||
data: detailIds
|
||||
})
|
||||
}
|
||||
|
||||
// 批量保存检验套餐明细
|
||||
export function batchSaveInspectionPackageDetails(data) {
|
||||
return request({
|
||||
url: '/system/inspection-package/details/batch',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
44
healthlink-his-ui/src/api/system/inspectionType.js
Executable file
44
healthlink-his-ui/src/api/system/inspectionType.js
Executable file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询检验类型列表
|
||||
export function listInspectionType(query) {
|
||||
return request({
|
||||
url: '/system/inspection-type/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询检验类型详细
|
||||
export function getInspectionType(inspectionTypeId) {
|
||||
return request({
|
||||
url: '/system/inspection-type/' + inspectionTypeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增检验类型
|
||||
export function addInspectionType(data) {
|
||||
return request({
|
||||
url: '/system/inspection-type',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改检验类型
|
||||
export function updateInspectionType(data) {
|
||||
return request({
|
||||
url: '/system/inspection-type',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除检验类型
|
||||
export function delInspectionType(inspectionTypeId) {
|
||||
return request({
|
||||
url: '/system/inspection-type/' + inspectionTypeId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
33
healthlink-his-ui/src/api/system/lisConfig.js
Executable file
33
healthlink-his-ui/src/api/system/lisConfig.js
Executable file
@@ -0,0 +1,33 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getLisConfigPage(query) {
|
||||
return request({
|
||||
url: '/inspection/lisConfig/init-page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getLisConfigDetail(id) {
|
||||
return request({
|
||||
url: '/inspection/lisConfig/info-detail',
|
||||
method: 'get',
|
||||
params: { id }
|
||||
})
|
||||
}
|
||||
|
||||
export function getLisConfigList(searchKey, type) {
|
||||
return request({
|
||||
url: '/inspection/lisConfig/init-list',
|
||||
method: 'get',
|
||||
params: { searchKey, type }
|
||||
})
|
||||
}
|
||||
|
||||
export function saveLisConfig(data) {
|
||||
return request({
|
||||
url: '/inspection/lisConfig/saveAll',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
88
healthlink-his-ui/src/api/system/menu.js
Executable file
88
healthlink-his-ui/src/api/system/menu.js
Executable file
@@ -0,0 +1,88 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询菜单列表
|
||||
export function listMenu(query) {
|
||||
return request({
|
||||
url: '/system/menu/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询菜单详细
|
||||
export function getMenu(menuId) {
|
||||
return request({
|
||||
url: '/system/menu/' + menuId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询菜单下拉树结构
|
||||
export function treeselect() {
|
||||
return request({
|
||||
url: '/system/menu/treeselect',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据角色ID查询菜单下拉树结构
|
||||
export function roleMenuTreeselect(roleId) {
|
||||
return request({
|
||||
url: '/system/menu/roleMenuTreeselect/' + roleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增菜单
|
||||
export function addMenu(data) {
|
||||
return request({
|
||||
url: '/system/menu',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改菜单
|
||||
export function updateMenu(data) {
|
||||
return request({
|
||||
url: '/system/menu',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除菜单
|
||||
export function delMenu(menuId) {
|
||||
return request({
|
||||
url: '/system/menu/' + menuId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取菜单完整路径
|
||||
export function getMenuFullPath(menuId) {
|
||||
return request({
|
||||
url: '/system/menu/fullPath/' + menuId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 生成完整路径
|
||||
export function generateFullPath(parentId, currentPath) {
|
||||
return request({
|
||||
url: '/system/menu/generateFullPath',
|
||||
method: 'post',
|
||||
params: {
|
||||
parentId: parentId,
|
||||
currentPath: currentPath
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 刷新菜单缓存
|
||||
export function refreshMenuCache() {
|
||||
return request({
|
||||
url: '/system/menu/refreshCache',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
145
healthlink-his-ui/src/api/system/notice.js
Executable file
145
healthlink-his-ui/src/api/system/notice.js
Executable file
@@ -0,0 +1,145 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询公告列表
|
||||
export function listNotice(query) {
|
||||
return request({
|
||||
url: '/system/notice/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获取公开的公告列表(给普通用户使用)
|
||||
export function getPublicNoticeList(query) {
|
||||
return request({
|
||||
url: '/system/notice/public/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获取当前用户的通知列表
|
||||
export function getUserNotices() {
|
||||
return request({
|
||||
url: '/system/notice/public/notice',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 获取公告/通知详情(公开接口,普通用户可用)
|
||||
export function getPublicNotice(noticeId) {
|
||||
return request({
|
||||
url: '/system/notice/public/' + noticeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询公告详细
|
||||
export function getNotice(noticeId) {
|
||||
return request({
|
||||
url: '/system/notice/' + noticeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增公告
|
||||
export function addNotice(data) {
|
||||
return request({
|
||||
url: '/system/notice',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改公告
|
||||
export function updateNotice(data) {
|
||||
return request({
|
||||
url: '/system/notice',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除公告
|
||||
export function delNotice(noticeId) {
|
||||
return request({
|
||||
url: '/system/notice/' + noticeId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 发布公告
|
||||
export function publishNotice(noticeId) {
|
||||
return request({
|
||||
url: '/system/notice/publish/' + noticeId,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
// 取消发布公告
|
||||
export function unpublishNotice(noticeId) {
|
||||
return request({
|
||||
url: '/system/notice/unpublish/' + noticeId,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取未读公告/通知数量
|
||||
export function getUnreadCount() {
|
||||
return request({
|
||||
url: '/system/notice/public/unread/count',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 标记公告/通知为已读
|
||||
export function markAsRead(noticeId) {
|
||||
return request({
|
||||
url: '/system/notice/public/read/' + noticeId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
// 批量标记公告/通知为已读
|
||||
export function markAllAsRead(noticeIds) {
|
||||
return request({
|
||||
url: '/system/notice/public/read/all',
|
||||
method: 'post',
|
||||
data: noticeIds
|
||||
})
|
||||
}
|
||||
|
||||
// 获取用户已读公告/通知ID列表
|
||||
export function getReadNoticeIds() {
|
||||
return request({
|
||||
url: '/system/notice/public/read/ids',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取顶部公告/通知列表(最新N条)
|
||||
export function listNoticeTop(query) {
|
||||
return request({
|
||||
url: '/system/notice/public/top',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 标记单条公告/通知为已读
|
||||
export function markNoticeRead(noticeId) {
|
||||
return request({
|
||||
url: '/system/notice/public/read/' + noticeId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
// 批量标记公告/通知为已读(逗号分隔的ID字符串)
|
||||
export function markNoticeReadAll(noticeIds) {
|
||||
return request({
|
||||
url: '/system/notice/public/read/all',
|
||||
method: 'post',
|
||||
data: noticeIds
|
||||
})
|
||||
}
|
||||
48
healthlink-his-ui/src/api/system/observation.js
Executable file
48
healthlink-his-ui/src/api/system/observation.js
Executable file
@@ -0,0 +1,48 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getObservationInit() {
|
||||
return request({
|
||||
url: '/inspection/observation/init',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function getObservationPage(query) {
|
||||
return request({
|
||||
url: '/inspection/observation/information-page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getObservationOne(id) {
|
||||
return request({
|
||||
url: '/inspection/observation/information-one',
|
||||
method: 'get',
|
||||
params: { id }
|
||||
})
|
||||
}
|
||||
|
||||
export function addObservation(data) {
|
||||
return request({
|
||||
url: '/inspection/observation/information',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function updateObservation(data) {
|
||||
return request({
|
||||
url: '/inspection/observation/information',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteObservation(ids) {
|
||||
return request({
|
||||
url: '/inspection/observation/information-status',
|
||||
method: 'post',
|
||||
data: { ids, type: '停用' }
|
||||
})
|
||||
}
|
||||
44
healthlink-his-ui/src/api/system/post.js
Executable file
44
healthlink-his-ui/src/api/system/post.js
Executable file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询岗位列表
|
||||
export function listPost(query) {
|
||||
return request({
|
||||
url: '/system/post/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询岗位详细
|
||||
export function getPost(postId) {
|
||||
return request({
|
||||
url: '/system/post/' + postId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增岗位
|
||||
export function addPost(data) {
|
||||
return request({
|
||||
url: '/system/post',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改岗位
|
||||
export function updatePost(data) {
|
||||
return request({
|
||||
url: '/system/post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除岗位
|
||||
export function delPost(postId) {
|
||||
return request({
|
||||
url: '/system/post/' + postId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
119
healthlink-his-ui/src/api/system/role.js
Executable file
119
healthlink-his-ui/src/api/system/role.js
Executable file
@@ -0,0 +1,119 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询角色列表
|
||||
export function listRole(query) {
|
||||
return request({
|
||||
url: '/system/role/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询角色详细
|
||||
export function getRole(roleId) {
|
||||
return request({
|
||||
url: '/system/role/' + roleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增角色
|
||||
export function addRole(data) {
|
||||
return request({
|
||||
url: '/system/role',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改角色
|
||||
export function updateRole(data) {
|
||||
return request({
|
||||
url: '/system/role',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 角色数据权限
|
||||
export function dataScope(data) {
|
||||
return request({
|
||||
url: '/system/role/dataScope',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 角色状态修改
|
||||
export function changeRoleStatus(roleId, status) {
|
||||
const data = {
|
||||
roleId,
|
||||
status
|
||||
}
|
||||
return request({
|
||||
url: '/system/role/changeStatus',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除角色
|
||||
export function delRole(roleId) {
|
||||
return request({
|
||||
url: '/system/role/' + roleId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询角色已授权用户列表
|
||||
export function allocatedUserList(query) {
|
||||
return request({
|
||||
url: '/system/role/authUser/allocatedList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询角色未授权用户列表
|
||||
export function unallocatedUserList(query) {
|
||||
return request({
|
||||
url: '/system/role/authUser/unallocatedList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 取消用户授权角色
|
||||
export function authUserCancel(data) {
|
||||
return request({
|
||||
url: '/system/role/authUser/cancel',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 批量取消用户授权角色
|
||||
export function authUserCancelAll(data) {
|
||||
return request({
|
||||
url: '/system/role/authUser/cancelAll',
|
||||
method: 'put',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 授权用户选择
|
||||
export function authUserSelectAll(data) {
|
||||
return request({
|
||||
url: '/system/role/authUser/selectAll',
|
||||
method: 'put',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 根据角色ID查询部门树结构
|
||||
export function deptTreeSelect(roleId) {
|
||||
return request({
|
||||
url: '/system/role/deptTree/' + roleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
167
healthlink-his-ui/src/api/system/tenant.js
Executable file
167
healthlink-his-ui/src/api/system/tenant.js
Executable file
@@ -0,0 +1,167 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 查询租户分页列表
|
||||
export function getTenantPage(query) {
|
||||
return request({
|
||||
url: '/system/tenant/page',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询租户详情
|
||||
export function getTenantDetail(tenantId) {
|
||||
return request({
|
||||
url: `/system/tenant/${tenantId}`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 查询租户所属用户分页列表
|
||||
export function getTenantUserPage(query) {
|
||||
return request({
|
||||
url: '/system/tenant/user/page',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 新增租户
|
||||
export function addTenant(data) {
|
||||
return request({
|
||||
url: '/system/tenant',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 修改租户
|
||||
export function editTenant(data) {
|
||||
return request({
|
||||
url: '/system/tenant',
|
||||
method: 'put',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
// 删除租户
|
||||
export function delTenant(tenantIdList) {
|
||||
return request({
|
||||
url: '/system/tenant',
|
||||
method: 'delete',
|
||||
data: Array.isArray(tenantIdList) ? tenantIdList : [tenantIdList],
|
||||
});
|
||||
}
|
||||
|
||||
// 启用租户
|
||||
export function enableTenant(tenantIdList) {
|
||||
return request({
|
||||
url: '/system/tenant/enable',
|
||||
method: 'put',
|
||||
data: Array.isArray(tenantIdList) ? tenantIdList : [tenantIdList],
|
||||
});
|
||||
}
|
||||
|
||||
// 停用租户
|
||||
export function disableTenant(tenantIdList) {
|
||||
return request({
|
||||
url: '/system/tenant/disable',
|
||||
method: 'put',
|
||||
data: Array.isArray(tenantIdList) ? tenantIdList : [tenantIdList],
|
||||
});
|
||||
}
|
||||
|
||||
// 查询租户未绑定的用户列表
|
||||
export function getUnbindTenantUserList(query) {
|
||||
return request({
|
||||
url: `/system/tenant/${query.tenantId}/unbind-users`,
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 绑定租户用户
|
||||
export function bindTenantUser(tenantId, userIdList) {
|
||||
return request({
|
||||
url: `/system/tenant/${tenantId}/bind-users`,
|
||||
method: 'post',
|
||||
data: userIdList,
|
||||
});
|
||||
}
|
||||
|
||||
// 解绑租户用户
|
||||
export function unbindTenantUser(tenantId, userIdList) {
|
||||
return request({
|
||||
url: `/system/tenant/${tenantId}/unbind-users`,
|
||||
method: 'post',
|
||||
data: userIdList,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询租户合同信息分页
|
||||
export function getTenantContractPage(query) {
|
||||
return request({
|
||||
url: '/payment/contract/page',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询租户合同信息详情
|
||||
export function getTenantContractDetail(id) {
|
||||
return request({
|
||||
url: `/payment/contract/${id}`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 新增租户合同信息
|
||||
export function addTenantContract(data) {
|
||||
return request({
|
||||
url: '/payment/contract',
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 编辑租户合同信息
|
||||
export function editTenantContract(data) {
|
||||
return request({
|
||||
url: '/payment/contract',
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 编辑租户合同信息
|
||||
export function delTenantContract(id) {
|
||||
return request({
|
||||
url: `/payment/contract/${id}`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
|
||||
// 查询租户配置项详情列表
|
||||
export function getTenantOptionDetailList(tenantId) {
|
||||
return request({
|
||||
url: `/system/tenant-option/detail-list/${tenantId}`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 保存租户配置项详情列表
|
||||
export function saveTenantOptionDetailList(data) {
|
||||
return request({
|
||||
url: '/system/tenant-option/detail-list',
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询租户配置项前端form表单列表
|
||||
export function getTenantOptionFormList() {
|
||||
return request({
|
||||
url: '/system/tenant-option/form-list',
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
172
healthlink-his-ui/src/api/system/user.js
Executable file
172
healthlink-his-ui/src/api/system/user.js
Executable file
@@ -0,0 +1,172 @@
|
||||
import request from '@/utils/request'
|
||||
import {parseStrEmpty} from "@/utils/his";
|
||||
|
||||
// 查询用户列表
|
||||
export function listUser(query) {
|
||||
return request({
|
||||
url: '/base-data-manage/practitioner/user-practitioner-page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询用户详细
|
||||
export function getUser(userId) {
|
||||
return request({
|
||||
url: '/base-data-manage/practitioner/user-practitioner-detail?userId=' + parseStrEmpty(userId),
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询角色
|
||||
export function getRole(userId) {
|
||||
return request({
|
||||
url: '/system/user/' + parseStrEmpty(userId),
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增用户
|
||||
export function addUser(data) {
|
||||
return request({
|
||||
url: '/base-data-manage/practitioner/user-practitioner',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改用户
|
||||
export function updateUser(data) {
|
||||
return request({
|
||||
url: '/base-data-manage/practitioner/user-practitioner',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除用户
|
||||
export function delUser(userId) {
|
||||
return request({
|
||||
url: '/base-data-manage/practitioner/user-practitioner?userId=' + userId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 用户密码重置
|
||||
export function resetUserPwd(userId, password) {
|
||||
const data = {
|
||||
userId,
|
||||
password
|
||||
}
|
||||
return request({
|
||||
url: '/system/user/resetPwd',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 用户状态修改
|
||||
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 updateUserPwd(oldPassword, newPassword) {
|
||||
const data = {
|
||||
oldPassword,
|
||||
newPassword
|
||||
}
|
||||
return request({
|
||||
url: '/system/user/profile/updatePwd',
|
||||
method: 'put',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 用户头像上传
|
||||
export function uploadAvatar(data) {
|
||||
return request({
|
||||
url: '/system/user/profile/avatar',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询授权角色
|
||||
export function getAuthRole(userId) {
|
||||
return request({
|
||||
url: '/system/user/authRole/' + userId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 保存授权角色
|
||||
export function updateAuthRole(data) {
|
||||
return request({
|
||||
url: '/system/user/authRole',
|
||||
method: 'put',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门下拉树结构
|
||||
// 默认只显示科室类型(typeEnum=2),如果需要其他类型,可以传入 params 覆盖
|
||||
export function deptTreeSelect(params = {}) {
|
||||
return request({
|
||||
url: '/base-data-manage/organization/organization',
|
||||
method: 'get',
|
||||
params: {
|
||||
typeEnum: 2, // 默认只显示科室
|
||||
...params // 允许外部传入参数覆盖默认值
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 查询位下拉树结构
|
||||
export function locationTreeSelect() {
|
||||
return request({
|
||||
url: '/app-common/cabinet-list',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询药房下拉树结构
|
||||
export function pharmacyTreeSelect() {
|
||||
return request({
|
||||
url: '/app-common/pharmacy-list',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询病区下拉列表
|
||||
export function wardList() {
|
||||
return request({
|
||||
url: '/app-common/ward-list',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
62
healthlink-his-ui/src/api/system/userConfig.js
Executable file
62
healthlink-his-ui/src/api/system/userConfig.js
Executable file
@@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询用户配置列表
|
||||
export function listUserConfig(query) {
|
||||
return request({
|
||||
url: '/system/userConfig/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询用户配置详细
|
||||
export function getUserConfig(configId) {
|
||||
return request({
|
||||
url: '/system/userConfig/' + configId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增用户配置
|
||||
export function addUserConfig(data) {
|
||||
return request({
|
||||
url: '/system/userConfig',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改用户配置
|
||||
export function updateUserConfig(data) {
|
||||
return request({
|
||||
url: '/system/userConfig',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除用户配置
|
||||
export function delUserConfig(configId) {
|
||||
return request({
|
||||
url: '/system/userConfig/' + configId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取当前用户的指定配置
|
||||
export function getCurrentUserConfig(configKey) {
|
||||
return request({
|
||||
url: '/system/userConfig/currentUserConfig',
|
||||
method: 'get',
|
||||
params: { configKey }
|
||||
})
|
||||
}
|
||||
|
||||
// 保存当前用户的配置
|
||||
export function saveCurrentUserConfig(configKey, configValue) {
|
||||
return request({
|
||||
url: '/system/userConfig/saveCurrentUserConfig',
|
||||
method: 'post',
|
||||
params: { configKey, configValue }
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user