提交 90e1341e 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

预约列表&工作台

上级 6fbe25e4
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
context.commit('GET_PLAN_OPTION', data); context.commit('GET_PLAN_OPTION', data);
}); });
}, },
changePlan(context, payload) { changePlan(context, payload) {
changePlan({ changePlan({
}).then(({data}) => { }).then(({data}) => {
...@@ -132,7 +132,7 @@ export default { ...@@ -132,7 +132,7 @@ export default {
}, },
getTimeNodeList(context, payload){ getTimeNodeList(context, payload){
context.commit('SET_TIME_NODE_LIST', payload); context.commit('SET_TIME_NODE_LIST', payload);
}, },
async getPlanList(context, payload) { async getPlanList(context, payload) {
await getPlanList({ await getPlanList({
...payload ...payload
......
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
}, },
mutations: { mutations: {
GET_RESERVATION_LIST(state, payload) { GET_RESERVATION_LIST(state, payload) {
state.reservationList = payload.data.enteringDtos state.reservationList = payload;
}, },
GET_CHECK_RESERVATION(state, payload) { GET_CHECK_RESERVATION(state, payload) {
state.checkRevervationData = payload state.checkRevervationData = payload
......
...@@ -9,22 +9,11 @@ export default { ...@@ -9,22 +9,11 @@ export default {
}, },
mutations: { mutations: {
GET_TODAY_PLAN_LIST(state, payload) { GET_TODAY_PLAN_LIST(state, payload) {
// state.todayPlansList = payload.data console.log('返回数据', payload)
state.todayPlansList = [ state.todayPlansList = payload
{
patientName: 'wewe',
status: 1,
appointTime: '2019-03-05'
}
]
}, },
GET_TODAY_APPOINTS_LIST(state, payload) { GET_TODAY_APPOINTS_LIST(state, payload) {
state.todayAppointsList = [ state.todayAppointsList = payload
{
planName: 'wewe',
appointTime: '2019-03-05'
}
]
}, },
GET_TODAY_OVERVIEW(state, payload) { GET_TODAY_OVERVIEW(state, payload) {
state.todayOverview = payload state.todayOverview = payload
......
...@@ -14,7 +14,7 @@ service.interceptors.request.use(config => { ...@@ -14,7 +14,7 @@ service.interceptors.request.use(config => {
if( config.headers['sysCode']==undefined) { if( config.headers['sysCode']==undefined) {
config.headers['sysCode'] = 12 config.headers['sysCode'] = 12
} }
config.headers['token'] = 'B19ABBCB6B7A4B6F887A1ED6BCB69FD6' config.headers['token'] = 'D74A6C7C61564EB1B3DC83251F33D173'
//config.headers['token'] = localStorage.getItem('storageToken') //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' }) 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) {
......
...@@ -7,9 +7,9 @@ import utils from './followupUtils'; ...@@ -7,9 +7,9 @@ import utils from './followupUtils';
const headers = null /*{ const headers = {
sysCode: 45 sysCode: 45
}*/ } /**/
/*工作台*/ /*工作台*/
export const getTodayAppointsList = (params) => { export const getTodayAppointsList = (params) => {
return fetch({ return fetch({
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="edit-plan-content"> <div class="edit-plan-content">
<set-time-node ></set-time-node> <set-time-node :setTimeNodeList="setTimeNodeList" @setTimeNodeListOnCom="setTimeNodeListOnCom"></set-time-node>
</div> </div>
</div> </div>
<select-patient <select-patient
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
isShowSelectPatient: false, //显示居民选择框 isShowSelectPatient: false, //显示居民选择框
isShowSelectedDialog: false, //显示已选居民 isShowSelectedDialog: false, //显示已选居民
hasSelectedList: [], //已选居民 hasSelectedList: [], //已选居民
nodeListModify: [], //修改node列表
showFollowTime: false, //是否展示全部时间 showFollowTime: false, //是否展示全部时间
} }
}, },
...@@ -123,11 +124,12 @@ ...@@ -123,11 +124,12 @@
planDetail: state => state.planDetail, planDetail: state => state.planDetail,
nodeTimeList: state => state.nodeTimeList, nodeTimeList: state => state.nodeTimeList,
residentList: state => state.residentList, residentList: state => state.residentList,
remarkOption: state => state.remarkOption remarkOption: state => state.remarkOption,
setTimeNodeList: state => state.setTimeNodeList
}) })
}, },
methods: { methods: {
...mapActions('planManage', ['getPlanDetail', 'getNodeTimeList', 'getResidentList', 'getRemarkOption']), ...mapActions('planManage', ['getPlanDetail', 'getNodeTimeList', 'getResidentList', 'getRemarkOption', 'getTimeNodeList']),
selectPatientHandler() { selectPatientHandler() {
this.isShowSelectPatient = true; this.isShowSelectPatient = true;
}, },
...@@ -185,7 +187,16 @@ ...@@ -185,7 +187,16 @@
closeFollowTime(isShow) { closeFollowTime(isShow) {
this.showFollowTime = isShow this.showFollowTime = isShow
}, },
setTimeNodeListOnCom(val){
this.getTimeNodeList(val)
},
}, },
watch: {
planDetail(val) {
// this.setTimeNodeList = val.fPlanTimeDtoList
this.setTimeNodeListOnCom(val.fPlanTimeDtoList)
}
}
} }
</script> </script>
......
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
<div class="search-div"> <div class="search-div">
<div class="search-input"> <div class="search-input">
<el-form :model="searchData" ref="searchData" :inline="true" :label-width="labelWidth"> <el-form :model="searchData" ref="searchData" :inline="true" :label-width="labelWidth">
<el-form-item label="随访计划名称:" prop="name"> <el-form-item label="随访计划名称:" prop="planName">
<el-input v-model="searchData.name" size="small" placeholder="请输入随访计划名称" clearable></el-input> <el-input v-model="searchData.planName" size="small" placeholder="请输入随访计划名称" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="姓名:" prop="nickName"> <el-form-item label="姓名:" prop="nickname">
<el-input v-model="searchData.nickName" size="small" placeholder="请输入姓名" clearable></el-input> <el-input v-model="searchData.nickname" size="small" placeholder="请输入姓名" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="手机号:" prop="mobilePhone"> <el-form-item label="手机号:" prop="mobilePhone">
<el-input v-model="searchData.mobilePhone" size="small" placeholder="请输入手机号" clearable></el-input> <el-input v-model="searchData.mobilePhone" size="small" placeholder="请输入手机号" clearable></el-input>
...@@ -50,15 +50,15 @@ ...@@ -50,15 +50,15 @@
</div> </div>
<div class="reservation-table table-content"> <div class="reservation-table table-content">
<el-radio-group v-model="status" size="small"> <el-radio-group v-model="status" size="small">
<el-radio-button label="0">全部({{reservationList.total}})</el-radio-button> <el-radio-button label="0">全部({{reservationList.count}})</el-radio-button>
<el-radio-button label="1">未发送({{reservationList.notCount}})</el-radio-button> <el-radio-button label="1">未发送({{reservationList.unSendCount}})</el-radio-button>
<el-radio-button label="2">待确认({{reservationList.handCount}})</el-radio-button> <el-radio-button label="2">待确认({{reservationList.waitAcceptCount}})</el-radio-button>
<el-radio-button label="3">已接受({{reservationList.yesCount}})</el-radio-button> <el-radio-button label="3">已接受({{reservationList.acceptedCount}})</el-radio-button>
<el-radio-button label="4">已拒绝({{reservationList.refuseCount }})</el-radio-button> <el-radio-button label="4">已拒绝({{reservationList.refusedCount }})</el-radio-button>
</el-radio-group> </el-radio-group>
<el-button class="button-green" type="primary" size="small" @click="sendReservation">发送预约</el-button> <el-button class="button-green" type="primary" size="small" @click="sendReservation">发送预约</el-button>
<el-table <el-table
:data="reservationList.fuPlanInfoList" :data="reservationList.enteringDtos"
center center
style="width: 100%;margin-top: 20px;" style="width: 100%;margin-top: 20px;"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange">
...@@ -67,11 +67,11 @@ ...@@ -67,11 +67,11 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="nickName" prop="nickname"
label="姓名" label="姓名"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="goPatientDetail(scope.row)" >{{scope.row.nickName}}</el-button> <el-button type="text" @click="goPatientDetail(scope.row)" >{{scope.row.nickname}}</el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -253,8 +253,8 @@ ...@@ -253,8 +253,8 @@
mobilePhone, mobilePhone,
timeStatus, timeStatus,
nickName, nickName,
planFromTime: this.searchData.planTimes[0], beginTime: this.searchData.planTimes[0],
planToTime: this.searchData.planTimes[1], endTime: this.searchData.planTimes[1],
status: this.status status: this.status
} }
} else { } else {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<el-col class="visitor screenSet" :span="24"> <el-col class="visitor screenSet" :span="24">
<div class="visitor-title"> <div class="visitor-title">
<div class="title">今日随访: <div class="title">今日随访:
<span style="color:#449284;margin-right: 10px">10</span> <span style="color:#449284;margin-right: 10px">{{todayPlansList.length}}</span>
<span class="type-button" :style="{background:(planBtn?'rgba(68,146,132,0.06)':'#ffffff')}" @click="changeTodayPlansList(0)">未完成</span> <span class="type-button" :style="{background:(planBtn?'rgba(68,146,132,0.06)':'#ffffff')}" @click="changeTodayPlansList(0)">未完成</span>
<span class="type-button" :style="{background:(!planBtn?'rgba(68,146,132,0.06)':'#ffffff')}" @click="changeTodayPlansList(1)">已过期</span> <span class="type-button" :style="{background:(!planBtn?'rgba(68,146,132,0.06)':'#ffffff')}" @click="changeTodayPlansList(1)">已过期</span>
</div> </div>
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
<el-table <el-table
:data="todayPlansList" :data="todayPlansList"
style="width: 100%"> style="width: 100%">
<el-table-column prop="patientName" label="姓名"></el-table-column> <el-table-column prop="patientName" label="姓名" align="center"></el-table-column>
<el-table-column prop="appointTime" label="预约时间"></el-table-column> <el-table-column prop="appointTime" label="预约时间" align="center"></el-table-column>
<el-table-column prop="style" label="随访方式"></el-table-column> <el-table-column prop="fuTypeStr" label="随访方式" align="center"></el-table-column>
<el-table-column prop="content" label="操作"> <el-table-column prop="content" label="操作" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="text-btn">随访录入</span> | <span class="text-btn" @click="changeFollowStatus(scope.row)">变更随访状态</span> <span class="text-btn">随访录入</span> | <span class="text-btn" @click="changeFollowStatus(scope.row)">变更随访状态</span>
</template> </template>
...@@ -39,11 +39,11 @@ ...@@ -39,11 +39,11 @@
<el-table <el-table
:data="todayAppointsList" :data="todayAppointsList"
style="width: 100%"> style="width: 100%">
<el-table-column prop="planName" label="随访计划名称"></el-table-column> <el-table-column prop="planName" label="随访计划名称" align="center"></el-table-column>
<el-table-column prop="appointTime" label="随访计划时间"></el-table-column> <el-table-column prop="appointTime" label="随访计划时间" align="center"></el-table-column>
<el-table-column prop="appointedCount" label="已经预约"></el-table-column> <el-table-column prop="hasAppointed" label="已经预约" align="center"></el-table-column>
<el-table-column prop="notAppointedCount" label="未预约"></el-table-column> <el-table-column prop="notAppointedCount" label="未预约" align="center"></el-table-column>
<el-table-column prop="content" label="操作"> <el-table-column prop="content" label="操作" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="text-btn" @click="goToReservation(scope.row.planName, scope.row.appointTime)">去预约</span> <span class="text-btn" @click="goToReservation(scope.row.planName, scope.row.appointTime)">去预约</span>
</template> </template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册