|
@ -52,24 +52,30 @@ var checktype=false;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//设置默认就诊卡
|
|
//设置默认就诊卡
|
|
setDefault:function(id,isDefault){
|
|
|
|
|
|
setDefault:function(id,isDefault,str){
|
|
var vm=this
|
|
var vm=this
|
|
var loading = dialog({
|
|
var loading = dialog({
|
|
contentType: 'load',
|
|
contentType: 'load',
|
|
skin: 'bk-popup',
|
|
skin: 'bk-popup',
|
|
content:'设置中...'
|
|
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();
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
dialog({
|
|
|
|
content: str, cancelValue: '否', okValue: '是',
|
|
|
|
cancel: function () { },
|
|
|
|
ok: function () {
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
}).showModal();
|
|
},
|
|
},
|
|
initBtnScroll: function () {
|
|
initBtnScroll: function () {
|
|
var vm=this
|
|
var vm=this
|