|
@ -48,23 +48,14 @@
|
|
__Data:[],//当前的年月(日历)
|
|
__Data:[],//当前的年月(日历)
|
|
__xData:[],//当前的年月(时间轴)
|
|
__xData:[],//当前的年月(时间轴)
|
|
isFastSearch: false, // 是否是快速查找任务
|
|
isFastSearch: false, // 是否是快速查找任务
|
|
status:null,//任务状态(0未完成,1已完成,2已预约)
|
|
|
|
searchTask:null,//快速查找任务:(1、我的任务,2、健康教育,3、健康指导,4、随访,5、复诊)
|
|
|
|
searchTaskName:null,//快速查找任务:(1、我的任务,2、健康教育,3、健康指导,4、随访,5、复诊)
|
|
|
|
|
|
status: '',//任务状态(0未完成,1已完成,2已预约)
|
|
|
|
searchTask: '',//快速查找任务:(1、我的任务,2、健康教育,3、健康指导,4、随访,5、复诊)
|
|
|
|
searchTaskName: '全部',//快速查找任务:(1、我的任务,2、健康教育,3、健康指导,4、随访,5、复诊)
|
|
planId: httpData['planId'],
|
|
planId: httpData['planId'],
|
|
patientCode: httpData['patientCode'],
|
|
patientCode: httpData['patientCode'],
|
|
taskArr:[
|
|
|
|
{code:1,name:'我的任务'},
|
|
|
|
{code:2,name:'健康教育'},
|
|
|
|
{code:3,name:'健康指导'},
|
|
|
|
{code:4,name:'随访'},
|
|
|
|
{code:5,name:'复诊'},
|
|
|
|
],
|
|
|
|
statusArr:[
|
|
|
|
{code:0,name:'未完成'},
|
|
|
|
{code:1,name:'已完成'},
|
|
|
|
{code:2,name:'已预约'},
|
|
|
|
],
|
|
|
|
|
|
taskArr:[{code:"",name:"全部"},{code:2,name:"康复咨询"},{code:4,name:"上门服务"},{code:1,name:"电话/短信关怀"},{code:3,name:"健康监测"},{code:5,name:"康复指导"},
|
|
|
|
{code:6,name:"康复随访"},{code:7,name:"康复复诊"}],
|
|
|
|
statusArr:[{code:"",name:"全部"},{code:0,name:"未完成"},{code:1,name:"已完成"},{code:2,name:"已预约"}],
|
|
curTask:'',//快速查找是否点击了搜索按钮
|
|
curTask:'',//快速查找是否点击了搜索按钮
|
|
curTaskName:'',//快速查找是否点击了搜索按钮
|
|
curTaskName:'',//快速查找是否点击了搜索按钮
|
|
tabStatus:null,
|
|
tabStatus:null,
|
|
@ -263,11 +254,12 @@
|
|
});
|
|
});
|
|
},
|
|
},
|
|
changeStatus:function(val){
|
|
changeStatus:function(val){
|
|
this.status=this.status==val?null:val;
|
|
|
|
|
|
this.status=val.code;
|
|
|
|
console.log('this.status', this.status)
|
|
},
|
|
},
|
|
changeTask:function(val){
|
|
changeTask:function(val){
|
|
this.searchTask=this.searchTask==val.code?null:val.code;
|
|
|
|
this.searchTaskName=this.searchTaskName==val.name?null:val.name;
|
|
|
|
|
|
this.searchTask=val.code;
|
|
|
|
this.searchTaskName=val.name;
|
|
},
|
|
},
|
|
monDetail:function(){
|
|
monDetail:function(){
|
|
this.currentDay = this.ynow + '年'+ (this.mnow + 1) +'月';
|
|
this.currentDay = this.ynow + '年'+ (this.mnow + 1) +'月';
|
|
@ -413,7 +405,7 @@
|
|
var __days=vm.__Data;
|
|
var __days=vm.__Data;
|
|
var lastDay=(__days.concat()).pop().day;
|
|
var lastDay=(__days.concat()).pop().day;
|
|
lastDay=lastDay>9?lastDay:'0'+lastDay;
|
|
lastDay=lastDay>9?lastDay:'0'+lastDay;
|
|
if(vm.searchTask || vm.status || vm.status == 0) {
|
|
|
|
|
|
if(vm.searchTask != '' || vm.status != '') {
|
|
vm.isFastSearch = true
|
|
vm.isFastSearch = true
|
|
} else {
|
|
} else {
|
|
vm.isFastSearch = false
|
|
vm.isFastSearch = false
|
|
@ -684,6 +676,10 @@
|
|
[7, 4]
|
|
[7, 4]
|
|
][index];
|
|
][index];
|
|
},
|
|
},
|
|
|
|
confirmSearch: function(){
|
|
|
|
this.changeSearch(-1)
|
|
|
|
this.goToLoadData(true)
|
|
|
|
},
|
|
changeSearch: function(status) {
|
|
changeSearch: function(status) {
|
|
var i = status == 1 ? -400 : 0;
|
|
var i = status == 1 ? -400 : 0;
|
|
var timer1 = setInterval(function() {
|
|
var timer1 = setInterval(function() {
|