| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473 |
- import request from '@/utils/request.js';
- import dayjs from 'dayjs';
- // 添加医共体
- export function addDoctorBody(data) {
- return request({
- url: '/basis/medicalorganizationMgr/Add',
- method: 'post',
- data
- })
- };
- // 获取医共体列表
- export function getDoctorBody(data) {
- return request({
- url: '/basis/medicalorganizationMgr/listPain?page=' + data.page + '&limit=' + data.limit,
- method: 'post',
- data
- })
- };
- // 修改医共体
- export function editDoctorBody(data) {
- return request({
- url: '/basis/medicalorganizationMgr/update',
- method: 'post',
- data
- })
- };
- // 删除医共体
- export function deleteDoctorBody(data) {
- return request({
- url: '/basis/medicalorganizationMgr/BatchDelete?ids=' + data.ids,
- method: 'post',
- data
- })
- };
- // 获取医共体详细信息
- export function getDoctorBDetail(data) {
- return request({
- url: `/basis/medicalorganizationMgr/${data}`,
- method: 'get'
- })
- };
- // 获取 医共体选择器
- export function getDoctorBodySelect(data) {
- return request({
- url: '/basis/medicalorganizationMgr/customerQuery',
- method: 'post',
- data
- })
- };
- // 新增医疗机构
- export function addMedinsituions(data) {
- return request({
- url: '/basis/medicalinstitutionsMgr/Add',
- method: 'post',
- data
- })
- };
- // 获取当前医疗机构选择器
- export function getMedSelect(data) {
- return request({
- url: '/basis/medicalinstitutionsMgr/customerQuery?organizationId=' + data.organizationId,
- method: 'post',
- data
- })
- };
- // 获取医疗机构列表
- export function getMedlist(data) {
- return request({
- url: '/basis/medicalinstitutionsMgr/listPain?page=' + data.page + '&limit=' + data.limit,
- method: 'post',
- data
- })
- };
- // 获取医疗机构详细信息
- export function getMedDetail(data) {
- return request({
- url: `/basis/medicalinstitutionsMgr/${data}`,
- method: 'get'
- })
- };
- // 编辑医疗机构信息
- export function editMedData(data) {
- return request({
- url: '/basis/medicalinstitutionsMgr/update',
- method: 'post',
- data
- })
- };
- // 医疗机构删除
- export function deleteMed(data) {
- return request({
- url: '/basis/medicalinstitutionsMgr/BatchDelete?ids=' + data.ids,
- method: 'post',
- data
- })
- };
- // 获取科室选择器 列表
- export function getDepartSelect(data) {
- return request({
- url: '/basis/hospitaldepartmentsMgr/customerQuery?institutionId=' + data.institutionId,
- method: 'post',
- data
- })
- };
- // 获取医生选择器 列表
- export function getDoctorSelect(data) {
- return request({
- url: '/portal/userMgr/listPain',
- method: 'post',
- data,
- params: {page: 1, limit: 999}
- })
- }
- // 获取科室列表
- export function getDepartList(data) {
- return request({
- url: '/basis/hospitaldepartmentsMgr/listPain?page=' + data.page + '&limit=' + data.limit,
- method: 'post',
- data
- })
- };
- // 添加科室
- export function addDepart(data) {
- return request({
- url: '/basis/hospitaldepartmentsMgr/Add',
- method: 'post',
- data
- })
- };
- // 获取科室详情数据
- export function getDepartDetail(data) {
- return request({
- url: `/basis/hospitaldepartmentsMgr/${data}`,
- method: 'get'
- })
- };
- // 科室数据修改
- export function editDepart(data) {
- return request({
- url: '/basis/hospitaldepartmentsMgr/update',
- method: 'post',
- data
- })
- };
- // 删除科室数据
- export function deleteDepart(data) {
- return request({
- url: '/basis/hospitaldepartmentsMgr/BatchDelete?ids=' + data.ids,
- method: 'post'
- })
- };
- // 获取角色列表
- export function getRoleList(data) {
- return request({
- url: '/admin/right_RoleMgr/listPain?page=' + data.page + '&limit=' + data.limit,
- method: 'post',
- data
- })
- };
- // 添加 角色数据
- export function addRoleData(data) {
- return request({
- url: '/admin/right_RoleMgr/Add',
- method: 'post',
- data
- })
- };
- // 获取角色详情信息
- export function getRoleDetail(data) {
- return request({
- url: `/admin/right_RoleMgr/${data}`,
- method: 'get'
- })
- };
- // 修改角色信息
- export function editRoleData(data) {
- return request({
- url: '/admin/right_RoleMgr/update',
- method: 'post',
- data
- })
- };
- // 删除角色信息
- export function deleteRoleData(data) {
- return request({
- url: "/admin/right_RoleMgr/BatchDelete?ids=" + data.ids,
- method: 'post'
- })
- };
- // 获取角色管理权限菜单
- export function getPermissionsMenu(data) {
- return request({
- url: '/admin/right_RoleMgr/GetRoleRight?RoleID=' + data.RoleID,
- method: 'post',
- data
- })
- };
- // 获取菜单权限
- export function getMenuPermiss(data) {
- return request({
- url: '/Admin/getMenu',
- method: 'post',
- data
- })
- };
- // 为角色设置权限
- export function setPermToRole(data) {
- return request({
- url: '/admin/right_RoleMgr/SetRoleRight?roleID=' + data.roleID,
- method: 'post',
- data
- })
- };
- // 获取角色选择器信息
- export function getRoleSelect(data) {
- return request({
- url: '/admin/right_RoleMgr/optionselect',
- method: 'get',
- data
- })
- };
- // 获取用户列表
- export function getUserList(data) {
- return request({
- url: '/portal/userMgr/listPain?page=' + data.page + '&limit=' + data.limit,
- method: 'post',
- data
- })
- };
- // 新增用户信息
- export function addUserMsg(data) {
- return request({
- url: '/portal/userMgr/Add',
- data,
- method: 'post'
- })
- };
- // 获取用户详细信息
- export function getUserDetail(data, pid) {
- return request({
- url: `/portal/userMgr/${data}`,
- method: 'get',
- params: { pid }
- })
- };
- // 修改用户信息
- export function editUserMsg(data) {
- return request({
- url: '/portal/userMgr/update',
- method: 'post',
- data
- })
- };
- // 删除用户管理信息
- export function deleteUserMsg(data) {
- return request({
- url: '/portal/userMgr/BatchDelete?ids=' + data.ids,
- method: 'post',
- data
- })
- };
- // 用户管理重置密码
- export function resetPasInUser(data) {
- return request({
- url: '/portal/userMgr/UpdatePassWord',
- method: 'post',
- data
- })
- };
- //获取 公共代码 信息
- export function getCodeMsg(data) {
- return request({
- url: '/basis/parameterconfigMgr/getPlatformCode',
- method: 'post',
- data
- })
- };
- // 提交 公共代码 信息
- export function addCodeMsg(data) {
- return request({
- url: '/basis/parameterconfigMgr/Add',
- method: 'post',
- data
- })
- };
- // 获取医共体 参数信息
- export function getDoctorBodyPar(params) {
- return request({
- url: '/portal/configMgr/ConfigByOrganizationid',
- method: 'get',
- params
- })
- };
- // 保存医共体参数信息
- export function saveDBParams(data) {
- return request({
- url: '/portal/configMgr/Add',
- method: 'post',
- data
- })
- };
- // 修改密码
- export function changePas(data) {
- return request({
- url: '/portal/userMgr/setPassWord',
- method: 'post',
- data
- })
- };
- // 获取医共体权限按钮
- export function getDoctorBR(data) {
- return request({
- url: '/basis/medicalorganizationMgr/GetButtonRight',
- method: 'post',
- data
- })
- };
- // 获取医疗机构权限按钮
- export function getMedBR(data) {
- return request({
- url: '/basis/medicalinstitutionsMgr/GetButtonRight',
- method: 'post',
- data
- })
- };
- //获取科室权限按钮
- export function getDepartBR(data) {
- return request({
- url: '/basis/hospitaldepartmentsMgr/GetButtonRight',
- method: 'post',
- data
- })
- };
- // 获取用户管理权限按钮
- export function getUserBR(data) {
- return request({
- url: '/portal/userMgr/GetButtonRight',
- method: 'post',
- data
- })
- };
- // 获取角色管理权限
- export function getRoleBR(data) {
- return request({
- url: '/admin/right_RoleMgr/GetButtonRight',
- method: 'post',
- data
- })
- };
- // 身份证号焦点校验
- export function checkIdCard(data) {
- return request({
- url: '/basis/patientMgr/idCardCheck?card=' + data,
- method: 'post'
- })
- };
- // 跟据建明和医共体 查询数据
- export function getDataByKey(data) {
- return request({
- url: '/portal/configMgr/configKey',
- method: 'get',
- params: data
- }).then(res => {
- switch (data.key) {
- case 'defaultHomePage': return res.ResultInfo || '/index/todaypatients';
- case 'transitionPr': return {
- enabled: !res.ResultInfo || res.ResultInfo === '0',
- }
- case 'showPrintHTML': return {
- enabled: res.ResultInfo === '0',
- }
- default: return res;
- }
- });
- };
- // 获取医保规则列表
- export function getInsuranceList(data) {
- return request({
- url: '/basis/medicalInsuranceRegulationMgr/listPain',
- method: 'post',
- data
- })
- }
- // 修改医保规则列表
- export function editInsurance(data) {
- return request({
- url: '/basis/medicalInsuranceRegulationMgr/update',
- method: 'post',
- data
- })
- }
- export function getLogFile() {
- return request({
- url: '/system/version/recordList',
- method: 'post',
- }).then(res => res.Data.map(item => {
- const time = dayjs((item.showTime || item.updateTime || item.createTime || ''));
- return {
- id: item.id,
- content: item.content,
- title: time.format('YYYY/MM/DD HH:mm:ss'),
- time: time.valueOf()
- };
- }).sort((a, b) => b.time - a.time));
- }
- export function setLogFile(data) {
- return request({
- url: '/system/version/saveOrUpdate',
- method: 'post',
- data: {
- id: data.id === -1 ? null : data.id,
- showTime: data.time.replace(' ', 'T'),
- content: data.content,
- }
- })
- }
|