提交 7355c1c1 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

fixed

上级 5ef47be8
...@@ -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,
...@@ -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 || {}
......
...@@ -47,9 +47,11 @@ ...@@ -47,9 +47,11 @@
</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>
</el-radio-group>
</div>
<div class="followup-contents" v-if="nodeContent.length"> <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>
...@@ -146,8 +148,7 @@ ...@@ -146,8 +148,7 @@
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>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册