|
@ -27,7 +27,7 @@
|
|
|
//获取服务列表
|
|
|
getServiceItemList:function(){
|
|
|
var vm=this;
|
|
|
var loginDoctor = JSON.parse(window.localStorage.getItem('wlyyAgent'));
|
|
|
var loginDoctor = JSON.parse(window.localStorage.getItem('wlyyAgent') || '{}');
|
|
|
var loadding = top.layer.load(0, {shade: false}); //0代表加载的风格,支持0-2
|
|
|
rehaAPI.serviceItemList({planDetailIds:vm.planids}).then(function(res){
|
|
|
top.layer.close(loadding);
|
|
@ -35,13 +35,15 @@
|
|
|
vm.serviceData=_.map(res.data||{},function(o){
|
|
|
if(o.isMyTask==1){//执行者
|
|
|
o.isCK=true;//无法显示按钮
|
|
|
if(loginDoctor.doctorType==o.specialistDoctorCode){//说明我自己是创建者
|
|
|
if(loginDoctor.uid==o.specialistDoctorCode){//说明我自己是创建者
|
|
|
o.isCK=false;
|
|
|
o.isCreate=true;
|
|
|
}
|
|
|
}else{
|
|
|
if(loginDoctor.doctorType==o.specialistDoctorCode){//说明我自己是创建者
|
|
|
o.isZD=true;
|
|
|
console.log(loginDoctor.uid)
|
|
|
console.log(o.specialistDoctorCode)
|
|
|
if(loginDoctor.uid==o.specialistDoctorCode){//说明我自己是创建者
|
|
|
o.isCreate=true;
|
|
|
}
|
|
|
}
|
|
|
return o
|