|  |  | @ -67,7 +67,7 @@ | 
			
		
	
		
			
				
					|  |  |  |         </el-select> | 
			
		
	
		
			
				
					|  |  |  |       </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |       <el-form-item label="医疗项目:" label-width="120px" prop="zlProjectCode"> | 
			
		
	
		
			
				
					|  |  |  |         <el-select v-model="dataForm.zlProjectCode" placeholder="请选择医疗项目"> | 
			
		
	
		
			
				
					|  |  |  |         <el-select v-model="dataForm.zlProjectCode" multiple placeholder="请选择医疗项目"> | 
			
		
	
		
			
				
					|  |  |  |           <el-option | 
			
		
	
		
			
				
					|  |  |  |             v-for="item in projectList" | 
			
		
	
		
			
				
					|  |  |  |             :key="item.itemId" | 
			
		
	
	
		
			
				
					|  |  | @ -112,8 +112,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         patientBirthday: '', | 
			
		
	
		
			
				
					|  |  |  |         mzDoctorId: '', // 门诊医师 | 
			
		
	
		
			
				
					|  |  |  |         sgDoctorId: '', // 视光医师 | 
			
		
	
		
			
				
					|  |  |  |         zlEye: '', | 
			
		
	
		
			
				
					|  |  |  |         zlProjectCode: '', | 
			
		
	
		
			
				
					|  |  |  |         zlEye: 'ou', | 
			
		
	
		
			
				
					|  |  |  |         zlProjectCode: [], | 
			
		
	
		
			
				
					|  |  |  |         visitId: '', | 
			
		
	
		
			
				
					|  |  |  |         remark: '' | 
			
		
	
		
			
				
					|  |  |  |       }, | 
			
		
	
	
		
			
				
					|  |  | @ -123,7 +123,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         { name: '双眼', value: 'ou' } | 
			
		
	
		
			
				
					|  |  |  |       ], | 
			
		
	
		
			
				
					|  |  |  |       params: {}, | 
			
		
	
		
			
				
					|  |  |  |       visitList: [], | 
			
		
	
		
			
				
					|  |  |  |       doctorList: [], | 
			
		
	
		
			
				
					|  |  |  |       projectList: [] | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
	
		
			
				
					|  |  | @ -136,14 +135,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         callback() | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |       // var validataIDNumber = (rule, value, callback) => { | 
			
		
	
		
			
				
					|  |  |  |       //   if (value && !isIDNumber(value)) { | 
			
		
	
		
			
				
					|  |  |  |       //     return callback(new Error('您输入的身份证格式不正确')) | 
			
		
	
		
			
				
					|  |  |  |       //   } else if (!value) { | 
			
		
	
		
			
				
					|  |  |  |       //     return callback(new Error('请输入身份证号')) | 
			
		
	
		
			
				
					|  |  |  |       //   } | 
			
		
	
		
			
				
					|  |  |  |       //   callback() | 
			
		
	
		
			
				
					|  |  |  |       // } | 
			
		
	
		
			
				
					|  |  |  |       return { | 
			
		
	
		
			
				
					|  |  |  |         patientId: [ | 
			
		
	
		
			
				
					|  |  |  |           { required: true, message: '请输入登记号', trigger: 'blur' } | 
			
		
	
	
		
			
				
					|  |  | @ -167,7 +158,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       this.getProject() | 
			
		
	
		
			
				
					|  |  |  |       this.$nextTick(() => { | 
			
		
	
		
			
				
					|  |  |  |         this.$refs.dataForm.resetFields() // 重置表单 | 
			
		
	
		
			
				
					|  |  |  |         // this.getVisitList() // 获取随访列表 | 
			
		
	
		
			
				
					|  |  |  |         if (this.params.patientId && this.dataForm.title !== 'HIS引入') { | 
			
		
	
		
			
				
					|  |  |  |           this.dataForm = { | 
			
		
	
		
			
				
					|  |  |  |             title: this.dataForm.title, | 
			
		
	
	
		
			
				
					|  |  | @ -191,33 +181,11 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         this.projectList = data.data.data | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 获取信息 | 
			
		
	
		
			
				
					|  |  |  |     getInfo() { | 
			
		
	
		
			
				
					|  |  |  |       this.$http.get(`/patient/manage/${this.params.patientCentreId}/${this.params.patientIdNumber}`).then(({ data: res }) => { | 
			
		
	
		
			
				
					|  |  |  |         if (res.code !== 0) { | 
			
		
	
		
			
				
					|  |  |  |           return this.$message.error(res.msg) | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm = { | 
			
		
	
		
			
				
					|  |  |  |           ...this.dataForm, | 
			
		
	
		
			
				
					|  |  |  |           ...res.data | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       }).catch(() => {}) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 获取His信息 | 
			
		
	
		
			
				
					|  |  |  |     getHisInfo() { | 
			
		
	
		
			
				
					|  |  |  |       this.dataForm = { ...this.dataForm, ...this.params } | 
			
		
	
		
			
				
					|  |  |  |       this.dataForm.revisitCycles = this.dataForm.revisitCycles ? this.dataForm.revisitCycles : '1' | 
			
		
	
		
			
				
					|  |  |  |       this.dataForm.revisitCyclesUnit = this.dataForm.revisitCyclesUnit ? this.dataForm.revisitCyclesUnit : '3' | 
			
		
	
		
			
				
					|  |  |  |       console.log(this.dataForm) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 获取随访列表 | 
			
		
	
		
			
				
					|  |  |  |     async getVisitList() { | 
			
		
	
		
			
				
					|  |  |  |       const { data: res } = await this.$http.get('/visit/getList') | 
			
		
	
		
			
				
					|  |  |  |       if (res.code === 0) { | 
			
		
	
		
			
				
					|  |  |  |         this.visitList = res.data | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.$message.error(res.msg) | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 表单提交 | 
			
		
	
		
			
				
					|  |  |  |     dataFormSubmitHandle: debounce(function() { | 
			
		
	
	
		
			
				
					|  |  | @ -225,6 +193,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         if (!valid) { | 
			
		
	
		
			
				
					|  |  |  |           return false | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         this.dataForm.zlProjectCode = this.dataForm.zlProjectCode.join(',') | 
			
		
	
		
			
				
					|  |  |  |         this.$http[!this.dataForm.id ? 'post' : 'put']('/patient/savePatient', this.dataForm).then(({ data: res }) => { | 
			
		
	
		
			
				
					|  |  |  |           if (res.code !== 0) { | 
			
		
	
		
			
				
					|  |  |  |             return this.$message.error(res.msg) | 
			
		
	
	
		
			
				
					|  |  | 
 |