| 
					
				 | 
			
			
				@ -33,12 +33,22 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        .dudaorenyuan el-radio { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            width: 50%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        .button{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            margin-right: 0px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        .button:nth-child(2){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            background:#FFC66F; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        .finish{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            background:#e1e1e1 !important; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    </style> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				</head> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				<body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    <div id="app"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        <button class="button" @click="editBtn()">编辑</button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        <button class="button" :class="{'finish':finishedBtn}" @click="finished()" :disabled="finishedBtn">完成随访</button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        <p class="c-f20 mb10" style="text-align: center;">肺结核患者随访服务记录表</p> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        <div class="ui-grid p10"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            <div class="ui-col-1"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -873,9 +883,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    yongyao3: [],  //用药 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    yongyao4: [],  //用药 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    followupId: Request['id'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    finishedBtn:true,  //是否已经完成随访 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    sfStatus:'',  //当前的随访状态 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    parient: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        "version": Request['version']||'1', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        "followup_id":  Request['id']||'1', //随访id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        // "followup_id":  Request['id']||'1', //随访id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        "followup_id":'1888107', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        "followup_project": '',//随访项目  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        "number": '', //随访编号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        "patient": { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1105,6 +1118,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                console.log(docInfo.code) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                console.log(docInfo.name) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                this.getData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                //获取随访详情 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                this.getStatus() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            computed:{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                percent(){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1121,8 +1137,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                getData: function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    var vm = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    // var vmP = this.postpartumVisitDetails 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    fangshiAPI.getPhthisis({ followupId: Request['id']||'1' }).then(function (res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    // var vmP = this.postpartumVisitDetails  Request['id']||'1' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    fangshiAPI.getPhthisis({ followupId: '1888107' }).then(function (res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        if (res.status == 200 && res.data[0]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            console.log("获取肺结核信息") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            console.log(res) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1169,6 +1185,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    fangshiAPI.savePhthisis({ jsonData: JSON.stringify(vm.parient) }).then(function (res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            console.log(res) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            //判断是否完成随访,未完成则将完成按钮显示出来 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            if(vm.sfStatus != 1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                vm.finishedBtn = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                vm.finishedBtn = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            vm.getStatus() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            top.toastr.info("保存成功") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            top.toastr.error(res.msg); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1189,8 +1212,38 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        btn.innerHTML = '保存' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        this.editable = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                //获取当前随访状态信息  Request['id']||'1' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                getStatus:function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    var vm = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    fangshiAPI.getFollowupInfo({ followupId: '1888107'}).then(function (res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                console.log(res) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                vm.sfStatus = res.data.status 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                // if(res.data.status == 1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                //     vm.finishedBtn = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                top.toastr.error(res.msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                //点击完成随访时  Request['id']||'1' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                finished:function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    var vm = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    fangshiAPI.updateFollowStatus({followupId:'1888107'}).then(function(res){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            console.log(res) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            vm.finishedBtn = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            vm.getStatus() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            top.toastr.info("完成随访") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            top.toastr.error(res.msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    </script> 
			 |