|
@ -45,17 +45,23 @@ var checktype=false;
|
|
|
},
|
|
|
//设置默认就诊卡
|
|
|
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(){
|
|
|
}, function(res){
|
|
|
loading.close()
|
|
|
if(res.status == 200){
|
|
|
dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
|
|
|
vm.getData()
|
|
|
}else{
|
|
|
dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'数据获取失败'}).show();
|
|
|
}
|
|
|
})
|
|
|
|
|
|
})
|
|
|
},
|
|
|
//跳转绑定就诊卡
|
|
|
gotoBindingCard:function(){
|