|  |  | @ -3,7 +3,6 @@ | 
			
		
	
		
			
				
					|  |  |  |     <div v-if="!onlyRead" class="btnBox"> | 
			
		
	
		
			
				
					|  |  |  |       <el-button v-print="printAll" size="small" @click="handleSaveTable">打印</el-button> | 
			
		
	
		
			
				
					|  |  |  |       <el-button type="primary" size="small" @click="handleSaveTable">保存</el-button> | 
			
		
	
		
			
				
					|  |  |  |       <!--      <el-button type="danger" size="small" @click="formDelete">删除</el-button>--> | 
			
		
	
		
			
				
					|  |  |  |       <el-button v-if="comonFormActive === '2' || comonFormActive === '3'" type="primary" size="small" @click="handleTemplate">保存为模板</el-button> | 
			
		
	
		
			
				
					|  |  |  |       <div v-if="comonFormActive === '2' || comonFormActive === '3'" size="small" style="display:inline-block;margin-left:10px;text-align:center;width: 32px;height: 32px;background-color: #1e79ff;border-radius: 4px;vertical-align: bottom" @click="addData"> | 
			
		
	
		
			
				
					|  |  |  |         <img :src="require('@/assets/img/data.png')" alt="" style="width: 17px;height: 16px;margin-top: 5px"> | 
			
		
	
	
		
			
				
					|  |  | @ -14,13 +13,13 @@ | 
			
		
	
		
			
				
					|  |  |  |         <history-form ref="history" :form-data="formData" /> | 
			
		
	
		
			
				
					|  |  |  |       </el-tab-pane> | 
			
		
	
		
			
				
					|  |  |  |       <el-tab-pane label="前段检查" name="2" style="height: 100%"> | 
			
		
	
		
			
				
					|  |  |  |         <forePart ref="foreParts" :patient-id="patientId" :is-search="isSearch" :only-read="onlyRead" :case-id="caseId" /> | 
			
		
	
		
			
				
					|  |  |  |         <forePart ref="foreParts" :patient-id="patientId" :is-search="isSearch" :only-read="onlyRead" :case-id="caseId"/> | 
			
		
	
		
			
				
					|  |  |  |       </el-tab-pane> | 
			
		
	
		
			
				
					|  |  |  |       <el-tab-pane label="后段检查" name="3" style="height: 100%"> | 
			
		
	
		
			
				
					|  |  |  |         <afterPart ref="afterParts" :patient-id="patientId" :is-search="isSearch" :only-read="onlyRead" :case-id="caseId" /> | 
			
		
	
		
			
				
					|  |  |  |         <afterPart ref="afterParts" :patient-id="patientId" :is-search="isSearch" :only-read="onlyRead" :case-id="caseId"/> | 
			
		
	
		
			
				
					|  |  |  |       </el-tab-pane> | 
			
		
	
		
			
				
					|  |  |  |       <el-tab-pane label="专科检查" name="4" style="height: 100%"> | 
			
		
	
		
			
				
					|  |  |  |         <specialExamine ref="examines" :patient-id="patientId" :is-search="isSearch" :case-id="caseId" /> | 
			
		
	
		
			
				
					|  |  |  |         <specialExamine ref="examines" :patient-id="patientId" :is-search="isSearch" :case-id="caseId"/> | 
			
		
	
		
			
				
					|  |  |  |       </el-tab-pane> | 
			
		
	
		
			
				
					|  |  |  |       <el-tab-pane label="诊断处置" name="5"> | 
			
		
	
		
			
				
					|  |  |  |         <diagnosis-form ref="diagnosis" :diagnosis="diagnosis" /> | 
			
		
	
	
		
			
				
					|  |  | @ -171,29 +170,29 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |     async getDiagnosis() { | 
			
		
	
		
			
				
					|  |  |  |       const { data: res } = await this.$http.get('/mjz/getMjzZdczInfo', { | 
			
		
	
		
			
				
					|  |  |  |         params: { | 
			
		
	
		
			
				
					|  |  |  |         caseId: this.caseId, | 
			
		
	
		
			
				
					|  |  |  |           caseId: this.caseId, | 
			
		
	
		
			
				
					|  |  |  |           patientId: this.patientId | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |       if (res.code === 0) { | 
			
		
	
		
			
				
					|  |  |  |         this.diagnosis = res.data | 
			
		
	
		
			
				
					|  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.$message.error(res.msg) | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     // 保存表单数据 | 
			
		
	
		
			
				
					|  |  |  |     async saveHistory() { | 
			
		
	
		
			
				
					|  |  |  |       const { data: res } = await this.$http.post('/mjz/saveMjzBscj', this.formData) | 
			
		
	
		
			
				
					|  |  |  |       if (res.code === 0) { | 
			
		
	
		
			
				
					|  |  |  |         this.getMedicalHistory() | 
			
		
	
		
			
				
					|  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |         await this.getMedicalHistory() | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.$message.error(res.msg) | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     async saveDiagnosis() { | 
			
		
	
		
			
				
					|  |  |  |       const { data: res } = await this.$http.post('/mjz/saveMjzZdcz', this.diagnosis) | 
			
		
	
		
			
				
					|  |  |  |       if (res.code === 0) { | 
			
		
	
		
			
				
					|  |  |  |         this.getDiagnosis() | 
			
		
	
		
			
				
					|  |  |  |         await this.getDiagnosis() | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         this.$message.error(res.msg) | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
	
		
			
				
					|  |  | 
 |