@ -170,8 +170,10 @@
if(type==0){
_type=5
}
console.log(vm.planid)
if(type!=0) return ;//只有上传需要新增
if(type!=0){
vm.uploadImg(vm.upImgArr, vm.updateNoteAndImageRehabilitationOperate);
return ;//只有上传需要新增
var params={
rehabilitationDetailId:vm.planid,
node:null,
@ -169,7 +169,7 @@
socket.emit('login', {userId: userInfo.uid, password: userInfo.uid,sessionId:sessionId,clientType:"doctor"});
socket.on('message', function (data) {
console.log(data);
if(data.type==0){
if(data.type==1){
vm.checkAfterQrCode(planid,patient);
});
@ -198,9 +198,10 @@
rehaAPI.checkAfterQrCode(params).then(function(res){
var icon=5;
if(data.status==200){
if(data.data){
if(res.status==200){
if(res.data.flag){
icon=1;
vm.qrModal=false;
vm.goToFinish(planid);