|  | @ -48,7 +48,7 @@
 | 
	
		
			
				|  |  | <body>
 | 
	
		
			
				|  |  |     <div id="app">
 | 
	
		
			
				|  |  |         <button class="button" @click="editBtn()">编辑</button>
 | 
	
		
			
				|  |  |         <button class="button" :class="{'finish':finishedBtn}" @click="finished()" :disabled="finishedBtn">完成随访</button>
 | 
	
		
			
				|  |  |         <button class="button" :class="{'finish':finishedBtn}" @click="finished()" :disabled="finishedBtn" v-if="showFinish">完成随访</button>
 | 
	
		
			
				|  |  |         <p class="c-f20 mb10" style="text-align: center;">肺结核患者随访服务记录表</p>
 | 
	
		
			
				|  |  |         <div class="ui-grid p10">
 | 
	
		
			
				|  |  |             <div class="ui-col-1">
 | 
	
	
		
			
				|  | @ -885,10 +885,10 @@
 | 
	
		
			
				|  |  |                     followupId: Request['id'],
 | 
	
		
			
				|  |  |                     finishedBtn:true,  //是否已经完成随访
 | 
	
		
			
				|  |  |                     sfStatus:'',  //当前的随访状态
 | 
	
		
			
				|  |  |                     showFinish:true,  //是否显示完成随访按钮
 | 
	
		
			
				|  |  |                     parient: {
 | 
	
		
			
				|  |  |                         "version": Request['version']||'1',
 | 
	
		
			
				|  |  |                         // "followup_id":  Request['id']||'1', //随访id
 | 
	
		
			
				|  |  |                         "followup_id":'1888107',
 | 
	
		
			
				|  |  |                         "followup_id":  Request['id']||'1', //随访id
 | 
	
		
			
				|  |  |                         "followup_project": '',//随访项目 
 | 
	
		
			
				|  |  |                         "number": '', //随访编号
 | 
	
		
			
				|  |  |                         "patient": {
 | 
	
	
		
			
				|  | @ -1137,12 +1137,29 @@
 | 
	
		
			
				|  |  |             methods: {
 | 
	
		
			
				|  |  |                 getData: function () {
 | 
	
		
			
				|  |  |                     var vm = this
 | 
	
		
			
				|  |  |                     // var vmP = this.postpartumVisitDetails  Request['id']||'1'
 | 
	
		
			
				|  |  |                     fangshiAPI.getPhthisis({ followupId: '1888107' }).then(function (res) {
 | 
	
		
			
				|  |  |                     // var vmP = this.postpartumVisitDetails  
 | 
	
		
			
				|  |  |                     fangshiAPI.getPhthisis({ followupId: Request['id']||'1' }).then(function (res) {
 | 
	
		
			
				|  |  |                         if (res.status == 200 && res.data[0]) {
 | 
	
		
			
				|  |  |                             console.log("获取肺结核信息")
 | 
	
		
			
				|  |  |                             console.log(res)
 | 
	
		
			
				|  |  |                             vm.parient = res.data[0]
 | 
	
		
			
				|  |  |                             console.log(vm.parient)
 | 
	
		
			
				|  |  |                             for(var i=0;i<4;i++){
 | 
	
		
			
				|  |  |                                 console.log(111)
 | 
	
		
			
				|  |  |                                 vm.parient.data[i].superviser.superviser_type = vm.parient.data[i].superviser.superviser_type.toString()
 | 
	
		
			
				|  |  |                                 vm.parient.data[i].way = vm.parient.data[i].way.toString()
 | 
	
		
			
				|  |  |                                 vm.parient.data[i].drug_use.method = vm.parient.data[i].drug_use.method.toString()
 | 
	
		
			
				|  |  |                                 vm.parient.data[i].drug_bad_reaction =  vm.parient.data[i].drug_bad_reaction.toString()
 | 
	
		
			
				|  |  |                                 vm.parient.data[i].complication = vm.parient.data[i].complication.toString()
 | 
	
		
			
				|  |  |                                 vm.parient.stop_treate.reason = vm.parient.stop_treate.reason.toString()
 | 
	
		
			
				|  |  |                                 vm.$forceUpdate()
 | 
	
		
			
				|  |  |                             }
 | 
	
		
			
				|  |  |                             // vm.parient.data = vm.parient.data.map(function(ele){
 | 
	
		
			
				|  |  |                             //     var item = ele
 | 
	
		
			
				|  |  |                             //     item.superviser.superviser_type = superviser.superviser_type.toString()
 | 
	
		
			
				|  |  |                             //     console.log(item.superviser.superviser_type)
 | 
	
		
			
				|  |  |                             //     return item
 | 
	
		
			
				|  |  |                             // })
 | 
	
		
			
				|  |  |                             //转换用药数据
 | 
	
		
			
				|  |  |                             vm.yongyao1 = vm.parient.data[0].drug_use.dosage_form?vm.parient.data[0].drug_use.dosage_form.split(','):[]
 | 
	
		
			
				|  |  |                             vm.yongyao2 = vm.parient.data[1].drug_use.dosage_form?vm.parient.data[1].drug_use.dosage_form.split(','):[]
 | 
	
	
		
			
				|  | @ -1217,13 +1234,13 @@
 | 
	
		
			
				|  |  |                 //获取当前随访状态信息  Request['id']||'1'
 | 
	
		
			
				|  |  |                 getStatus:function(){
 | 
	
		
			
				|  |  |                     var vm = this
 | 
	
		
			
				|  |  |                     fangshiAPI.getFollowupInfo({ followupId: '1888107'}).then(function (res) {
 | 
	
		
			
				|  |  |                     fangshiAPI.getFollowupInfo({ followupId: Request['id']||'1'}).then(function (res) {
 | 
	
		
			
				|  |  |                             if (res.status == 200) {
 | 
	
		
			
				|  |  |                                 console.log(res)
 | 
	
		
			
				|  |  |                                 vm.sfStatus = res.data.status
 | 
	
		
			
				|  |  |                                 // if(res.data.status == 1){
 | 
	
		
			
				|  |  |                                 //     vm.finishedBtn = true
 | 
	
		
			
				|  |  |                                 // }
 | 
	
		
			
				|  |  |                                 if(res.data.status == 1){
 | 
	
		
			
				|  |  |                                     vm.showFinish = false
 | 
	
		
			
				|  |  |                                 }
 | 
	
		
			
				|  |  |                             } else {
 | 
	
		
			
				|  |  |                                 top.toastr.error(res.msg);
 | 
	
		
			
				|  |  |                             }
 | 
	
	
		
			
				|  | @ -1232,7 +1249,7 @@
 | 
	
		
			
				|  |  |                 //点击完成随访时  Request['id']||'1'
 | 
	
		
			
				|  |  |                 finished:function(){
 | 
	
		
			
				|  |  |                     var vm = this
 | 
	
		
			
				|  |  |                     fangshiAPI.updateFollowStatus({followupId:'1888107'}).then(function(res){
 | 
	
		
			
				|  |  |                     fangshiAPI.updateFollowStatus({followupId:Request['id']||'1'}).then(function(res){
 | 
	
		
			
				|  |  |                         if (res.status == 200) {
 | 
	
		
			
				|  |  |                             console.log(res)
 | 
	
		
			
				|  |  |                             vm.finishedBtn = true
 |