提交 9a4a8e77 编写于 作者: yi.li's avatar yi.li

merge

上级 f708e5be
import followApi from '../../utils/followup/followapis' import {getEnteringList, changeEnteringStatus, getEnteringInfo} from '../../utils/followup/followapis'
export default { export default {
namespaced: true, namespaced: true,
...@@ -20,14 +20,14 @@ export default { ...@@ -20,14 +20,14 @@ export default {
}, },
actions: { actions: {
async getRecordList(context, payload) { async getRecordList(context, payload) {
await followApi.getEnteringList({ await getEnteringList({
...payload ...payload
}).then(({data}) => { }).then(({data}) => {
context.commit('GET_RECORD_LIST', data); context.commit('GET_RECORD_LIST', data);
}); });
}, },
async getEnteringInfo(context, payload) { async getEnteringInfo(context, payload) {
await followApi.getEnteringInfo({}, { await getEnteringInfo({}, {
...payload ...payload
}).then(({data}) => { }).then(({data}) => {
context.commit('GET_ENTERING_INFO', data); context.commit('GET_ENTERING_INFO', data);
......
import followApi from '../../utils/followup/followapis' import {getReservationList,
getCheckReservation,
getReservationPatients,
getBasicData} from '../../utils/followup/followapis'
export default { export default {
namespaced: true, namespaced: true,
...@@ -29,7 +32,7 @@ export default { ...@@ -29,7 +32,7 @@ export default {
actions: { actions: {
getReservationList(context, payload) { getReservationList(context, payload) {
const { pageSize, pageNum } = context.state.reservationList; const { pageSize, pageNum } = context.state.reservationList;
followApi.getReservationList({ getReservationList({
pageSize, pageSize,
pageNum, pageNum,
...payload ...payload
...@@ -38,21 +41,21 @@ export default { ...@@ -38,21 +41,21 @@ export default {
}); });
}, },
async getCheckReservation(context, payload) { async getCheckReservation(context, payload) {
await followApi.getCheckReservation({ await getCheckReservation({
...payload ...payload
}).then(({data}) => { }).then(({data}) => {
context.commit('GET_CHECK_RESERVATION', data) context.commit('GET_CHECK_RESERVATION', data)
}) })
}, },
async getConstantsData(context, payload) { async getConstantsData(context, payload) {
await followApi.getBasicData({ await getBasicData({
...payload ...payload
}).then(({data}) => { }).then(({data}) => {
context.commit('GET_CONSTANS_DATA', data) context.commit('GET_CONSTANS_DATA', data)
}) })
}, },
getReservationPatients(context, payload) { getReservationPatients(context, payload) {
followApi.getReservationPatients({ getReservationPatients({
...payload ...payload
}).then(({data}) => { }).then(({data}) => {
context.commit('GET_REVERVATION_NUM', data.number) context.commit('GET_REVERVATION_NUM', data.number)
......
import followApi from '../../utils/followup/followapis' import {getTodayAppointsList, getTodayOverview, getTodayPlans} from '@/utils/followup/followapis'
export default { export default {
namespaced: true, namespaced: true,
...@@ -32,21 +32,21 @@ export default { ...@@ -32,21 +32,21 @@ export default {
}, },
actions: { actions: {
getTodayPlansList(context, payload) { getTodayPlansList(context, payload) {
followApi.getTodayPlansSC({ getTodayPlans({
...payload ...payload
}).then(({data}) => { }).then(({data}) => {
context.commit('GET_TODAY_PLAN_LIST', data); context.commit('GET_TODAY_PLAN_LIST', data);
}); });
}, },
getTodayAppointsList(context, payload) { getTodayAppointsList(context, payload) {
followApi.getTodayAppointsListSC({ getTodayAppointsList({
...payload ...payload
}).then(({data}) => { }).then(({data}) => {
context.commit('GET_TODAY_APPOINTS_LIST', data); context.commit('GET_TODAY_APPOINTS_LIST', data);
}); });
}, },
getTodayOverview(context, payload) { getTodayOverview(context, payload) {
followApi.getTodayOverviewSC({ getTodayOverview({
...payload ...payload
}).then(({data}) => { }).then(({data}) => {
context.commit('GET_TODAY_OVERVIEW', data); context.commit('GET_TODAY_OVERVIEW', data);
......
...@@ -16,9 +16,8 @@ export const envConfig = { ...@@ -16,9 +16,8 @@ export const envConfig = {
loginUrl: 'https://dev-saas.yunqueyi.com/pica-login/work_station.html', loginUrl: 'https://dev-saas.yunqueyi.com/pica-login/work_station.html',
innerLoginUrl: 'http://localhost:8090/PICA_SSO_FE/html/pica_index.html', innerLoginUrl: 'http://localhost:8090/PICA_SSO_FE/html/pica_index.html',
yuequeyiIndexUrl: 'https://dev-saas.yunqueyi.com/pica_index.html', yuequeyiIndexUrl: 'https://dev-saas.yunqueyi.com/pica_index.html',
followUpApi: '', followUpSCSoSo: 'http://sosoapi.yunqueyi.com/sosoapi-web/pass/mock/73',
followUpApiSoSoApi:'http://sosoapi.yunqueyi.com/sosoapi-web/pass/mock/73', followUpSC: 'https://dev-sc.yunqueyi.com'
followUpSC: 'https://dev-sc.yunqueyi.com/followup'
}, },
dev: { dev: {
baseUrl: 'https://dev-sc.yunqueyi.com/portal/', baseUrl: 'https://dev-sc.yunqueyi.com/portal/',
...@@ -28,8 +27,7 @@ export const envConfig = { ...@@ -28,8 +27,7 @@ export const envConfig = {
loginUrl: 'https://dev-saas.yunqueyi.com/pica-login/work_station.html', loginUrl: 'https://dev-saas.yunqueyi.com/pica-login/work_station.html',
innerLoginUrl: 'https://dev-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html', innerLoginUrl: 'https://dev-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html',
yuequeyiIndexUrl: 'https://dev-saas.yunqueyi.com/pica_index.html', yuequeyiIndexUrl: 'https://dev-saas.yunqueyi.com/pica_index.html',
followUpApi: '', followUpSC: 'https://dev-sc.yunqueyi.com'
followUpSC: 'https://dev-sc.yunqueyi.com/followup'
}, },
test: { test: {
baseUrl: 'https://test1-sc.yunqueyi.com/portal/', baseUrl: 'https://test1-sc.yunqueyi.com/portal/',
...@@ -39,8 +37,7 @@ export const envConfig = { ...@@ -39,8 +37,7 @@ export const envConfig = {
loginUrl: 'https://test1-saas.yunqueyi.com/pica-login/work_station.html', loginUrl: 'https://test1-saas.yunqueyi.com/pica-login/work_station.html',
innerLoginUrl: 'https://test1-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html', innerLoginUrl: 'https://test1-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html',
yuequeyiIndexUrl: 'https://test-saas.yunqueyi.com/pica_index.html', yuequeyiIndexUrl: 'https://test-saas.yunqueyi.com/pica_index.html',
followUpApi: '', followUpSC: 'https://test1-sc.yunqueyi.com'
followUpSC: 'https://test1-sc.yunqueyi.com/followup'
}, },
uat: { uat: {
baseUrl: 'https://uat-sc.yunqueyi.com/portal/', baseUrl: 'https://uat-sc.yunqueyi.com/portal/',
...@@ -50,8 +47,7 @@ export const envConfig = { ...@@ -50,8 +47,7 @@ export const envConfig = {
loginUrl: 'https://uat-saas.yunqueyi.com/pica-login/work_station.html', loginUrl: 'https://uat-saas.yunqueyi.com/pica-login/work_station.html',
innerLoginUrl: 'https://uat-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html', innerLoginUrl: 'https://uat-sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html',
yuequeyiIndexUrl: 'https://uat-saas.yunqueyi.com/pica_index.html', yuequeyiIndexUrl: 'https://uat-saas.yunqueyi.com/pica_index.html',
followUpApi: '', followUpSC: 'https://uat-sc.yunqueyi.com'
followUpSC: 'https://uat-sc.yunqueyi.com/followup'
}, },
pro: { pro: {
baseUrl: 'https://sc.yunqueyi.com/portal/', baseUrl: 'https://sc.yunqueyi.com/portal/',
...@@ -61,7 +57,6 @@ export const envConfig = { ...@@ -61,7 +57,6 @@ export const envConfig = {
loginUrl: 'https://saas.yunqueyi.com/pica-login/work_station.html', loginUrl: 'https://saas.yunqueyi.com/pica-login/work_station.html',
innerLoginUrl: 'https://sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html', innerLoginUrl: 'https://sso.yunqueyi.com/PICA_SSO_FE/html/pica_index.html',
yuequeyiIndexUrl: 'https://saas.yunqueyi.com/pica_index.html', yuequeyiIndexUrl: 'https://saas.yunqueyi.com/pica_index.html',
followUpApi: '', followUpSC: 'https://sc.yunqueyi.com'
followUpSC: 'https://sc.yunqueyi.com/followup'
} }
} }
...@@ -11,9 +11,12 @@ const service = axios.create({ ...@@ -11,9 +11,12 @@ const service = axios.create({
// request拦截器 // request拦截器
service.interceptors.request.use(config => { service.interceptors.request.use(config => {
config.headers['sysCode'] = 12 /*if( config.headers['sysCode']==undefined) {
config.headers['token'] = localStorage.getItem('storageToken') config.headers['sysCode'] = 12
config.headers['deviceInfo'] = JSON.stringify({ "app_channel": "", "app_mac": "", "app_uuid": "", "app_version": "", "device_brand": "", "device_ip": "", "device_model": "", "device_net": "", "device_ops": "", "resolution_wh": "", "system_level": "", "device_type": '10' }) }*/
// config.headers['token'] = '1B27380B2BFE4B8DA432EB149D237AA1'
// config.headers['token'] = localStorage.getItem('storageToken')
// config.headers['deviceInfo'] = JSON.stringify({ "app_channel": "", "app_mac": "", "app_uuid": "", "app_version": "", "device_brand": "", "device_ip": "", "device_model": "", "device_net": "", "device_ops": "", "resolution_wh": "", "system_level": "", "device_type": '10' })
// if (config.data && config.data.setEntry) { // if (config.data && config.data.setEntry) {
// config.headers['sysCode'] = config.data.sysCode || 10 // config.headers['sysCode'] = config.data.sysCode || 10
// if(config.data.token){ // if(config.data.token){
......
...@@ -5,95 +5,148 @@ import utils from './followupUtils'; ...@@ -5,95 +5,148 @@ import utils from './followupUtils';
/*计划管理API*/
const planManageApi = [
{ const headers = null /*{
url: '/followup/plans', sysCode: 45
}*/
/*工作台*/
export const getTodayAppointsList = (params) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/overView/todayAppoints`),
method: 'get', method: 'get',
params: 'params', params: params,
name: 'getPlanList', description: '获取今日预约列表',
})
};
export const getTodayOverview = (params) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/overView/todayOverview`),
method: 'get',
params: params,
description: '获取今日随访、预约、随访人数',
})
};
export const getTodayPlans = (params) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/overView/todayPlans`),
method: 'get',
params: params,
description: '查询今日随访计划',
})
};
/*计划管理*/
export const getPlanList = (params) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/plans`),
method: 'get',
params: params,
description: '获取计划列表', description: '获取计划列表',
}, })
{ };
url: '/plans/', export const getPlanDetail = (params) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/plans/detail`),
method: 'get', method: 'get',
params: 'params', params: params,
name: 'getPlanDetail',
description: '获取计划详情', description: '获取计划详情',
}, })
{ };
url: '', export const getNodeTimeList = (planId) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/plans/times/line/${planId}`),
method: 'get', method: 'get',
params: 'params',
name: 'getNodeTimeList',
description: '获取随访时间节点列表', description: '获取随访时间节点列表',
}, })
{ };
url: '/plans/time/', export const getNodeTimeContent = (planTimeId) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/plans/time/${planTimeId}`),
method: 'get', method: 'get',
params: 'params',
name: 'getNodeTimeContent',
description: '获取节点详情', description: '获取节点详情',
}, })
{ };
url: '/followup/planPatient/', export const getResidentList = (params) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/planPatient/`),
method: 'get', method: 'get',
params: 'params', params: params,
name: 'getResidentList',
description: '获取居民列表', description: '获取居民列表',
}, })
{ };
url: '/followup/planPatient/group', export const getGroupList = (params) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/planPatient/group`),
method: 'get', method: 'get',
params: 'params', params: params,
name: 'getGroupList',
description: '获取分组列表', description: '获取分组列表',
}, })
{ };
url: '/followup/planPatient/detail', export const getResidentDetail = (params) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/planPatient/detail`),
method: 'get', method: 'get',
params: 'params', params: params,
name: 'getResidentDetail',
description: '获取居民详情', description: '获取居民详情',
}, })
{ };
url: '/followup/planPatient/change', export const changePlan = (params) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/planPatient/change`),
method: 'put', method: 'put',
params: 'params', params: params,
name: 'changePlan',
description: '变更计划', description: '变更计划',
}, })
]; };
/*预约管理API*/ /*预约管理*/
const reservationManageApi = [ export const getReservationList = (params) => {
{ return fetch({
url: '/followup/appointmentPatient/', headers,
url: getFollowUpSC(`/followup/appointmentPatient/`),
method: 'get', method: 'get',
params: 'params', params: params,
name: 'getReservationList',
description: '获取预约列表', description: '获取预约列表',
}, })
{ };
url: '/followup/appointmentPatient/check/', export const getCheckReservation = (params) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/appointmentPatient/check/`),
method: 'get', method: 'get',
params: 'params', params: params,
name: 'getCheckReservation',
description: '发送预约校验', description: '发送预约校验',
}, })
{ };
url: '/followup/appointmentPatient/accept/', export const getReservationPatients = (params) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/appointmentPatient/accept/`),
method: 'get', method: 'get',
params: 'params', params: params,
name: 'getReservationPatients',
description: '查看预约人数', description: '查看预约人数',
}, })
{ };
url: '/appoint/status/', export const changeReservationStatus = (params) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/appoint/status/`),
method: 'post', method: 'post',
params: 'data', params: 'data',
name: 'changeReservationStatus',
description: '手动变更预约状态', description: '手动变更预约状态',
<<<<<<< HEAD
}, },
{ {
url: '/appoint', url: '/appoint',
...@@ -144,87 +197,47 @@ const basicDataApi = [ ...@@ -144,87 +197,47 @@ const basicDataApi = [
const recordManageApi = [ const recordManageApi = [
{ {
url: '/followup/entering/list', url: '/followup/entering/list',
=======
})
};
/*录入管理*/
export const getEnteringList = (data) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/entering/list`),
>>>>>>> origin/dev-followUp-20190312
method: 'post', method: 'post',
params: 'data', data: data,
name: 'getEnteringList',
description: '录入列表查看', description: '录入列表查看',
}, })
{ }
url: '/followup/entering/status/change', export const changeEnteringStatus = (data) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/entering/status/change`),
method: 'post', method: 'post',
params: 'data', data: 'data',
name: 'changeEnteringStatus',
description: '变更随访状态', description: '变更随访状态',
}, },)
{ }
url: ``, export const getEnteringInfo = (patientId, fuPlanPatientTimesId) => {
return fetch({
headers,
url: getFollowUpSC(`followup/entering/${patientId}/fuInfo/${fuPlanPatientTimesId}`),
method: 'get', method: 'get',
params: 'params', params: 'params',
name: 'getEnteringInfo',
description: '随访单条信息查看', description: '随访单条信息查看',
}, },)
] }
const api = {};
const apis = [...planManageApi, ...reservationManageApi, ...basicDataApi, ...workbenchApi, ...recordManageApi];
apis.forEach(item => api[item.name] = (params = {}, extraConfig = {}) => {
// const config = {
// url: getFollowUpApi(item.url),
// method: item.method,
// };
let config = {};
if (item.name == 'getBasicData') {
config = {
url: getBasicDataApi(item.url),
method: item.method,
};
} else if (item.name == 'getNodeTimeList') {
let url = `/plan/${extraConfig.urlSuffix}/time`
config = {
url: getFollowUpApi(url),
method: item.method,
};
} else if (item.name.indexOf("SC")!=-1) {
config = {
url: getFollowUpSC(item.url),
method: item.method,
};
} else if (item.name == 'getEnteringInfo') {
let url = `/followup/entering/${extraConfig.patientId}/fuInfo/${extraConfig.fuPlanPatientTimesId}`
config = {
url: getFollowUpApi(url),
method: item.method,
};
} else {
config = {
url: getFollowUpApi(item.url),
method: item.method,
};
}
if (extraConfig.urlSuffix) { // 需要做URL拼接的情况(比如*.do/2),,,可以根据自己的实际情况进行扩展
config.url = `${config.url}${extraConfig.urlSuffix}`;
//something else
}
const filterParams = utils.DC.getParams(params, item.args);
if (item.params === 'data') {
config.data = filterParams;
} else {
config.params = filterParams;
}
/*utils.MSG.$emit('axios:begin', item.url);*/ /*常量*/
return fetch({ export const getBasicData = (data) => {
...config, return fetch({
...extraConfig, headers,
}).then(res => { url: getFollowUpSC(`/basic-data/constants/`),
return Promise.resolve(res); method: 'get',
}).catch(err => { params: params,
return Promise.resolve(err); description: '获取常量',
}); })
}); };
export default api;
...@@ -171,13 +171,10 @@ export function uploadVideo() { ...@@ -171,13 +171,10 @@ export function uploadVideo() {
export function uploadImg() { export function uploadImg() {
return getConfigByEnvType('qiniuImgUrl') return getConfigByEnvType('qiniuImgUrl')
} }
// 获取随访服务器域名地址
export function getFollowUpApi(url) {
return getConfigByEnvType('followUpApiSoSoApi') + url //当前使用sosoapi mock数据
}
// 获取随访微服务服务器域名地址 // 获取随访微服务服务器域名地址
export function getFollowUpSC(url) { export function getFollowUpSC(url) {
return getConfigByEnvType('followUpSC') + url return getConfigByEnvType('followUpSCSoSo') + url
} }
// 获取常量接口域名地址 // 获取常量接口域名地址
......
...@@ -41,13 +41,7 @@ ...@@ -41,13 +41,7 @@
<p class="tips">随访计划创建成功后,模板不可更换,请谨慎选择。</p> <p class="tips">随访计划创建成功后,模板不可更换,请谨慎选择。</p>
</el-form-item> </el-form-item>
<el-form-item label="随访开始时间" prop="startTime"> <el-form-item label="随访开始时间" prop="startTime">
<el-date-picker 2018-01-01 <el-button class="btn-text" type="text" @click="goToFollowTime">查看全部></el-button>
v-model="modifyInfo.startTime"
type="date"
placeholder="请选择随访开始时间"
clearable
style="width:380px;">
</el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="备注"> <el-form-item label="备注">
<el-select <el-select
...@@ -63,6 +57,9 @@ ...@@ -63,6 +57,9 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="edit-plan-content">
<set-time-node></set-time-node>
</div>
</div> </div>
<select-patient <select-patient
:isShowSelectPatient="isShowSelectPatient" :isShowSelectPatient="isShowSelectPatient"
...@@ -76,12 +73,14 @@ ...@@ -76,12 +73,14 @@
import BreadCrumb from '@/components/breadcrumb' import BreadCrumb from '@/components/breadcrumb'
import SelectPatient from '@/views/followup/plan-manage/dialog/select-patient'; import SelectPatient from '@/views/followup/plan-manage/dialog/select-patient';
import HasSelectedPatient from '@/views/followup/plan-manage/dialog/has-selected-patient'; import HasSelectedPatient from '@/views/followup/plan-manage/dialog/has-selected-patient';
import SetTimeNode from '@/views/followup/plan-manage/dialog/set-time-node';
export default { export default {
name: "plan-modify", name: "plan-modify",
components: { components: {
BreadCrumb, BreadCrumb,
SelectPatient, SelectPatient,
HasSelectedPatient, HasSelectedPatient,
SetTimeNode,
}, },
data() { data() {
return { return {
...@@ -134,6 +133,21 @@ ...@@ -134,6 +133,21 @@
this.hasSelectedList = getArguments[1]; this.hasSelectedList = getArguments[1];
this.modifyInfo.hasSelectedNum = getArguments[1].length; this.modifyInfo.hasSelectedNum = getArguments[1].length;
}, },
cancelEdit() {
this.$confirm('是否放弃本次创建,放弃后数据不能被保存', '', {
confirmButtonText: '继续创建',
cancelButtonText: '确定放弃',
type: 'warning'
}).then(() => {
// 关闭弹层,继续创建
}).catch(() => {
// 确定放弃,跳出当前编辑页面
this.$router.push({path: '/followup/plan-manage/plan-list'})
});
},
goToFollowTime() {
}
}, },
} }
</script> </script>
...@@ -149,5 +163,49 @@ ...@@ -149,5 +163,49 @@
border-bottom: $borderBottomStyle; border-bottom: $borderBottomStyle;
margin-bottom: 30px; margin-bottom: 30px;
} }
.edit-plan-content{
padding: 30px 0;
.add-time-content{
padding-top: 20px;
.time-line-scroll{
width: 100%;
height: 50px;
box-sizing: border-box;
background-color: #F0F2F5;
padding: 8px 10px;
/*display: flex;*/
/*align-items: center;*/
overflow-x: scroll;
overflow-y: hidden;
white-space: nowrap;
position: relative;
cursor: pointer;
&::-webkit-scrollbar{
height: 6px;
}
&::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
border-radius: 10px;
-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
background: rgba(0,0,0,0.1);
}
span{
display: inline-block;
background-color: #449284;
border-radius: 20px;
height: 28px;
line-height: 28px;
padding: 0 8px;
color: #ffffff;
font-size: 12px;
width: 95px;
}
}
.form-div{
padding-top: 30px;
}
}
}
</style> </style>
...@@ -44,11 +44,17 @@ ...@@ -44,11 +44,17 @@
</div> </div>
</div> </div>
<div class="resident-table table-content"> <div class="resident-table table-content">
<el-radio-group v-model="status"> <div class="btn-div">
<el-radio-button label="0">未完成({{residentList.notCount}})</el-radio-button> <el-radio-group v-model="status">
<el-radio-button label="1">进行中({{residentList.handCount}})</el-radio-button> <el-radio-button label="0">未完成({{residentList.notCount}})</el-radio-button>
<el-radio-button label="2">已结束({{residentList.yesCount}})</el-radio-button> <el-radio-button label="1">进行中({{residentList.handCount}})</el-radio-button>
</el-radio-group> <el-radio-button label="2">已结束({{residentList.yesCount}})</el-radio-button>
</el-radio-group>
<div class="btn-left">
<el-button class="button-green" type="primary" @click="finishFollowup('all')">结束随访</el-button>
<el-button class="button-white" plain @click="selectPatientHandler">添加居民</el-button>
</div>
</div>
<el-table <el-table
:data="residentList.fPlanPatientInfoDtoList" :data="residentList.fPlanPatientInfoDtoList"
center center
...@@ -112,6 +118,11 @@ ...@@ -112,6 +118,11 @@
</div> </div>
<change-plan :showThisPage="showChangePlan" :planChangeData="planChangeData" @closeChangePlan="closeChangePlan"></change-plan> <change-plan :showThisPage="showChangePlan" :planChangeData="planChangeData" @closeChangePlan="closeChangePlan"></change-plan>
<finish-followup :showThisPage="showFinishFollowup" :finishData="finishData" @closeFinishFollowup="closeFinishFollowup"></finish-followup> <finish-followup :showThisPage="showFinishFollowup" :finishData="finishData" @closeFinishFollowup="closeFinishFollowup"></finish-followup>
<select-patient
:isShowSelectPatient="isShowSelectPatient"
@closeSelectPatient="closeSelectPatient"
@sureSelectPatient="sureSelectPatient(arguments)">
</select-patient>
</div> </div>
</template> </template>
...@@ -121,6 +132,8 @@ ...@@ -121,6 +132,8 @@
import ChangePlan from '@/views/followup/plan-manage/dialog/change-plan'; import ChangePlan from '@/views/followup/plan-manage/dialog/change-plan';
//结束随访dialog //结束随访dialog
import FinishFollowup from '@/views/followup/plan-manage/dialog/finish-followup'; import FinishFollowup from '@/views/followup/plan-manage/dialog/finish-followup';
//添加居民
import SelectPatient from '@/views/followup/plan-manage/dialog/select-patient';
import { mapState, mapActions } from 'vuex' import { mapState, mapActions } from 'vuex'
export default { export default {
...@@ -129,6 +142,7 @@ ...@@ -129,6 +142,7 @@
BreadCrumb, BreadCrumb,
ChangePlan, ChangePlan,
FinishFollowup, FinishFollowup,
SelectPatient
}, },
data() { data() {
return { return {
...@@ -149,6 +163,8 @@ ...@@ -149,6 +163,8 @@
planChangeData: {}, //变更计划数据 planChangeData: {}, //变更计划数据
showFinishFollowup: false, //是否展示结束随访 showFinishFollowup: false, //是否展示结束随访
finishData: {}, //结束数据 finishData: {}, //结束数据
isShowSelectPatient: false, //显示居民选择框
hasSelectedList: [], //已选居民
} }
}, },
created() { created() {
...@@ -218,6 +234,18 @@ ...@@ -218,6 +234,18 @@
closeFinishFollowup(isShow) { closeFinishFollowup(isShow) {
this.showFinishFollowup = isShow this.showFinishFollowup = isShow
}, },
selectPatientHandler() {
this.isShowSelectPatient = true;
},
closeSelectPatient(val) {
this.isShowSelectPatient = val;
},
sureSelectPatient() {
let getArguments = arguments[0];
this.isShowSelectPatient = getArguments[0];
this.hasSelectedList = getArguments[1];
this.modifyInfo.hasSelectedNum = getArguments[1].length;
},
}, },
watch: { watch: {
status(val) { status(val) {
...@@ -234,5 +262,8 @@ ...@@ -234,5 +262,8 @@
@import '../../../style/followup/followup-common'; @import '../../../style/followup/followup-common';
@import '../../../style/followup/element-reset.css'; @import '../../../style/followup/element-reset.css';
.btn-left {
float: right;
}
</style> </style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册