|
@ -1,7 +1,7 @@
|
|
|
!function(){
|
|
|
var httpData=GetRequest();
|
|
|
var userInfo = JSON.parse(window.localStorage.getItem(httpRequest.agentName));
|
|
|
top.serviceItem=new Vue({
|
|
|
parent.serviceItem=new Vue({
|
|
|
el:"#app",
|
|
|
data:{
|
|
|
planids:httpData['planids'],
|
|
@ -22,15 +22,15 @@
|
|
|
this.collapseIndex=idx;
|
|
|
},
|
|
|
qwapp:function(){
|
|
|
top.layer.msg('请前往app处理',{icon:5});
|
|
|
layer.msg('请前往app处理',{icon:5});
|
|
|
},
|
|
|
//获取服务列表
|
|
|
getServiceItemList:function(){
|
|
|
var vm=this;
|
|
|
var loginDoctor = JSON.parse(window.localStorage.getItem('wlyyAgent') || '{}');
|
|
|
var loadding = top.layer.load(0, {shade: false}); //0代表加载的风格,支持0-2
|
|
|
var loadding = layer.load(0, {shade: false}); //0代表加载的风格,支持0-2
|
|
|
rehaAPI.serviceItemList({planDetailIds:vm.planids}).then(function(res){
|
|
|
top.layer.close(loadding);
|
|
|
layer.close(loadding);
|
|
|
if(res.status==200){
|
|
|
var isZK=loginDoctor.doctorType==1?true:false;
|
|
|
vm.serviceData=_.map(res.data||{},function(o){
|
|
@ -50,14 +50,14 @@
|
|
|
return o
|
|
|
})
|
|
|
}else{
|
|
|
top.layer.msg(res.msg,{icon:5});
|
|
|
layer.msg(res.msg,{icon:5});
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//健康教育
|
|
|
jkjy:function(patient,planId){
|
|
|
var vm=this
|
|
|
top.layer.open({
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
// offset: ['100px'], //右下角弹出
|
|
|
area: ['800px', '648px'],
|
|
@ -74,7 +74,7 @@
|
|
|
// 健康指导
|
|
|
jkzd:function(patient,planId){
|
|
|
var vm=this
|
|
|
top.layer.open({
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
// offset: ['100px'], //右下角弹出
|
|
|
area: ['800px', '648px'],
|
|
@ -85,15 +85,18 @@
|
|
|
closeBtn: 1,
|
|
|
shift: 5,
|
|
|
shadeClose: false, //点击遮罩关闭层
|
|
|
content:'../../guidance/html/index.html#/person-edit-panel?patient='+patient+'&planId='+planId
|
|
|
content:'../../guidance/html/index.html#/person-edit-panel?patient='+patient+'&planId='+planId,
|
|
|
end: function() { // 未点击确定按钮,点击关闭按钮
|
|
|
vm.getServiceItemList();
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
// 暂未开放
|
|
|
zwkf:function(){
|
|
|
top.layer.msg('此功能暂未开放',{icon:1});
|
|
|
layer.msg('此功能暂未开放',{icon:1});
|
|
|
},
|
|
|
goToFinish:function(planid){
|
|
|
top.layer.open({
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
// offset: ['100px'], //右下角弹出
|
|
|
area: ['600px', '650px'],
|
|
@ -104,7 +107,10 @@
|
|
|
closeBtn:1,
|
|
|
shift: 5,
|
|
|
shadeClose: false, //点击遮罩关闭层
|
|
|
content: '../../rehabilitation/html/guide_the_message.html?planid='+planid
|
|
|
content: '../../rehabilitation/html/guide_the_message.html?planid='+planid,
|
|
|
end: function() { // 未点击确定按钮,点击关闭按钮
|
|
|
vm.getServiceItemList();
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
fwm:function(planid,patient){
|
|
@ -117,7 +123,7 @@
|
|
|
var planDetailId=undefined;
|
|
|
|
|
|
if(data.specialistDoctorCode==data.executeDoctorCode){
|
|
|
top.layer.msg('无法与自己聊天',{icon:5});
|
|
|
layer.msg('无法与自己聊天',{icon:5});
|
|
|
return ;
|
|
|
}
|
|
|
if((data.isMyTask==1) && (loginDoctor.uid==data.specialistDoctorCode)){
|
|
@ -128,7 +134,7 @@
|
|
|
otherCode=data.specialistDoctorCode;
|
|
|
otherName=data.specialistDoctorName;
|
|
|
}
|
|
|
top.layer.open({
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
// offset: ['100px'], //右下角弹出
|
|
|
area: ['800px', '650px'],
|
|
@ -173,7 +179,7 @@
|
|
|
}
|
|
|
})
|
|
|
.fail(function() {
|
|
|
top.layer.msg('服务码创建失败',{icon:5});
|
|
|
layer.msg('服务码创建失败',{icon:5});
|
|
|
});
|
|
|
},
|
|
|
checkAfterQrCode:function(planid,patient){
|
|
@ -190,7 +196,7 @@
|
|
|
vm.goToFinish(planid);
|
|
|
}
|
|
|
}
|
|
|
top.layer.msg(res.msg,{icon:icon});
|
|
|
layer.msg(res.msg,{icon:icon});
|
|
|
})
|
|
|
},
|
|
|
getQRCode:function(planid){
|
|
@ -208,7 +214,7 @@
|
|
|
vm.qrModal=true;
|
|
|
},100)
|
|
|
}else{
|
|
|
top.layer.msg('服务码获取失败',{icon:5});
|
|
|
layer.msg('服务码获取失败',{icon:5});
|
|
|
}
|
|
|
})
|
|
|
|