|
@ -45,17 +45,23 @@ var checktype=false;
|
|
},
|
|
},
|
|
//设置默认就诊卡
|
|
//设置默认就诊卡
|
|
setDefault:function(id,isDefault){
|
|
setDefault:function(id,isDefault){
|
|
var vm=this
|
|
|
|
|
|
var vm=this
|
|
|
|
var loading = dialog({
|
|
|
|
contentType: 'load',
|
|
|
|
skin: 'bk-popup',
|
|
|
|
content:'设置中...'
|
|
|
|
});
|
|
|
|
loading.showModal()
|
|
sendPost("/patient/card/defaultOpe", {id:id,isDefault:isDefault}, "json", "post",function(){
|
|
sendPost("/patient/card/defaultOpe", {id:id,isDefault:isDefault}, "json", "post",function(){
|
|
}, function(res){
|
|
}, function(res){
|
|
|
|
loading.close()
|
|
if(res.status == 200){
|
|
if(res.status == 200){
|
|
dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
|
|
dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
|
|
vm.getData()
|
|
vm.getData()
|
|
}else{
|
|
}else{
|
|
dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'数据获取失败'}).show();
|
|
dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'数据获取失败'}).show();
|
|
}
|
|
}
|
|
})
|
|
|
|
|
|
|
|
|
|
})
|
|
},
|
|
},
|
|
//跳转绑定就诊卡
|
|
//跳转绑定就诊卡
|
|
gotoBindingCard:function(){
|
|
gotoBindingCard:function(){
|