提交 2e76e6e2 编写于 作者: yi.li's avatar yi.li

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
...@@ -30,6 +30,15 @@ const followRouters = { ...@@ -30,6 +30,15 @@ const followRouters = {
name: 'planManage', name: 'planManage',
redirect: 'plan-manage/plan-list', redirect: 'plan-manage/plan-list',
children: [ children: [
{
path: 'plan-modify',
component: planModify,
name: 'planModify',
meta: {
title: '修改计划',
keepAlive: false //页面不需要缓存
},
},
{ {
path: 'plan-detail', path: 'plan-detail',
component: planDetail, component: planDetail,
......
...@@ -14,6 +14,7 @@ export default { ...@@ -14,6 +14,7 @@ export default {
nodeTimeList: [], //随访时间节点列表, nodeTimeList: [], //随访时间节点列表,
nodeContent: {}, //时间节点详情 nodeContent: {}, //时间节点详情
planOption: [], //随访计划select planOption: [], //随访计划select
timeNodeList: []
}, },
mutations: { mutations: {
...@@ -25,6 +26,7 @@ export default { ...@@ -25,6 +26,7 @@ export default {
}, },
GET_RESIDENT_DETAIL(state, payload) { GET_RESIDENT_DETAIL(state, payload) {
state.residentDetail = payload state.residentDetail = payload
state.timeNodeList = payload.fPlanPatientDatilDtoList.timeNodeList
}, },
GET_PLAN_DETAIL(state, payload) { GET_PLAN_DETAIL(state, payload) {
state.planDetail = payload state.planDetail = payload
...@@ -36,7 +38,7 @@ export default { ...@@ -36,7 +38,7 @@ export default {
state.nodeContent = payload state.nodeContent = payload
}, },
GET_PLAN_OPTION(state, payload) { GET_PLAN_OPTION(state, payload) {
state.planOption = payload state.planOption = payload.fPlanDtoList
} }
}, },
actions: { actions: {
...@@ -82,6 +84,20 @@ export default { ...@@ -82,6 +84,20 @@ export default {
}).then(({data}) => { }).then(({data}) => {
context.commit('GET_NODE_CONTENT', data); context.commit('GET_NODE_CONTENT', data);
}); });
} },
getPlanOptions(context, payload) {
followApi.getPlanList({
pageNum: -1
}).then(({data}) => {
context.commit('GET_PLAN_OPTION', data);
});
},
changePlan(context, payload) {
followApi.changePlan({
}).then(({data}) => {
// context.commit('GET_PLAN_OPTION', data);
});
},
}, },
} }
...@@ -12,7 +12,8 @@ export default { ...@@ -12,7 +12,8 @@ export default {
// state.todayPlansList = payload.data // state.todayPlansList = payload.data
state.todayPlansList = [ state.todayPlansList = [
{ {
planName: 'wewe', patientName: 'wewe',
status: 1,
appointTime: '2019-03-05' appointTime: '2019-03-05'
} }
] ]
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<el-form-item label="分组:"> <el-form-item label="分组:">
<el-select v-model="planChangeData.group" > <el-select v-model="planChangeData.group" >
<el-option <el-option
v-for="item in groupOption" v-for="item in groupList"
:key="item.labelId" :key="item.labelId"
:label="item.labelName" :label="item.labelName"
:value="item.labelId"> :value="item.labelId">
...@@ -19,35 +19,36 @@ ...@@ -19,35 +19,36 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="随访计划:"> <el-form-item label="随访计划:">
<el-select v-model="planChangeData.plan" > <el-select v-model="planChangeData.planId" >
<el-option <el-option
v-for="item in planOption" v-for="item in planOption"
:key="item.value" :key="item.id"
:label="item.label" :label="item.name"
:value="item.value"> :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="随访开始时间:"> <el-form-item label="随访开始时间:">
<el-select v-model="planChangeData.startTime"> <el-select v-model="planChangeData.startTime">
<el-option <el-option
v-for="item in groupOption" v-for="item in nodeTimeList"
:key="item.value" :key="item.id"
:label="item.label" :label="item.timeStr"
:value="item.value"> :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button class="button-green" @click="clickClose" type="primary">取 消</el-button> <el-button class="button-green" @click="clickClose" type="primary">取 消</el-button>
<el-button class="button-white" @click="clickClose" plain>确 定</el-button> <el-button class="button-white" @click="changePlan" plain>确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { mapState, mapActions} from 'vuex'
export default { export default {
name: "change-plan", name: "change-plan",
props: { props: {
...@@ -63,27 +64,51 @@ ...@@ -63,27 +64,51 @@
return {}; return {};
} }
}, },
groupOption: { /*groupOption: {
type: Array, type: Array,
default: function () { default: function () {
return []; return [];
} }
}, },*/
planOption: { /*planOption: {
type: Array, type: Array,
default: function () { default: function () {
return []; return [];
} }
}, },*/
}, },
data() { data() {
return { return {
showChangePlan: true showChangePlan: true
} }
}, },
mounted() {
this.getPlanOptions();
this.getNodeTimeList();
// 获取随访时间列表
},
computed: {
...mapState('planManage', {
planOption: state => state.planOption,
groupList: state => state.groupList,
nodeTimeList: state => state.nodeTimeList,
})
},
methods: { methods: {
...mapActions('planManage', ['getPlanOptions', 'getNodeTimeList', 'changePlan']),
clickClose() { clickClose() {
this.$emit('closeChangePlan',false) this.$emit('closeChangePlan',false);
},
changePlan() {
this.clickClose()
/* this.changePlan(this.planChangeData).then(({data}) => {
this.clickClose()
});*/
}
},
watch: {
planChangeData(val) {
this.getNodeTimeList(val.planId);
} }
} }
} }
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<div class="content-div"> <div class="content-div">
<div class="c-title">随访登记表:</div> <div class="c-title">随访登记表:</div>
<div class="c-content more-content"> <div class="c-content more-content">
<p v-for="item in nodeContent.followupList">{{item.sendContent}}</p> <p class="click-text" v-for="item in nodeContent.followupList" >{{item.sendContent}}</p>
</div> </div>
</div> </div>
</div> </div>
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
}, },
mounted() { mounted() {
this.getPlanDetail(this.$route.query.planId); //获取居民详情 this.getPlanDetail(this.$route.query.planId); //获取居民详情
this.getNodeTimeList(this.planId); // 获取随访时间列表 this.getNodeTimeList(this.$route.query.planId); // 获取随访时间列表
}, },
computed: { computed: {
...mapState('planManage', { ...mapState('planManage', {
......
...@@ -118,11 +118,7 @@ ...@@ -118,11 +118,7 @@
this.$router.push({path: '/followup/plan-manage/resident-list', query: {planId:'1'}}) this.$router.push({path: '/followup/plan-manage/resident-list', query: {planId:'1'}})
}, },
changeRow(row){ changeRow(row){
// this.statusForm = row; this.$router.push({path: '/followup/plan-manage/plan-modify', query: {planId:'1'}})
// this.dialogFormVisible = true;
// if (this.$refs['statusForm']) {
// this.$refs['statusForm'].resetFields();
// }
}, },
deleteRow(row){}, deleteRow(row){},
......
<template> <template>
<div class="plan-modify"> <div class="plan-modify">
修改计划 <bread-crumb
:curmbFirst="curmbFirst"
:curmbSecond="curmbSecond"
:curmbThird="curmbThird"
:jumPathThird="jumPathThird">
</bread-crumb>
<div class="new-plan-content f-main-content screenSet">
<div class="header">
<div class="title">
<span>修改计划</span>
</div>
<div class="plan-btns-group">
<el-button class="button-white" plain @click="cancelEdit" >取 消</el-button>
<el-button class="button-green" type="primary" @click="cancelEdit" >保 存</el-button>
</div>
</div>
<el-form ref="baseInfo" :model="modifyInfo" :rules="rules" label-suffix=":" label-width="140px">
<el-form-item label="随访计划名称" prop="name">
<el-input v-model="modifyInfo.name" maxlength="20" style="width: 30%" clearable></el-input>
</el-form-item>
<el-form-item label="随访居民" required>
<div class="select-patients">
<el-button plain icon="el-icon-plus" @click="selectPatientHandler">{{modifyInfo.hasSelectedNum ? '继续添加' : '选择居民'}}</el-button><br>
<el-button type="text" class="mt10" @click="seeSelectedHandler" v-if="modifyInfo.hasSelectedNum">已选{{modifyInfo.hasSelectedNum}}<i class="el-icon-arrow-right"></i></el-button>
</div>
</el-form-item>
<el-form-item label="随访模板" prop="followupTemplate">
<el-select
v-model="modifyInfo.followupTemplate"
placeholder="请选择随访模板"
clearable>
<el-option
v-for="item in templateOptions"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
<p class="tips">随访计划创建成功后,模板不可更换,请谨慎选择。</p>
</el-form-item>
<el-form-item label="随访开始时间" prop="startTime">
<el-date-picker
v-model="modifyInfo.startTime"
type="date"
placeholder="请选择随访开始时间"
clearable
style="width:380px;">
</el-date-picker>
</el-form-item>
<el-form-item label="备注">
<el-select
v-model="modifyInfo.followupKind"
placeholder="请选择随访种类"
clearable>
<el-option
v-for="item in kindOptions"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
</el-form>
</div>
<select-patient
:isShowSelectPatient="isShowSelectPatient"
@closeSelectPatient="closeSelectPatient"
@sureSelectPatient="sureSelectPatient(arguments)">
</select-patient>
</div> </div>
</template> </template>
<script> <script>
import BreadCrumb from '@/components/breadcrumb'
import SelectPatient from '@/views/followup/plan-manage/dialog/select-patient';
import HasSelectedPatient from '@/views/followup/plan-manage/dialog/has-selected-patient';
export default { export default {
name: "plan-modify" name: "plan-modify",
components: {
BreadCrumb,
SelectPatient,
HasSelectedPatient,
},
data() {
return {
/*面包屑配置*/
curmbFirst: '随访管理',
curmbSecond: '计划管理',
curmbThird: '修改随访计划',
jumPathThird: '/followUp/plan-manage',
modifyInfo: {},
rules: {
name: [{ required: true, message: '请输入随访计划名称', trigger: 'blur' }],
followupTemplate: [{ required: true, message: '请选择随访模板', trigger: 'change' }],
startTime: [{ required: true, message: '请选择随访开始时间', trigger: 'change' }],
},
templateOptions: [
{
value: '0',
label: '随访模板一'
}, {
value: '1',
label: '随访模板二'
}, {
value: '2',
label: '随访模板三'
}
],
kindOptions: [
{
value: '0',
label: '上门随访'
}, {
value: '1',
label: '术后随访'
}
],
isShowSelectPatient: false, //显示居民选择框
hasSelectedList: [], //已选居民
}
},
methods: {
selectPatientHandler() {
this.isShowSelectPatient = true;
},
closeSelectPatient(val) {
this.isShowSelectPatient = val;
},
sureSelectPatient() {
let getArguments = arguments[0];
this.isShowSelectPatient = getArguments[0];
this.hasSelectedList = getArguments[1];
this.modifyInfo.hasSelectedNum = getArguments[1].length;
},
},
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
@import '../../../style/followup/followup-common';
@import '../../../style/followup/element-reset.css';
.header{
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 20px;
border-bottom: $borderBottomStyle;
margin-bottom: 30px;
}
</style> </style>
...@@ -62,10 +62,10 @@ ...@@ -62,10 +62,10 @@
</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"> <el-radio-group v-model="timeNodes">
<el-radio-button :key="item.id" v-for="item in residentDetail.fPlanTimeDtoList" :label="item.nodeId">{{item.timeStr}}</el-radio-button> <el-radio-button :key="item.nodeId" v-for="item in timeNodeList" :label="item.nodeId">{{item.timeNodeContent}}</el-radio-button>
</el-radio-group> </el-radio-group>
<div class="followup-contents"> <div class="followup-contents">
<div class="content-div"> <div class="content-div">
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
</div> </div>
<div class="content-div"> <div class="content-div">
<div class="c-title">推送患教:</div> <div class="c-title">推送患教:</div>
<div class="c-content more-content"> <div class="c-content more-content" v-for="item in nodeContent.pushContentList">
<p>{{item.startDaysStr}} <span class="click-text" >{{item.sendContent}}</span></p> <p>{{item.startDaysStr}} <span class="click-text" >{{item.sendContent}}</span></p>
<p class="reminding">推送规则:优先微信推送,如果居民没关注云鹊医公众号,将短信推送,短信推送会消耗您的额度。推送详情请前往云鹊医app患教中心查询</p> <p class="reminding">推送规则:优先微信推送,如果居民没关注云鹊医公众号,将短信推送,短信推送会消耗您的额度。推送详情请前往云鹊医app患教中心查询</p>
</div> </div>
...@@ -88,14 +88,14 @@ ...@@ -88,14 +88,14 @@
<div class="content-div"> <div class="content-div">
<div class="c-title">随访登记表:</div> <div class="c-title">随访登记表:</div>
<div class="c-content more-content"> <div class="c-content more-content">
<p v-for="item in nodeContent.followupList">{{item.sendContent}}</p> <p class="click-text" v-for="item in nodeContent.followupList">{{item.sendContent}}</p>
</div> </div>
</div> </div>
</div> </div>
</div>--> </div>
</div> </div>
<change-plan :showThisPage="showChangePlan" @closeChangePlan="closeChangePlan"></change-plan> <change-plan :showThisPage="showChangePlan" :planChangeData="planChangeData" @closeChangePlan="closeChangePlan"></change-plan>
<finish-followup :showThisPage="showFinishFollowup" @closeFinishFollowup="closeFinishFollowup"></finish-followup> <finish-followup :showThisPage="showFinishFollowup" :finishData="finishData" @closeFinishFollowup="closeFinishFollowup"></finish-followup>
</div> </div>
</template> </template>
...@@ -124,33 +124,48 @@ ...@@ -124,33 +124,48 @@
/*面包屑配置*/ /*面包屑配置*/
timeNodes: 0,//时间节点 timeNodes: 0,//时间节点
showChangePlan: false,//是否展示变更计划 showChangePlan: false,//是否展示变更计划
showFinishFollowup: false, //是否展示结束随访 showFinishFollowup: false, //是否展示结束随访,
planChangeData: {}, //变更信息
finishData: {}, //结束信息
} }
}, },
created() { created() {
},
computed: {
...mapState('planManage', {
residentDetail: state => state.residentDetail,
nodeContent: state => state.nodeContent,
timeNodeList: state => state.timeNodeList,
nodeContent: state => state.nodeContent,
groupList: state => state.groupList
})
}, },
mounted() { mounted() {
this.getResidentDetail({ this.getResidentDetail({
patientId: this.$route.query.patientId, patientId: this.$route.query.patientId,
planId: this.$route.query.planId planId: this.$route.query.planId
}); //获取居民详情 }); //获取居民详情
this.getGroupList(); //获取分组列表
}, },
computed: {
...mapState('planManage', {
residentDetail: state => state.residentDetail,
nodeContent: state => state.nodeContent
})
},
methods: { methods: {
...mapActions('planManage', ['getResidentDetail']), ...mapActions('planManage', ['getResidentDetail', 'getNodeTimeContent', 'getGroupList']),
changePlan() { changePlan() {
this.planChangeData = {
group: this.residentDetail.fPlanPatientDatilDtoList.labelIds,
planId: this.residentDetail.fPlanPatientDatilDtoList.planId,
startTime: this.residentDetail.fPlanPatientDatilDtoList.time
}
this.showChangePlan = true; this.showChangePlan = true;
}, },
closeChangePlan(isShow) { closeChangePlan(isShow) {
this.showChangePlan = isShow this.showChangePlan = isShow
}, },
finishFollowup() { finishFollowup() {
this.finishData = {
patientName: this.residentDetail.fPlanPatientDatilDtoList.nickName,
}
this.showFinishFollowup = true; this.showFinishFollowup = true;
}, },
closeFinishFollowup(isShow) { closeFinishFollowup(isShow) {
...@@ -158,8 +173,9 @@ ...@@ -158,8 +173,9 @@
}, },
}, },
watch: { watch: {
planDetail(val) { timeNodeList(val) {
this.timeNodes = val.fPlanTimeDtoList[0].id console.log('val1',val)
this.timeNodes = val[0].nodeId
}, },
timeNodes(val) { timeNodes(val) {
this.getNodeTimeContent(val) this.getNodeTimeContent(val)
......
...@@ -12,13 +12,13 @@ ...@@ -12,13 +12,13 @@
<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="patientName"> <el-form-item label="姓名:" prop="patientName">
<el-input v-model="searchData.patientName" placeholder="请输入姓名"></el-input> <el-input v-model="searchData.patientName" placeholder="请输入姓名" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="手机号:" prop="mobile"> <el-form-item label="手机号:" prop="mobile">
<el-input v-model="searchData.mobile" placeholder="请输入手机号"></el-input> <el-input v-model="searchData.mobile" placeholder="请输入手机号" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="分组:" prop="labelId"> <el-form-item label="分组:" prop="labelId">
<el-select v-model="searchData.labelId" > <el-select v-model="searchData.labelId" clearable>
<el-option <el-option
v-for="item in groupList" v-for="item in groupList"
:key="item.labelId" :key="item.labelId"
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="随访开始时间:" prop="startDate"> <el-form-item label="随访开始时间:" prop="startDate" clearable>
<el-date-picker <el-date-picker
v-model="searchData.startDate" v-model="searchData.startDate"
type="datetime" type="datetime"
...@@ -90,8 +90,8 @@ ...@@ -90,8 +90,8 @@
label="操作" label="操作"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button class="btn-right-class" type="text" @click="changePlan" >变更计划</el-button>| <el-button class="btn-right-class" type="text" @click="changePlan(scope.row)" >变更计划</el-button>|
<el-button class="btn-right-class" type="text" @click="finishFollowup" >结束随访</el-button> <el-button class="btn-right-class" type="text" @click="finishFollowup(scope.row)" >结束随访</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -110,8 +110,8 @@ ...@@ -110,8 +110,8 @@
</div> </div>
</div> </div>
</div> </div>
<change-plan :showThisPage="showChangePlan" :groupOption="groupList" @closeChangePlan="closeChangePlan"></change-plan> <change-plan :showThisPage="showChangePlan" :planChangeData="planChangeData" @closeChangePlan="closeChangePlan"></change-plan>
<finish-followup :showThisPage="showFinishFollowup" @closeFinishFollowup="closeFinishFollowup"></finish-followup> <finish-followup :showThisPage="showFinishFollowup" :finishData="finishData" @closeFinishFollowup="closeFinishFollowup"></finish-followup>
</div> </div>
</template> </template>
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
curmbThird: '查看居民', curmbThird: '查看居民',
jumPathThird: '/followUp/plan-manage', jumPathThird: '/followUp/plan-manage',
/*面包屑配置*/ /*面包屑配置*/
labelWidth: '96px', //标题长度 labelWidth: '110px', //标题长度
searchData: {}, //查询数据 searchData: {}, //查询数据
groupOption: [{ // 分组选项 groupOption: [{ // 分组选项
value: '全部', value: '全部',
...@@ -146,7 +146,9 @@ ...@@ -146,7 +146,9 @@
}], }],
status: 0, //列表筛选条件 status: 0, //列表筛选条件
showChangePlan: false,//是否展示变更计划 showChangePlan: false,//是否展示变更计划
planChangeData: {}, //变更计划数据
showFinishFollowup: false, //是否展示结束随访 showFinishFollowup: false, //是否展示结束随访
finishData: {}, //结束数据
} }
}, },
created() { created() {
...@@ -196,13 +198,21 @@ ...@@ -196,13 +198,21 @@
resetSearchData(formName) { resetSearchData(formName) {
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
}, },
changePlan() { changePlan(row) {
this.planChangeData = {
group: row.labelIds,
planId: 1,
startTime: row.time
}
this.showChangePlan = true; this.showChangePlan = true;
}, },
closeChangePlan(isShow) { closeChangePlan(isShow) {
this.showChangePlan = isShow this.showChangePlan = isShow
}, },
finishFollowup() { finishFollowup(row) {
this.finishData = {
patientName: row.patientName,
};
this.showFinishFollowup = true; this.showFinishFollowup = true;
}, },
closeFinishFollowup(isShow) { closeFinishFollowup(isShow) {
......
...@@ -10,15 +10,15 @@ ...@@ -10,15 +10,15 @@
<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="planName"> <el-form-item label="随访计划名称:" prop="planName">
<el-input v-model="searchData.planName" placeholder="请输入随访计划名称"></el-input> <el-input v-model="searchData.planName" 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" placeholder="请输入姓名"></el-input> <el-input v-model="searchData.nickName" 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" placeholder="请输入手机号"></el-input> <el-input v-model="searchData.mobilePhone" placeholder="请输入手机号" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="随访时间范围:" prop="planTimes"> <el-form-item label="随访时间范围:" prop="planTimes" clearable>
<el-date-picker <el-date-picker
v-model="searchData.planTimes" v-model="searchData.planTimes"
type="daterange" type="daterange"
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<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>
<span class="visitor-more" @click="lookMore">查看更多</span> <span class="visitor-more" @click="lookMore(1)">查看更多</span>
</div> </div>
<div class="visitor-info"> <div class="visitor-info">
<el-table <el-table
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<el-table-column prop="style" label="随访方式"></el-table-column> <el-table-column prop="style" label="随访方式"></el-table-column>
<el-table-column prop="content" label="操作"> <el-table-column prop="content" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="text-btn">随访录入</span> | <span class="text-btn">变更随访状态</span> <span class="text-btn">随访录入</span> | <span class="text-btn" @click="changeFollowStatus(scope.row)">变更随访状态</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<span class="type-button" :style="{background:(appointBtn?'rgba(68,146,132,0.06)':'#ffffff')}" @click="changeTodayAppointsList(0)" style="margin-left: 10px;">未完成</span> <span class="type-button" :style="{background:(appointBtn?'rgba(68,146,132,0.06)':'#ffffff')}" @click="changeTodayAppointsList(0)" style="margin-left: 10px;">未完成</span>
<span class="type-button" :style="{background:(!appointBtn?'rgba(68,146,132,0.06)':'#ffffff')}" @click="changeTodayAppointsList(1)" >已过期</span> <span class="type-button" :style="{background:(!appointBtn?'rgba(68,146,132,0.06)':'#ffffff')}" @click="changeTodayAppointsList(1)" >已过期</span>
</div> </div>
<span class="visitor-more" @click="lookMore">查看更多</span> <span class="visitor-more" @click="lookMore(2)">查看更多</span>
</div> </div>
<div class="visitor-info"> <div class="visitor-info">
<el-table <el-table
...@@ -73,16 +73,22 @@ ...@@ -73,16 +73,22 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<change-followup-status :isShowChangeDialog="isShowChangeDialog" :statusForm="statusForm" @closeChangeStatus="closeChangeStatus()"></change-followup-status>
</div> </div>
</template> </template>
<script> <script>
import BreadCrumb from '../components/breadcrumb.vue' import BreadCrumb from '../components/breadcrumb.vue'
import { setTimeout, setInterval } from 'timers' import { setTimeout, setInterval } from 'timers'
import ChangeFollowupStatus from "./followup/record-manage/dialog/change-followup-status";
import { mapGetters, mapState, mapActions } from 'vuex' import { mapGetters, mapState, mapActions } from 'vuex'
let vm = null let vm = null
export default { export default {
components: { components: {
BreadCrumb BreadCrumb,
ChangeFollowupStatus
}, },
data() { data() {
return { return {
...@@ -94,6 +100,8 @@ export default { ...@@ -94,6 +100,8 @@ export default {
messageList:[], messageList:[],
planBtn: true, planBtn: true,
appointBtn: true, appointBtn: true,
isShowChangeDialog: false,
statusForm: {},
} }
}, },
created() { created() {
...@@ -122,8 +130,12 @@ export default { ...@@ -122,8 +130,12 @@ export default {
methods: { methods: {
...mapActions('workbench', ['getTodayPlansList', 'getTodayAppointsList', 'getTodayOverview']), ...mapActions('workbench', ['getTodayPlansList', 'getTodayAppointsList', 'getTodayOverview']),
// 查看更多 // 查看更多
lookMore() { lookMore(type) {
if(type==1) {
this.$router.push('/followup/record-manage/record-list');
} else if(type == 2) {
this.$router.push('/followup/reservation-manage/reservation-list');
}
}, },
// 获取系统消息数据 // 获取系统消息数据
getSystemData() { getSystemData() {
...@@ -157,6 +169,16 @@ export default { ...@@ -157,6 +169,16 @@ export default {
}, },
goToReservation(planName, appointTime) { goToReservation(planName, appointTime) {
this.$router.push({path: '/followup/reservation-manage/reservation-list', query: {planName: planName, appointTime:appointTime}}); this.$router.push({path: '/followup/reservation-manage/reservation-list', query: {planName: planName, appointTime:appointTime}});
},
closeChangeStatus(val){
this.isShowChangeDialog = val;
},
changeFollowStatus(row) {
this.statusForm = {
nickname: row.patientName,
status: row.status,
}
this.isShowChangeDialog = true
} }
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册