提交 a4b696e1 编写于 作者: hujun's avatar hujun

Merge branch 'dev-patients-20190513' into 'release-0612'

Dev patients 20190513



See merge request !31
...@@ -8,7 +8,8 @@ import utils from './followupUtils'; ...@@ -8,7 +8,8 @@ import utils from './followupUtils';
const headers = { const headers = {
sysCode: 45 sysCode: 45,
hospitalAuth:true
} /**/ } /**/
/*工作台*/ /*工作台*/
export const getTodayAppointsList = (params) => { export const getTodayAppointsList = (params) => {
...@@ -41,301 +42,396 @@ export const getTodayPlans = (params) => { ...@@ -41,301 +42,396 @@ export const getTodayPlans = (params) => {
/*计划管理*/ /*计划管理*/
export const createFollowPlan = (data) => { export const createFollowPlan = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/plans`), headers,
method: 'post', url: getFollowUpSC(`/followup/plans`),
data: data, method: 'post',
description: '新增、修改随访计划', data: data,
},) description: '新增、修改随访计划',
})
})
} }
export const getPlanList = (params) => { export const getPlanList = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/plans`), headers,
method: 'get', url: getFollowUpSC(`/followup/plans`),
params: params, method: 'get',
description: '获取计划列表', params: params,
description: '获取计划列表',
})
}) })
}; };
export const getPlanDetail = (planId) => { export const getPlanDetail = (planId) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/plans/${planId}`), headers,
method: 'get', url: getFollowUpSC(`/followup/plans/${planId}`),
description: '获取计划详情', method: 'get',
description: '获取计划详情',
})
}) })
}; };
export const getNodeTimeList = (planId) => { export const getNodeTimeList = (planId) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/plans/${planId}/time`), headers,
method: 'get', url: getFollowUpSC(`/followup/plans/${planId}/time`),
description: '获取随访时间节点列表', method: 'get',
description: '获取随访时间节点列表',
})
}) })
}; };
export const getNodeTimeContent = (planTimeId) => { export const getNodeTimeContent = (planTimeId) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/plans/time/${planTimeId}`), headers,
method: 'get', url: getFollowUpSC(`/followup/plans/time/${planTimeId}`),
description: '获取节点详情', method: 'get',
description: '获取节点详情',
})
}) })
}; };
export const getResidentList = (params) => { export const getResidentList = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/planPatient/`), headers,
method: 'get', url: getFollowUpSC(`/followup/planPatient/`),
params: params, method: 'get',
description: '获取居民列表', params: params,
description: '获取居民列表',
})
}) })
}; };
export const getGroupList = (params) => { export const getGroupList = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/planPatient/group`), headers,
method: 'get', url: getFollowUpSC(`/followup/planPatient/group`),
params: params, method: 'get',
description: '获取分组列表', params: params,
description: '获取分组列表',
})
}) })
}; };
export const getFollowStartTimeList = (planId) => { export const getFollowStartTimeList = (planId) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/planPatient/${planId}/times`), headers,
method: 'get', url: getFollowUpSC(`/followup/planPatient/${planId}/times`),
description: '获取随访开始时间列表(居民相关)', method: 'get',
description: '获取随访开始时间列表(居民相关)',
})
}) })
}; };
export const getResidentDetail = (planId,patientId,fuPlanPatientId ) => { export const getResidentDetail = (planId,patientId,fuPlanPatientId ) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/planPatient/${planId}/detail/${patientId}?planPatientsId=${fuPlanPatientId}`), headers,
method: 'get', url: getFollowUpSC(`/followup/planPatient/${planId}/detail/${patientId}?planPatientsId=${fuPlanPatientId}`),
description: '获取居民详情', method: 'get',
description: '获取居民详情',
})
}) })
}; };
export const changePlan = (data) => { export const changePlan = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/planPatient/change`), headers,
method: 'put', url: getFollowUpSC(`/followup/planPatient/change`),
data: data, method: 'put',
description: '变更计划', data: data,
description: '变更计划',
})
}) })
}; };
export const finishPlan = (data) => { export const finishPlan = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/planPatient/status`), headers,
method: 'put', url: getFollowUpSC(`/followup/planPatient/status`),
data: data, method: 'put',
description: '变更计划', data: data,
description: '变更计划',
})
}) })
}; };
export const deletePlan = (planId) => { export const deletePlan = (planId) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/plans/${planId}`), headers,
method: 'delete', url: getFollowUpSC(`/followup/plans/${planId}`),
description: '删除计划', method: 'delete',
description: '删除计划',
})
}) })
}; };
export const getVerifyStatus = (params) => { export const getVerifyStatus = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/plans/validate/status`), headers,
method: 'get', url: getFollowUpSC(`/followup/plans/validate/status`),
params: params, method: 'get',
description: '认证校验', params: params,
description: '认证校验',
})
}) })
}; };
/*预约管理*/ /*预约管理*/
export const getReservationList = (data) => { export const getReservationList = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/appoint/appointed/list`), headers,
method: 'post', url: getFollowUpSC(`/followup/appoint/appointed/list`),
data: data, method: 'post',
description: '获取预约列表', data: data,
description: '获取预约列表',
})
}) })
}; };
export const getCheckReservation = (data) => { export const getCheckReservation = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/healths/notice/fu/doctor/appoint/pushValid`), headers,
method: 'post', url: getFollowUpSC(`/healths/notice/fu/doctor/appoint/pushValid`),
data: data, method: 'post',
description: '发送预约校验', data: data,
description: '发送预约校验',
})
}) })
}; };
export const getReservationPatients = (data) => { export const getReservationPatients = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/appoint/appointed/count`), headers,
method: 'post', url: getFollowUpSC(`/followup/appoint/appointed/count`),
data: data, method: 'post',
description: '查看预约人数', data: data,
description: '查看预约人数',
})
}) })
}; };
export const changeReservationStatus = (data) => { export const changeReservationStatus = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/appoint/status/`), headers,
method: 'post', url: getFollowUpSC(`/followup/appoint/status/`),
data: data, method: 'post',
description: '手动变更预约状态', data: data,
description: '手动变更预约状态',
})
}) })
}; };
export const sendReservation = (data) => { export const sendReservation = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/appoint/`), headers,
method: 'post', url: getFollowUpSC(`/followup/appoint/`),
data: data, method: 'post',
description: '发送预约', data: data,
description: '发送预约',
})
}) })
}; };
/*录入管理*/ /*录入管理*/
export const getEnteringList = (data) => { export const getEnteringList = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/entering/list`), headers,
method: 'post', url: getFollowUpSC(`/followup/entering/list`),
data: data, method: 'post',
description: '录入列表查看', data: data,
description: '录入列表查看',
})
}) })
} }
export const changeEnteringStatus = (data) => { export const changeEnteringStatus = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/entering/status/change`), headers,
method: 'post', url: getFollowUpSC(`/followup/entering/status/change`),
data: data, method: 'post',
description: '变更随访状态', data: data,
},) description: '变更随访状态',
})
})
} }
export const getEnteringInfo = (patientId, fuPlanPatientTimesId) => { export const getEnteringInfo = (patientId, fuPlanPatientTimesId) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/entering/${patientId}/fuInfo/${fuPlanPatientTimesId}`), headers,
method: 'get', url: getFollowUpSC(`/followup/entering/${patientId}/fuInfo/${fuPlanPatientTimesId}`),
// params: params, method: 'get',
description: '随访单条信息查看', // params: params,
},) description: '随访单条信息查看',
},)
})
} }
export const getFormList = (planTimesId) => { export const getFormList = (planTimesId) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/entering/scale/${planTimesId}/list`), headers,
method: 'get', url: getFollowUpSC(`/followup/entering/scale/${planTimesId}/list`),
// params: params, method: 'get',
description: '获取量表列表', // params: params,
},) description: '获取量表列表',
},)
})
} }
//获取新建计划居民列表 //获取新建计划居民列表
export const getPlanPatientsList = (data) =>{ export const getPlanPatientsList = (data) =>{
return fetch({ return utils.checkAuth(()=>{
headers:{ return fetch({
sysCode: 9 headers:{
}, sysCode: 9,
url: getFollowUpSC(`/healths/patients/infolist`), hospitalAuth:true
method: 'post', },
data: data, url: getFollowUpSC(`/healths/patients/infolist`),
description: '获取新建计划居民列表', method: 'post',
},) data: data,
description: '获取新建计划居民列表',
},)
})
} }
// 获取随访计划模板列表 // 获取随访计划模板列表
export const getFollowupTemplate = (data) => { export const getFollowupTemplate = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/plans/templets`), headers,
method: 'get', url: getFollowUpSC(`/followup/plans/templets`),
data: data, method: 'get',
description: '获取随访计划模板列表', data: data,
description: '获取随访计划模板列表',
})
}) })
} }
// 获取随访量表固定模板 // 获取随访量表固定模板
export const getFollowupTableTemplate = (id) => { export const getFollowupTableTemplate = (id) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/plans/templets/${id}`), headers,
method: 'get', url: getFollowUpSC(`/followup/plans/templets/${id}`),
data: {}, method: 'get',
description: '获取随访量表固定模板', data: {},
description: '获取随访量表固定模板',
})
}) })
} }
// 获取量表列表 // 获取量表列表
export const getFormOptions = (data)=>{ export const getFormOptions = (data)=>{
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/followup/entering/scale/list`), headers,
method: 'get', url: getFollowUpSC(`/followup/entering/scale/list`),
data: data, method: 'get',
description: '获取量表列表', data: data,
description: '获取量表列表',
})
}) })
} }
/*常量*/ /*常量*/
export const getBasicData = (params) => { export const getBasicData = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/basic-data/constants/`), headers,
method: 'get', url: getFollowUpSC(`/basic-data/constants/`),
params: params, method: 'get',
description: '获取常量', params: params,
description: '获取常量',
})
}) })
}; };
// 获取所有漫画列表 // 获取所有漫画列表
export const getAllEducationComtent = (data) => { export const getAllEducationComtent = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/healths/comtent/workstation/list`), headers,
method: 'post', url: getFollowUpSC(`/healths/comtent/workstation/list`),
data: data, method: 'post',
description: '获取所有漫画列表' data: data,
description: '获取所有漫画列表'
})
}) })
} }
// 获取所有疾病 // 获取所有疾病
export const getAllDiseases = (params) => { export const getAllDiseases = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/healths/patients/diseases/-1`), headers,
method: 'get', url: getFollowUpSC(`/healths/patients/diseases/-1`),
params: params, method: 'get',
description: '获取所有疾病', params: params,
description: '获取所有疾病',
})
}) })
} }
// 获取所有分组 // 获取所有分组
export const getAllLabels = (params) => { export const getAllLabels = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getFollowUpSC(`/healths/labels/`), headers,
method: 'get', url: getFollowUpSC(`/healths/labels/`),
params: params, method: 'get',
description: '获取所有分组', params: params,
description: '获取所有分组',
})
}) })
} }
// 获取微信和短信病人数接口 // 获取微信和短信病人数接口
export const getPatientNumber = (data) => { export const getPatientNumber = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers: { return fetch({
sysCode: 9 headers: {
}, sysCode: 9,
url: getFollowUpSC(`/healths/patientEducation/getSendPatientTypeNum`), hospitalAuth:true
method: 'post', },
data: data, url: getFollowUpSC(`/healths/patientEducation/getSendPatientTypeNum`),
description: '获取微信和短信病人数接口', method: 'post',
data: data,
description: '获取微信和短信病人数接口',
})
}) })
} }
...@@ -347,6 +443,9 @@ export const getPatientNumber = (data) => { ...@@ -347,6 +443,9 @@ export const getPatientNumber = (data) => {
export const getDomain = (data) => { export const getDomain = (data) => {
return fetch({ return fetch({
url: getFollowUpSC(`/followup/route/domain?type=1`), url: getFollowUpSC(`/followup/route/domain?type=1`),
headers:{
hospitalAuth:true
},
method: 'get', method: 'get',
data: {}, data: {},
}) })
...@@ -356,6 +455,9 @@ export const getDomain = (data) => { ...@@ -356,6 +455,9 @@ export const getDomain = (data) => {
export const getScaleModels = (domain,scaleNo) => { export const getScaleModels = (domain,scaleNo) => {
return fetch({ return fetch({
url: `${domain}/scale/${scaleNo}/models`, url: `${domain}/scale/${scaleNo}/models`,
headers:{
hospitalAuth:true
},
method: 'get', method: 'get',
data: {}, data: {},
}) })
...@@ -365,6 +467,9 @@ export const getScaleModels = (domain,scaleNo) => { ...@@ -365,6 +467,9 @@ export const getScaleModels = (domain,scaleNo) => {
export const getScaleDetail = (domain,planPatientsTimesId,scaleNo) => { export const getScaleDetail = (domain,planPatientsTimesId,scaleNo) => {
return fetch({ return fetch({
url: `${domain}/scale/${planPatientsTimesId}/${scaleNo}/info?type=2&isLine=2`, url: `${domain}/scale/${planPatientsTimesId}/${scaleNo}/info?type=2&isLine=2`,
headers:{
hospitalAuth:true
},
method: 'get', method: 'get',
data: {}, data: {},
}) })
...@@ -374,6 +479,9 @@ export const getScaleDetail = (domain,planPatientsTimesId,scaleNo) => { ...@@ -374,6 +479,9 @@ export const getScaleDetail = (domain,planPatientsTimesId,scaleNo) => {
export const postScale = ( domain,data ) => { export const postScale = ( domain,data ) => {
return fetch({ return fetch({
url: `${domain}/scale/save`, url: `${domain}/scale/save`,
headers:{
hospitalAuth:true
},
method: 'post', method: 'post',
data: JSON.stringify(data), data: JSON.stringify(data),
}) })
...@@ -383,6 +491,9 @@ export const postScale = ( domain,data ) => { ...@@ -383,6 +491,9 @@ export const postScale = ( domain,data ) => {
export const updateScalesStatus = ( data ) => { export const updateScalesStatus = ( data ) => {
return fetch({ return fetch({
url: getFollowUpSC(`/followup/entering/scale/updateScalesStatus`), url: getFollowUpSC(`/followup/entering/scale/updateScalesStatus`),
headers:{
hospitalAuth:true
},
method: 'post', method: 'post',
data: data, data: data,
}) })
......
import dataConverter from './dataConverter'; import dataConverter from './dataConverter';
import fetch from '@/utils/fetch';
import { getBaseUrl, getSaasDomain, getSaasApiDomain } from '@/utils/index'
import Vue from 'vue';
function getSaasHost(){
var host;
if(location.host.indexOf('dev-work')>-1 || location.host.indexOf('localhost')>-1){
host = 'https://dev-saas.yunqueyi.com'
}else if(location.host.indexOf('test1-work')>-1){
host = 'https://test1.yunqueyi.com'
}else if(location.host.indexOf('uat-work')>-1){
host = 'https://uat.yunqueyi.com'
}else{
host = 'https://www.yunqueyi.com'
}
return host
}
function getWsHost(){
var host;
if(location.host.indexOf('dev-work')>-1 || location.host.indexOf('localhost')>-1){
host = 'https://dev-ws.yunqueyi.com'
}else if(location.host.indexOf('test1-work')>-1){
host = 'https://test1-ws.yunqueyi.com'
}else if(location.host.indexOf('uat-work')>-1){
host = 'https://uat-ws.yunqueyi.com'
}else{
host = 'https://ws.yunqueyi.com'
}
return host
}
const alertMessage = (msg, confirmButtonText, cancelButtonText, callback) => {
Vue.prototype.$confirm(msg, '提醒', {
confirmButtonText: confirmButtonText,
cancelButtonText: cancelButtonText,
}).then(() => {
callback();
}).catch(() => {
// 关闭弹窗
});
}
export default { export default {
DC: dataConverter, DC: dataConverter,
checkAuth: (callback) => {
return new Promise((resolve, reject) => {
fetch({
headers: {
token: localStorage.getItem('storageToken')
},
url: getBaseUrl(`/healths/doctor/hospitalAuth`),
method: 'get',
description: '检查用户的机构权限',
}).then(res => {
// 1、未加入 2、审核中 3、加入成功
// res.data = 2
if (res.code == '000000') {
if (res.data == 1) {
// 点击 去加入,进入加入机构流程
alertMessage('您当前暂无机构,无法使用居民管理、随访管理和群发消息等功能,请在加入机构后重试。','去加入','暂不加入', ()=>{
location.href = getSaasHost() + '/pica-base/pica_join.html'
})
// return new Promise((resolve, reject) => {
// })
} else if (res.data == 2) {
alertMessage('您创建的机构正在审核中,暂无法使用居民管理、随访管理和群发消息等功能,请在审核通过后重试。','查看审核','取消', ()=>{
location.href = getWsHost() + '/outside/status?tk=' + localStorage.getItem('storageToken')
})
// return new Promise((resolve, reject) => {
// })
} else if (res.data == 3) {
return callback
}
}
})
})
}
}; };
import fetch from '../fetch'; import fetch from '../fetch';
import { getBaseUrl, getSaasDomain, getSaasApiDomain } from '@/utils/index' import { getBaseUrl, getSaasDomain, getSaasApiDomain } from '@/utils/index'
import utils from '@/utils/followup/followupUtils';
// const utils.checkAuth = (callback) => {
// return new Promise((resolve, reject) => {
// fetch({
// headers: {
// token: localStorage.getItem('storageToken')
// },
// url: getBaseUrl(`/healths/doctor/hospitalAuth`),
// method: 'get',
// description: '检查用户的机构权限',
// }).then(res => {
// // res.data =1
// if (res.code == '000000') {
// // 1、未加入 2、审核中 3、加入成功
// if (res.data == 1) {
// return new Promise((resolve, reject) => {
// })
// } else if (res.data == 2) {
// return new Promise((resolve, reject) => {
// })
// } else if (res.data == 3) {
// return callback
// }
// }
// })
// })
// }
const headers = { const headers = {
sysCode: 9 sysCode: 9,
hospitalAuth:true
} }
/*常量API*/ /*常量API*/
export const getConstants = (params) => { export const getConstants = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`basic-data/constants/`), headers,
method: 'get', url: getBaseUrl(`basic-data/constants/`),
params: params, method: 'get',
description: '获取常量', params: params,
description: '获取常量',
})
}) })
}; };
/*获取省市县乡列表*/ /*获取省市县乡列表*/
export const getProvinceList = (params) => { export const getProvinceList = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`basic-data/position/provinces`), headers,
method: 'get', url: getBaseUrl(`basic-data/position/provinces`),
params: params, method: 'get',
description: '获取省列表', params: params,
description: '获取省列表',
})
}) })
}; };
export const getCityList = (params) => { export const getCityList = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`basic-data/position/cities`), headers,
method: 'get', url: getBaseUrl(`basic-data/position/cities`),
params: params, method: 'get',
description: '获取市列表', params: params,
description: '获取市列表',
})
}) })
}; };
export const getCountyList = (params) => { export const getCountyList = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`basic-data/position/counties`), headers,
method: 'get', url: getBaseUrl(`basic-data/position/counties`),
params: params, method: 'get',
description: '获取区县列表', params: params,
description: '获取区县列表',
})
}) })
}; };
export const getTownList = (params) => { export const getTownList = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`basic-data/position/towns`), headers,
method: 'get', url: getBaseUrl(`basic-data/position/towns`),
params: params, method: 'get',
description: '获取乡镇列表', params: params,
description: '获取乡镇列表',
})
}) })
}; };
/*居民管理*/ /*居民管理*/
export const getPatientList = (data) => { export const getPatientList = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/patients/infolist`), headers,
method: 'post', url: getBaseUrl(`healths/patients/infolist`),
data: data, method: 'post',
description: '获取居民列表', data: data,
description: '获取居民列表',
})
}) })
}; };
export const getDiseasesList = (params) => { export const getDiseasesList = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/patients/diseases/-1`), headers,
method: 'get', url: getBaseUrl(`healths/patients/diseases/-1`),
params: params, method: 'get',
description: '获取所有疾病', params: params,
description: '获取所有疾病',
})
}) })
}; };
// 新增居民 // 新增居民
export const getQRCode = data => { export const getQRCode = data => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/qrcodes/get`), headers,
method: 'post', url: getBaseUrl(`healths/qrcodes/get`),
data: data, method: 'post',
description: '获取二维码', data: data,
description: '获取二维码',
})
}) })
} }
export const getUploadHistory = params => { export const getUploadHistory = params => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/docImpPat/import/records`), headers,
method: 'get', url: getBaseUrl(`healths/docImpPat/import/records`),
params: params, method: 'get',
description: '获取上传历史记录', params: params,
description: '获取上传历史记录',
})
}) })
} }
export const refreshCode = data => { export const refreshCode = data => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/qrcodes/refresh`), headers,
method: 'post', url: getBaseUrl(`healths/qrcodes/refresh`),
data: data, method: 'post',
description: '刷新二维码有效期', data: data,
description: '刷新二维码有效期',
})
}) })
} }
export const getLabelsInfo = params => { export const getLabelsInfo = params => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/qrcodes/getLabelsInfo`), headers,
method: 'get', url: getBaseUrl(`healths/qrcodes/getLabelsInfo`),
params: params, method: 'get',
description: '获取分组信息', params: params,
description: '获取分组信息',
})
}) })
} }
export const downloadQRCode = data => { export const downloadQRCode = data => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/qrcodes/shareUrl`), headers,
method: 'post', url: getBaseUrl(`healths/qrcodes/shareUrl`),
data: data, method: 'post',
description: '下载二维码', data: data,
description: '下载二维码',
})
}) })
} }
export const uploadExcel = data => { export const uploadExcel = data => {
return fetch({ return utils.checkAuth(()=>{
headers: { return fetch({
noSysCode: true, headers: {
}, noSysCode: true,
url: getSaasDomain('web/patientManages/import'), hospitalAuth:true
method: 'post', },
data: data, url: getSaasDomain('web/patientManages/import'),
description: '上传excel文件', method: 'post',
data: data,
description: '上传excel文件',
})
}) })
} }
// 分组管理 // 分组管理
export const getLabelList = (params) => { export const getLabelList = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/labels/`), headers,
method: 'get', url: getBaseUrl(`healths/labels/`),
params: params, method: 'get',
description: '获取分组列表', params: params,
description: '获取分组列表',
})
}) })
} }
export const createNewLabel = (data) => { export const createNewLabel = (data) => {
return fetch({ return utils.checkAuth(()=>{
url: getBaseUrl(`healths/labels/`), return fetch({
headers: { url: getBaseUrl(`healths/labels/`),
"Content-Type": 'application/json' headers: {
}, "Content-Type": 'application/json',
method: 'post', hospitalAuth:true
data: data, },
description: '新增分组', method: 'post',
data: data,
description: '新增分组',
})
}) })
} }
export const changeLabelName = (data) => { export const changeLabelName = (data) => {
return fetch({ return utils.checkAuth(()=>{
url: getBaseUrl(`healths/labels/`), return fetch({
// headers: { url: getBaseUrl(`healths/labels/`),
// "Content-Type": 'application/json' headers,
// }, method: 'put',
method: 'put', data: data,
data: data, description: '修改分组名',
description: '修改分组名', })
}) })
} }
export const getLabelDetail = (labelId, params) => { export const getLabelDetail = (labelId, params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/labels/v2/${labelId}/patients`), headers,
method: 'get', url: getBaseUrl(`healths/labels/v2/${labelId}/patients`),
params: params, method: 'get',
description: '获取分组详情', params: params,
description: '获取分组详情',
})
}) })
} }
export const deleteCurrentLabel = (data) => { export const deleteCurrentLabel = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/labels/`), headers,
method: 'delete', url: getBaseUrl(`healths/labels/`),
data: data, method: 'delete',
description: '删除分组', data: data,
description: '删除分组',
})
}) })
} }
export const deleteCurrentPatients = data => { export const deleteCurrentPatients = data => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/labels/patients`), headers,
method: 'delete', url: getBaseUrl(`healths/labels/patients`),
data: data, method: 'delete',
description: '删除分组下的居民', data: data,
description: '删除分组下的居民',
})
}) })
} }
export const saveLabelsForPatient = (labelId, data) => { export const saveLabelsForPatient = (labelId, data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/labels/v2/${labelId}/patients`), headers,
method: 'post', url: getBaseUrl(`healths/labels/v2/${labelId}/patients`),
data: data, method: 'post',
description: '分组中添加居民', data: data,
description: '分组中添加居民',
})
}) })
} }
// 获取七牛上传token // 获取七牛上传token
export const getQiniuToken = (params) => { export const getQiniuToken = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`file/image/token`), headers,
method: 'get', url: getBaseUrl(`file/image/token`),
params: params, method: 'get',
params: params,
})
}) })
}; };
// 意见反馈 getSaasApiDomain // 意见反馈 getSaasApiDomain
export const submitFeedback = (data) => { export const submitFeedback = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers: { return fetch({
noSysCode: true, headers: {
"Content-Type": 'application/json' hospitalAuth:true,
}, noSysCode: true,
url: getSaasApiDomain(`web/companys/feedback`), "Content-Type": 'application/json'
method: 'post', },
data: data, url: getSaasApiDomain(`web/companys/feedback`),
method: 'post',
data: data,
})
}) })
}; };
/*资料不全居民*/ /*资料不全居民*/
export const getNotCompleteList = (params) => { export const getNotCompleteList = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/patients/uncomplate/${params.pageNo}/${params.pageSize}`), headers,
method: 'get', url: getBaseUrl(`healths/patients/uncomplate/${params.pageNo}/${params.pageSize}`),
description: '获取资料不全居民列表', method: 'get',
description: '获取资料不全居民列表',
})
}) })
}; };
export const sendCompleteMessage = (data) => { export const sendCompleteMessage = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/patients/remind`), headers,
method: 'post', url: getBaseUrl(`healths/patients/remind`),
data: data, method: 'post',
description: '提醒居民完善信息', data: data,
description: '提醒居民完善信息',
})
}) })
}; };
export const sendCompleteMessageList = (data) => { export const sendCompleteMessageList = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/patients/list/remind`), headers,
method: 'post', url: getBaseUrl(`healths/patients/list/remind`),
data: data, method: 'post',
description: '批量提醒居民完善信息', data: data,
description: '批量提醒居民完善信息',
})
}) })
}; };
export const getNotCompleteCount = (params) => { export const getNotCompleteCount = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/patients/uncomplate/counts`), headers,
method: 'get', url: getBaseUrl(`healths/patients/uncomplate/counts`),
params: params, method: 'get',
description: '获取未完善居民人数', params: params,
description: '获取未完善居民人数',
})
}) })
}; };
export const getRedNum = (params) => { export const getRedNum = (params) => {
// 这个方法暂不做权限校验
return fetch({ return fetch({
headers, headers,
url: getBaseUrl(`healths/patients/uncompleted/last/counts`), url: getBaseUrl(`healths/patients/uncompleted/last/counts`),
...@@ -280,66 +369,87 @@ export const getRedNum = (params) => { ...@@ -280,66 +369,87 @@ export const getRedNum = (params) => {
}) })
}; };
export const getPatientDetail = (patientId) => { export const getPatientDetail = (patientId) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/patients/${patientId}`), headers,
method: 'get', url: getBaseUrl(`healths/patients/${patientId}`),
// params: params, method: 'get',
description: '获取居民详情', // params: params,
description: '获取居民详情',
})
}) })
}; };
export const deletePatient = (data) => { export const deletePatient = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/patients/batch`), headers,
method: 'delete', url: getBaseUrl(`healths/patients/batch`),
data: data, method: 'delete',
description: '删除居民', data: data,
description: '删除居民',
})
}) })
}; };
export const getRemindPatient = (data) => { export const getRemindPatient = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/patients/remind`), headers,
method: 'post', url: getBaseUrl(`healths/patients/remind`),
data: data, method: 'post',
description: '提醒居民绑定微信', data: data,
description: '提醒居民绑定微信',
})
}) })
}; };
export const savePatientInfo = (data) => { export const savePatientInfo = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/patients/update`), headers,
method: 'post', url: getBaseUrl(`healths/patients/update`),
data: data, method: 'post',
description: '保存居民信息', data: data,
description: '保存居民信息',
})
}) })
}; };
export const getNationsList = (params) => { export const getNationsList = (params) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`resident/constants/nations`), headers,
method: 'get', url: getBaseUrl(`resident/constants/nations`),
params: params, method: 'get',
description: '获取56个民族列表', params: params,
description: '获取56个民族列表',
})
}) })
}; };
export const getHealthRecordList = (data) => { export const getHealthRecordList = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`followup/entering/health/records`), headers,
method: 'post', url: getBaseUrl(`followup/entering/health/records`),
data: data, method: 'post',
description: '健康档案记录列表', data: data,
description: '健康档案记录列表',
})
}) })
}; };
/*新的获取居民接口,搜索条件有变化*/ /*新的获取居民接口,搜索条件有变化*/
export const getPatientInfoList = (data) => { export const getPatientInfoList = (data) => {
return fetch({ return utils.checkAuth(()=>{
headers, return fetch({
url: getBaseUrl(`healths/patients/v2/infolist`), headers,
method: 'post', url: getBaseUrl(`healths/patients/v2/infolist`),
data: data, method: 'post',
description: '获取居民列表', data: data,
description: '获取居民列表',
})
}) })
}; };
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册