提交 7ea9e0bd 编写于 作者: 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
...@@ -5,6 +5,7 @@ import {getPlanList, ...@@ -5,6 +5,7 @@ import {getPlanList,
getResidentList, getResidentList,
getGroupList, getGroupList,
getResidentDetail, getResidentDetail,
getBasicData,
changePlan} from '../../utils/followup/followapis' changePlan} from '../../utils/followup/followapis'
export default { export default {
...@@ -24,6 +25,8 @@ export default { ...@@ -24,6 +25,8 @@ export default {
timeNodeList: [], timeNodeList: [],
setTimeNodeList: [], //新建计划设置时间节点 setTimeNodeList: [], //新建计划设置时间节点
planList: {}, //随访计划列表 planList: {}, //随访计划列表
remarkOption: [], //随访计划备注常量
planStatusOption: [], //随访计划状态常量
}, },
mutations: { mutations: {
GET_RESIDENT_LIST(state, payload) { GET_RESIDENT_LIST(state, payload) {
...@@ -39,6 +42,12 @@ export default { ...@@ -39,6 +42,12 @@ export default {
GET_PLAN_DETAIL(state, payload) { GET_PLAN_DETAIL(state, payload) {
state.planDetail = payload state.planDetail = payload
}, },
GET_REMARK_OPTION(state, payload) {
state.remarkOption = payload.P211
},
GET_PLAN_STATUS_OPTION(state, payload) {
state.planStatusOption = payload.P216
},
GET_NODE_TIME_LIST(state, payload) { GET_NODE_TIME_LIST(state, payload) {
state.nodeTimeList = payload state.nodeTimeList = payload
}, },
...@@ -83,6 +92,20 @@ export default { ...@@ -83,6 +92,20 @@ export default {
context.commit('GET_PLAN_DETAIL', data); context.commit('GET_PLAN_DETAIL', data);
}); });
}, },
getRemarkOption(context, payload) {
getBasicData({
numList: 'P211'
}).then(({data}) => {
context.commit('GET_REMARK_OPTION', data);
});
},
getPlanStatusOption(context, payload) {
getBasicData({
numList: 'P216'
}).then(({data}) => {
context.commit('GET_PLAN_STATUS_OPTION', data);
});
},
getNodeTimeList(context, payload) { getNodeTimeList(context, payload) {
getNodeTimeList(payload).then(({data}) => { getNodeTimeList(payload).then(({data}) => {
context.commit('GET_NODE_TIME_LIST', data); context.commit('GET_NODE_TIME_LIST', data);
......
...@@ -39,10 +39,10 @@ ...@@ -39,10 +39,10 @@
size="small" size="small"
clearable> clearable>
<el-option <el-option
v-for="item in kindOptions" v-for="item in remarkOption"
:key="item.value" :key="item.no"
:label="item.label" :label="item.value"
:value="item.value"> :value="item.no">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -103,15 +103,6 @@ ...@@ -103,15 +103,6 @@
label: '随访模板三' label: '随访模板三'
} }
], ],
kindOptions: [
{
value: 0,
label: '上门随访'
}, {
value: 1,
label: '术后随访'
}
],
isShowSelectPatient: false, //显示居民选择框 isShowSelectPatient: false, //显示居民选择框
isShowSelectedDialog: false, //显示已选居民 isShowSelectedDialog: false, //显示已选居民
hasSelectedList: [], //已选居民 hasSelectedList: [], //已选居民
...@@ -120,20 +111,23 @@ ...@@ -120,20 +111,23 @@
}, },
mounted() { mounted() {
this.getPlanDetail(this.$route.query.planId); //获取计划详情 this.getPlanDetail(this.$route.query.planId); //获取计划详情
this.getRemarkOption()
this.getNodeTimeList(this.$route.query.planId); // 获取随访时间列表 this.getNodeTimeList(this.$route.query.planId); // 获取随访时间列表
this.getResidentList({ this.getResidentList({
planId: this.$route.query.planId planId: this.$route.query.planId
}); //已选居民 }); //已选居民
}, },
computed: { computed: {
...mapState('planManage', { ...mapState('planManage', {
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
}) })
}, },
methods: { methods: {
...mapActions('planManage', ['getPlanDetail', 'getNodeTimeList', 'getResidentList']), ...mapActions('planManage', ['getPlanDetail', 'getNodeTimeList', 'getResidentList', 'getRemarkOption']),
selectPatientHandler() { selectPatientHandler() {
this.isShowSelectPatient = true; this.isShowSelectPatient = true;
}, },
......
...@@ -178,16 +178,18 @@ ...@@ -178,16 +178,18 @@
this.getResidentList({ this.getResidentList({
planId: this.$route.query.planId planId: this.$route.query.planId
}); });
this.getPlanStatusOption()
this.getGroupList(); //获取分组列表 this.getGroupList(); //获取分组列表
}, },
computed: { computed: {
...mapState('planManage',{ ...mapState('planManage',{
residentList: state => state.residentList, residentList: state => state.residentList,
groupList: state => state.groupList groupList: state => state.groupList,
planStatusOption: state => state.planStatusOption
}) })
}, },
methods: { methods: {
...mapActions('planManage', ['getResidentList', 'getGroupList']), ...mapActions('planManage', ['getResidentList', 'getGroupList', 'getPlanStatusOption']),
handleSizeChangePre(pageSize) { handleSizeChangePre(pageSize) {
this.getResidentList({ this.getResidentList({
pageSize, pageSize,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册