|
@ -202,22 +202,27 @@ reflashBindEvent=function(){
|
|
|
})
|
|
|
$(".mui-table-view-cell1").bind('click',function(){
|
|
|
var _text=$(this).find('a').text();
|
|
|
console.log(_text)
|
|
|
if(_text=='电话随访'){
|
|
|
if(patientInfo.mobile){
|
|
|
mui.toast('该居民未留下电话号码无法进行电话随访')
|
|
|
mui.toast('该居民未留下电话号码无法进行电话随访');
|
|
|
return ;
|
|
|
}
|
|
|
}else if(_text=='网络随访'){
|
|
|
}
|
|
|
if(_text=='网络随访'){
|
|
|
if(patientInfo.isWX){
|
|
|
mui.toast('该居民未关注公众号无法进行网络随访')
|
|
|
return ;
|
|
|
}
|
|
|
}else if(_text=='上门随访'){
|
|
|
}
|
|
|
if(_text=='上门随访'){
|
|
|
if(patientInfo.address){
|
|
|
mui.toast('该居民未留下居住地址无法进行上门随访')
|
|
|
return ;
|
|
|
}
|
|
|
}else{
|
|
|
mui('#sheet1').popover('hide');
|
|
|
$("[data-num="+currentNum+"]").find(".plan_type").text(_text).data('id',($(this).data("value")))
|
|
|
}
|
|
|
}
|
|
|
mui('#sheet1').popover('hide');
|
|
|
$("[data-num="+currentNum+"]").find(".plan_type").text(_text).data('id',($(this).data("value")))
|
|
|
})
|
|
|
},
|
|
|
//绑定事件
|
|
@ -256,7 +261,12 @@ bindEvents = function(){
|
|
|
if(plan_type == 3 && patientInfo.mobile == ''){ //type == 3,为电话随访
|
|
|
status = 2;
|
|
|
}
|
|
|
|
|
|
if(plan_type == 6 && patientInfo.isWX == ''){ //type == 6,为网络随访
|
|
|
status = 3;
|
|
|
}
|
|
|
if(plan_type == 2 && patientInfo.address == ''){ //type == 2,为上门随访
|
|
|
status = 4;
|
|
|
}
|
|
|
plan_datas[e] = [];
|
|
|
plan_datas[e] = {'date':plan_date+":00",'type':plan_type,'doctor':plan_doctor};
|
|
|
})
|
|
@ -264,9 +274,16 @@ bindEvents = function(){
|
|
|
mui.toast('随访日期未填写')
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if(status === 2){
|
|
|
mui.toast('该患者未预留电话,不可以电话随访')
|
|
|
mui.toast('该居民未预留电话,不可以电话随访')
|
|
|
return false;
|
|
|
}
|
|
|
if(status === 3){
|
|
|
mui.toast('该居民未关注微信公众号,不可以网络随访')
|
|
|
return false;
|
|
|
}
|
|
|
if(status === 4){
|
|
|
mui.toast('该居民未填写地址,不可以上门随访')
|
|
|
return false;
|
|
|
}
|
|
|
var params = {
|