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

fixed

上级 5ef47be8
......@@ -6,7 +6,8 @@ import {getPlanList,
getGroupList,
getResidentDetail,
getBasicData,
changePlan} from '../../utils/followup/followapis'
changePlan,
createFollowPlan} from '../../utils/followup/followapis'
export default {
namespaced: true,
......@@ -65,6 +66,13 @@ export default {
},
},
actions: {
setFollowPlan(context, payload) {
createFollowPlan({
...payload
}).then(({data})=> {
// console.log('成功',data)
})
},
getResidentList(context, payload) {
const { pageSize, pageNum } = context.state.residentList;
getResidentList({
......
......@@ -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) => {
return fetch({
headers,
......@@ -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) =>{
data = data || {}
......
......@@ -47,9 +47,11 @@
</div>
<div class="time-nodes" >
<p class="title">随访时间节点</p>
<el-radio-group v-model="timeNodes" size="small">
<el-radio-button :key="item.id" v-for="item in planDetail.fPlanTimeDtoList" :label="item.id">{{item.timeStr}}</el-radio-button>
</el-radio-group>
<div class="node-div">
<el-radio-group v-model="timeNodes" size="small">
<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="content-div">
<div class="c-title">随访方式:</div>
......@@ -146,8 +148,7 @@
timeNodes(val) {
this.nodeContent = this.planDetail.fPlanTimeDtoList.filter(function(item){
return item.id == val;
})
console.log('this.nodeContent',this.nodeContent[0])
});
}
}
}
......
......@@ -129,7 +129,14 @@
})
},
methods: {
...mapActions('planManage', ['getPlanDetail', 'getNodeTimeList', 'getResidentList', 'getRemarkOption', 'getTimeNodeList']),
...mapActions('planManage', [
'getPlanDetail',
'getNodeTimeList',
'getResidentList',
'getRemarkOption',
'getTimeNodeList',
'modifyFollowPlan'
]),
selectPatientHandler() {
this.isShowSelectPatient = true;
},
......@@ -167,14 +174,15 @@
saveModify() {
this.$confirm('是否确认保存修改内容?', '', {
confirmButtonText: '确定',
cancelButtonText: '取消',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
// 关闭弹层,继续创建
this.$message({
this.modifyFollowPlan(this.planDetail)
/*this.$message({
message: '修改成功!',
type: 'success'
});
});*/
this.$router.back(-1)
}).catch(() => {
// 确定放弃,跳出当前编辑页面
......@@ -195,7 +203,7 @@
planDetail(val) {
// this.setTimeNodeList = val.fPlanTimeDtoList
this.setTimeNodeListOnCom(val.fPlanTimeDtoList)
}
},
}
}
</script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册