提交 7a7246c6 编写于 作者: tao.wu's avatar tao.wu

Merge branch 'dev-followUp-20190312' of...

Merge branch 'dev-followUp-20190312' of 192.168.110.53:com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-followUp-20190312
...@@ -6,7 +6,8 @@ import {getPlanList, ...@@ -6,7 +6,8 @@ import {getPlanList,
getGroupList, getGroupList,
getResidentDetail, getResidentDetail,
getBasicData, getBasicData,
changePlan} from '../../utils/followup/followapis' changePlan,
createFollowPlan} from '../../utils/followup/followapis'
export default { export default {
namespaced: true, namespaced: true,
...@@ -65,6 +66,13 @@ export default { ...@@ -65,6 +66,13 @@ export default {
}, },
}, },
actions: { actions: {
setFollowPlan(context, payload) {
createFollowPlan({
...payload
}).then(({data})=> {
// console.log('成功',data)
})
},
getResidentList(context, payload) { getResidentList(context, payload) {
const { pageSize, pageNum } = context.state.residentList; const { pageSize, pageNum } = context.state.residentList;
getResidentList({ getResidentList({
......
...@@ -40,6 +40,15 @@ export const getTodayPlans = (params) => { ...@@ -40,6 +40,15 @@ export const getTodayPlans = (params) => {
}; };
/*计划管理*/ /*计划管理*/
export const createFollowPlan = (data) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/plans`),
method: 'post',
data: data,
description: '新增、修改随访计划',
},)
}
export const getPlanList = (params) => { export const getPlanList = (params) => {
return fetch({ return fetch({
headers, headers,
...@@ -129,12 +138,12 @@ export const getCheckReservation = (params) => { ...@@ -129,12 +138,12 @@ export const getCheckReservation = (params) => {
description: '发送预约校验', description: '发送预约校验',
}) })
}; };
export const getReservationPatients = (params) => { export const getReservationPatients = (data) => {
return fetch({ return fetch({
headers, headers,
url: getFollowUpSC(`/followup/appointmentPatient/accept/`), url: getFollowUpSC(`/followup/appoint/appointed/count`),
method: 'get', method: 'post',
params: params, data: data,
description: '查看预约人数', description: '查看预约人数',
}) })
}; };
...@@ -185,17 +194,6 @@ export const getEnteringInfo = (patientId, fuPlanPatientTimesId) => { ...@@ -185,17 +194,6 @@ export const getEnteringInfo = (patientId, fuPlanPatientTimesId) => {
},) },)
} }
//新增随访计划
export const createFollowPlan = (data) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/plans`),
method: 'post',
data: data,
description: '新增随访计划',
},)
}
//获取新建计划居民列表 //获取新建计划居民列表
export const getPlanPatientsList = (data) =>{ export const getPlanPatientsList = (data) =>{
data = data || {} data = data || {}
......
...@@ -45,12 +45,14 @@ ...@@ -45,12 +45,14 @@
</div> </div>
</div> </div>
</div> </div>
<div class="time-nodes"> <div class="time-nodes" >
<p class="title">随访时间节点</p> <p class="title">随访时间节点</p>
<el-radio-group v-model="timeNodes" size="small"> <div class="node-div">
<el-radio-button :key="item.id" v-for="item in planDetail.fPlanTimeDtoList" :label="item.id">{{item.timeStr}}</el-radio-button> <el-radio-group v-model="timeNodes" size="small">
</el-radio-group> <el-radio-button :key="item.id" v-for="item in planDetail.fPlanTimeDtoList" :label="item.id">{{item.timeStr}}</el-radio-button>
<div class="followup-contents"> </el-radio-group>
</div>
<div class="followup-contents" v-if="nodeContent.length">
<div class="content-div"> <div class="content-div">
<div class="c-title">随访方式:</div> <div class="c-title">随访方式:</div>
<div class="c-content">{{nodeContent[0].typeStr}}</div> <div class="c-content">{{nodeContent[0].typeStr}}</div>
...@@ -104,7 +106,7 @@ ...@@ -104,7 +106,7 @@
timeNodes: null,//时间节点 timeNodes: null,//时间节点
showFollowTime: false, //是否展示全部时间 showFollowTime: false, //是否展示全部时间
thisNodeContents: {}, thisNodeContents: {},
nodeContent: {}, //节点详情 nodeContent: [], //节点详情
} }
}, },
created() { created() {
...@@ -138,13 +140,15 @@ ...@@ -138,13 +140,15 @@
}, },
watch: { watch: {
planDetail(val) { planDetail(val) {
this.timeNodes = val.fPlanTimeDtoList[0].id if(val.fPlanTimeDtoList.length){
this.timeNodes = val.fPlanTimeDtoList[0].id
}
}, },
timeNodes(val) { timeNodes(val) {
this.nodeContent = this.planDetail.fPlanTimeDtoList.filter(function(item){ this.nodeContent = this.planDetail.fPlanTimeDtoList.filter(function(item){
return item.id == val; return item.id == val;
}) });
console.log('this.nodeContent',this.nodeContent[0])
} }
} }
} }
......
...@@ -129,7 +129,14 @@ ...@@ -129,7 +129,14 @@
}) })
}, },
methods: { methods: {
...mapActions('planManage', ['getPlanDetail', 'getNodeTimeList', 'getResidentList', 'getRemarkOption', 'getTimeNodeList']), ...mapActions('planManage', [
'getPlanDetail',
'getNodeTimeList',
'getResidentList',
'getRemarkOption',
'getTimeNodeList',
'modifyFollowPlan'
]),
selectPatientHandler() { selectPatientHandler() {
this.isShowSelectPatient = true; this.isShowSelectPatient = true;
}, },
...@@ -167,14 +174,15 @@ ...@@ -167,14 +174,15 @@
saveModify() { saveModify() {
this.$confirm('是否确认保存修改内容?', '', { this.$confirm('是否确认保存修改内容?', '', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
// 关闭弹层,继续创建 // 关闭弹层,继续创建
this.$message({ this.modifyFollowPlan(this.planDetail)
/*this.$message({
message: '修改成功!', message: '修改成功!',
type: 'success' type: 'success'
}); });*/
this.$router.back(-1) this.$router.back(-1)
}).catch(() => { }).catch(() => {
// 确定放弃,跳出当前编辑页面 // 确定放弃,跳出当前编辑页面
...@@ -195,7 +203,7 @@ ...@@ -195,7 +203,7 @@
planDetail(val) { planDetail(val) {
// this.setTimeNodeList = val.fPlanTimeDtoList // this.setTimeNodeList = val.fPlanTimeDtoList
this.setTimeNodeListOnCom(val.fPlanTimeDtoList) this.setTimeNodeListOnCom(val.fPlanTimeDtoList)
} },
} }
} }
</script> </script>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
label-suffix=":" label-suffix=":"
label-width="120px"> label-width="120px">
<el-form-item label="变更居民"> <el-form-item label="变更居民">
<span>{{reservationForm.nickName}}</span> <span>{{reservationForm.nickname}}</span>
</el-form-item> </el-form-item>
<el-form-item label="预约状态" required prop="appointStatus"> <el-form-item label="预约状态" required prop="appointStatus">
<el-radio-group v-model="reservationForm.appointStatus"> <el-radio-group v-model="reservationForm.appointStatus">
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</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.count}})</el-radio-button> <el-radio-button label="">全部({{reservationList.count}})</el-radio-button>
<el-radio-button label="1">未发送({{reservationList.unSendCount}})</el-radio-button> <el-radio-button label="1">未发送({{reservationList.unSendCount}})</el-radio-button>
<el-radio-button label="2">待确认({{reservationList.waitAcceptCount}})</el-radio-button> <el-radio-button label="2">待确认({{reservationList.waitAcceptCount}})</el-radio-button>
<el-radio-button label="3">已接受({{reservationList.acceptedCount}})</el-radio-button> <el-radio-button label="3">已接受({{reservationList.acceptedCount}})</el-radio-button>
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
planName: '', planName: '',
planTimes: '' planTimes: ''
}, //查询数据 }, //查询数据
status: 0, //列表筛选条件 status: '', //列表筛选条件
statusOptions: [ statusOptions: [
{ {
value: 1, value: 1,
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
changeReserveClick(row){ changeReserveClick(row){
// this.needPara = row; // this.needPara = row;
this.needPara = { this.needPara = {
nickName: row.nickName, nickname: row.nickname,
appointmentDate: '', appointmentDate: '',
appointmentRange: '', appointmentRange: '',
planId: row.planId, planId: row.planId,
......
...@@ -179,7 +179,7 @@ export default { ...@@ -179,7 +179,7 @@ export default {
}, },
changeFollowStatus(row) { changeFollowStatus(row) {
this.statusForm = { this.statusForm = {
fuPlanPatientTimesId: row.fuPlanPatientTimesId, fuPlanPatientTimesId: row.planPatientTimesId,
patientId: row.patientId, patientId: row.patientId,
nickname: row.patientName, nickname: row.patientName,
status: row.status, status: row.status,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册