|  | @ -52,13 +52,32 @@ Vue.component('follow-record', {
 | 
												
													
														
															|  |         { label: '所属机构', prop: 'hospitalName', width: '130' },
 |  |         { label: '所属机构', prop: 'hospitalName', width: '130' },
 | 
												
													
														
															|  |         { label: '随访医生', prop: 'doctorName', width: '90' },
 |  |         { label: '随访医生', prop: 'doctorName', width: '90' },
 | 
												
													
														
															|  |         { label: '计划随访时间', prop: 'followupPlanDate', width: '140' },
 |  |         { label: '计划随访时间', prop: 'followupPlanDate', width: '140' },
 | 
												
													
														
															|  |         { label: '实际随访时间', prop: 'followupDate', width: '140' },
 |  | 
 | 
												
													
														
															|  | 
 |  |         { label: '实际随访时间', prop: 'followupDate', width: '140' }
 | 
												
													
														
															|  |       ],
 |  |       ],
 | 
												
													
														
															|  |       page: 1,
 |  |       page: 1,
 | 
												
													
														
															|  |       size: 10,
 |  |       size: 10,
 | 
												
													
														
															|  |       total: 0,
 |  |       total: 0,
 | 
												
													
														
															|  |       level: 0,
 |  |       level: 0,
 | 
												
													
														
															|  |       visible: false
 |  | 
 | 
												
													
														
															|  | 
 |  |       visible: false,
 | 
												
													
														
															|  | 
 |  |       record: {},
 | 
												
													
														
															|  | 
 |  |       selectTak: [],
 | 
												
													
														
															|  | 
 |  |       takingListChecked: [],
 | 
												
													
														
															|  | 
 |  |       takingList: [],
 | 
												
													
														
															|  | 
 |  |       selectAdverse: [],
 | 
												
													
														
															|  | 
 |  |       adverseEventArr: [],
 | 
												
													
														
															|  | 
 |  |       badEventList1: [
 | 
												
													
														
															|  | 
 |  |         { name: '无不良事件', checkBox: false, key: 'badEventNo' },
 | 
												
													
														
															|  | 
 |  |         { name: '心源性原因再次入院', checkBox: false, key: 'badEventCardiac' },
 | 
												
													
														
															|  | 
 |  |         { name: '再发心梗', checkBox: false, key: 'badEventMyocardial' },
 | 
												
													
														
															|  | 
 |  |         { name: '脑卒中', checkBox: false, key: 'badEventStroke' },
 | 
												
													
														
															|  | 
 |  |         { name: '严重出血', checkBox: false, key: 'badEventBleeding' },
 | 
												
													
														
															|  | 
 |  |         { name: '外周血管栓塞', checkBox: false, key: 'badEventVascular' },
 | 
												
													
														
															|  | 
 |  |         { name: '恶性心律失常(室速/室颤)', checkBox: false, key: 'badEventMalignant' },
 | 
												
													
														
															|  | 
 |  |         { name: '左室附壁血栓', checkBox: false, key: 'badEventBlood' },
 | 
												
													
														
															|  | 
 |  |         { name: '死亡', checkBox: false, key: 'badEventBusy' },
 | 
												
													
														
															|  | 
 |  |         { name: '其他', checkBox: false, key: 'badEventOther' }
 | 
												
													
														
															|  | 
 |  |       ],
 | 
												
													
														
															|  | 
 |  |       info: {}
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  |   },
 |  |   },
 | 
												
													
														
															|  |   methods: {
 |  |   methods: {
 | 
												
											
												
													
														
															|  | @ -208,6 +227,18 @@ Vue.component('follow-record', {
 | 
												
													
														
															|  |         vm.teamOptions = res.data
 |  |         vm.teamOptions = res.data
 | 
												
													
														
															|  |       })
 |  |       })
 | 
												
													
														
															|  |     },
 |  |     },
 | 
												
													
														
															|  | 
 |  |     getDictByDictName: function () {
 | 
												
													
														
															|  | 
 |  |       var vm = this
 | 
												
													
														
															|  | 
 |  |       httpRequest.get('/common/getDictByDictName', { data: { name: 'CurrentlyTakingMedication' } }).then(function (res) {
 | 
												
													
														
															|  | 
 |  |         if (res.status == 200) {
 | 
												
													
														
															|  | 
 |  |           var data = res.list
 | 
												
													
														
															|  | 
 |  |           data.forEach(function (v) {
 | 
												
													
														
															|  | 
 |  |             v.checkBox = false
 | 
												
													
														
															|  | 
 |  |           })
 | 
												
													
														
															|  | 
 |  |           vm.takingList = data
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |       })
 | 
												
													
														
															|  | 
 |  |     },
 | 
												
													
														
															|  |     handleCurrentChange(val) {
 |  |     handleCurrentChange(val) {
 | 
												
													
														
															|  |       this.page = val
 |  |       this.page = val
 | 
												
													
														
															|  |       this.getList()
 |  |       this.getList()
 | 
												
											
												
													
														
															|  | @ -217,8 +248,52 @@ Vue.component('follow-record', {
 | 
												
													
														
															|  |       this.getList()
 |  |       this.getList()
 | 
												
													
														
															|  |     },
 |  |     },
 | 
												
													
														
															|  |     openDialog(scope) {
 |  |     openDialog(scope) {
 | 
												
													
														
															|  | 
 |  |       var vm = this
 | 
												
													
														
															|  |       this.visible = true
 |  |       this.visible = true
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |       this.info = {
 | 
												
													
														
															|  | 
 |  |         sex: scope.row.sex,
 | 
												
													
														
															|  | 
 |  |         name: scope.row.name,
 | 
												
													
														
															|  | 
 |  |         age: scope.row.age,
 | 
												
													
														
															|  | 
 |  |         doctorName: scope.row.doctorName
 | 
												
													
														
															|  | 
 |  |       }
 | 
												
													
														
															|  | 
 |  |       httpRequest.get('doctor/visitDetail/selectFollowupDiseaseById', { data: { type: 'XiaXinCoronaryHear', followupId: scope.row.id } }).then(function (res) {
 | 
												
													
														
															|  | 
 |  |         if (res.status == 200) {
 | 
												
													
														
															|  | 
 |  |           var data = res.data
 | 
												
													
														
															|  | 
 |  |           console.log(data, 'Data')
 | 
												
													
														
															|  | 
 |  |           // vm.record = data.followup
 | 
												
													
														
															|  | 
 |  |           if (data.content) {
 | 
												
													
														
															|  | 
 |  |             vm.record = data.content
 | 
												
													
														
															|  | 
 |  |             vm.$set(vm, 'takingListChecked', data.content && data.content.takeMedicine.split(','))
 | 
												
													
														
															|  | 
 |  |             vm.$set(vm, 'adverseEventArr', data.content && data.content.adverseEvent.split(','))
 | 
												
													
														
															|  | 
 |  |             vm.flag = '2'
 | 
												
													
														
															|  | 
 |  |             vm.selectTak = vm.takingListChecked.map(function (index) {
 | 
												
													
														
															|  | 
 |  |               vm.takingList[index].index = index
 | 
												
													
														
															|  | 
 |  |               return vm.takingList[index]
 | 
												
													
														
															|  | 
 |  |             })
 | 
												
													
														
															|  | 
 |  |             vm.selectAdverse = vm.adverseEventArr.map(function (index) {
 | 
												
													
														
															|  | 
 |  |               vm.badEventList1[index].index = index
 | 
												
													
														
															|  | 
 |  |               return vm.badEventList1[index]
 | 
												
													
														
															|  | 
 |  |             })
 | 
												
													
														
															|  | 
 |  |           }
 | 
												
													
														
															|  | 
 |  |           return
 | 
												
													
														
															|  | 
 |  |           vm.followData = res.data
 | 
												
													
														
															|  | 
 |  |           vm.form.sex = data.sex
 | 
												
													
														
															|  | 
 |  |           vm.followup = {
 | 
												
													
														
															|  | 
 |  |             followup_id: code,
 | 
												
													
														
															|  | 
 |  |             // status: data.status,
 | 
												
													
														
															|  | 
 |  |             // patientName: vm.serviceInfo.patientName,
 | 
												
													
														
															|  | 
 |  |             followupNextDate: data.followupNextDate,
 | 
												
													
														
															|  | 
 |  |             followupType: data.followupType,
 | 
												
													
														
															|  | 
 |  |             followupClass: data.followupClass,
 | 
												
													
														
															|  | 
 |  |             jwDoctorWorkType: data.jwDoctorWorkType,
 | 
												
													
														
															|  | 
 |  |             followupDate: data.followupDate,
 | 
												
													
														
															|  | 
 |  |             doctorName: data.doctorName,
 | 
												
													
														
															|  | 
 |  |             orgName: data.orgName
 | 
												
													
														
															|  | 
 |  |             // type: vm.serviceInfo.type
 | 
												
													
														
															|  | 
 |  |           }
 | 
												
													
														
															|  | 
 |  |           console.log(vm.followup, '我是vm.followup')
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |       })
 | 
												
													
														
															|  |     },
 |  |     },
 | 
												
													
														
															|  |     closeDialog() {
 |  |     closeDialog() {
 | 
												
													
														
															|  |       this.visible = false
 |  |       this.visible = false
 | 
												
											
												
													
														
															|  | @ -226,5 +301,6 @@ Vue.component('follow-record', {
 | 
												
													
														
															|  |   },
 |  |   },
 | 
												
													
														
															|  |   mounted() {
 |  |   mounted() {
 | 
												
													
														
															|  |     this.init()
 |  |     this.init()
 | 
												
													
														
															|  | 
 |  |     this.getDictByDictName()
 | 
												
													
														
															|  |   }
 |  |   }
 | 
												
													
														
															|  | })
 |  | })
 |