|  | @ -11,7 +11,7 @@ | 
		
	
		
			
				|  |  |           <img v-if="!formList.length" src="@/assets/img/nodata.png" alt="" class="nodata"> |  |  |           <img v-if="!formList.length" src="@/assets/img/nodata.png" alt="" class="nodata"> | 
		
	
		
			
				|  |  |           <!-- <div class="button"><i class="el-icon-plus" /> 新建表单</div> --> |  |  |           <!-- <div class="button"><i class="el-icon-plus" /> 新建表单</div> --> | 
		
	
		
			
				|  |  |         </div> |  |  |         </div> | 
		
	
		
			
				|  |  |         <div class="content-left-bottom" v-if="isSearch === '3'"> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         <div v-if="isSearch === '3'" class="content-left-bottom"> | 
		
	
		
			
				|  |  |           <div class="commonForm-text"> |  |  |           <div class="commonForm-text"> | 
		
	
		
			
				|  |  |             <span>常用表单</span> |  |  |             <span>常用表单</span> | 
		
	
		
			
				|  |  |             <span class="line" /> |  |  |             <span class="line" /> | 
		
	
	
		
			
				|  | @ -51,22 +51,41 @@ | 
		
	
		
			
				|  |  |           v-if="name === '双眼视功能检查报告单'" |  |  |           v-if="name === '双眼视功能检查报告单'" | 
		
	
		
			
				|  |  |           ref="eyesVis" |  |  |           ref="eyesVis" | 
		
	
		
			
				|  |  |           :case-id="id" |  |  |           :case-id="id" | 
		
	
		
			
				|  |  |           :only-read="onlyRead" |  |  |  | 
		
	
		
			
				|  |  |  |  |  |           :only-read="onlyRead || !isCreator" | 
		
	
		
			
				|  |  |           :is-platform="isPlatform" |  |  |           :is-platform="isPlatform" | 
		
	
		
			
				|  |  |           :patient-id="patientId" |  |  |           :patient-id="patientId" | 
		
	
		
			
				|  |  |           @del="deleteForm" |  |  |           @del="deleteForm" | 
		
	
		
			
				|  |  |         /> |  |  |         /> | 
		
	
		
			
				|  |  |         <optometryForm v-if="name === '验光报告单'" ref="optome" :case-id="id" :is-platform="isPlatform" :only-read="onlyRead" :patient-id="patientId" :is-search="isSearch" @del="deleteForm" /> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         <optometryForm | 
		
	
		
			
				|  |  |  |  |  |           v-if="name === '验光报告单'" | 
		
	
		
			
				|  |  |  |  |  |           ref="optome" | 
		
	
		
			
				|  |  |  |  |  |           :case-id="id" | 
		
	
		
			
				|  |  |  |  |  |           :is-platform="isPlatform" | 
		
	
		
			
				|  |  |  |  |  |           :only-read="onlyRead || !isCreator" | 
		
	
		
			
				|  |  |  |  |  |           :patient-id="patientId" | 
		
	
		
			
				|  |  |  |  |  |           :is-search="isSearch" | 
		
	
		
			
				|  |  |  |  |  |           @del="deleteForm" | 
		
	
		
			
				|  |  |  |  |  |         /> | 
		
	
		
			
				|  |  |         <threeVision |  |  |         <threeVision | 
		
	
		
			
				|  |  |           v-if="name === '三级视功能检查报告单'" |  |  |           v-if="name === '三级视功能检查报告单'" | 
		
	
		
			
				|  |  |           ref="threeVis" |  |  |           ref="threeVis" | 
		
	
		
			
				|  |  |           :only-read="onlyRead" |  |  |  | 
		
	
		
			
				|  |  |  |  |  |           :only-read="onlyRead || !isCreator" | 
		
	
		
			
				|  |  |  |  |  |           :is-platform="isPlatform" | 
		
	
		
			
				|  |  |  |  |  |           :case-id="id" | 
		
	
		
			
				|  |  |  |  |  |           :patient-id="patientId" | 
		
	
		
			
				|  |  |  |  |  |           @del="deleteForm" | 
		
	
		
			
				|  |  |  |  |  |         /> | 
		
	
		
			
				|  |  |  |  |  |         <deveopmentFile | 
		
	
		
			
				|  |  |  |  |  |           v-if="name === '屈光发育档案'" | 
		
	
		
			
				|  |  |  |  |  |           ref="deveope" | 
		
	
		
			
				|  |  |           :is-platform="isPlatform" |  |  |           :is-platform="isPlatform" | 
		
	
		
			
				|  |  |           :case-id="id" |  |  |           :case-id="id" | 
		
	
		
			
				|  |  |  |  |  |           :only-read="onlyRead || !isCreator" | 
		
	
		
			
				|  |  |           :patient-id="patientId" |  |  |           :patient-id="patientId" | 
		
	
		
			
				|  |  |  |  |  |           :is-search="isSearch" | 
		
	
		
			
				|  |  |  |  |  |           :form-content="deveopData" | 
		
	
		
			
				|  |  |           @del="deleteForm" |  |  |           @del="deleteForm" | 
		
	
		
			
				|  |  |         /> |  |  |         /> | 
		
	
		
			
				|  |  |         <deveopmentFile v-if="name === '屈光发育档案'" ref="deveope" :is-platform="isPlatform" :case-id="id" :only-read="onlyRead" :patient-id="patientId" :is-search="isSearch" :form-content="deveopData" @del="deleteForm" /> |  |  |  | 
		
	
		
			
				|  |  |       </div> |  |  |       </div> | 
		
	
		
			
				|  |  |     </div> |  |  |     </div> | 
		
	
		
			
				|  |  |   </div> |  |  |   </div> | 
		
	
	
		
			
				|  | @ -109,6 +128,7 @@ export default { | 
		
	
		
			
				|  |  |     return { |  |  |     return { | 
		
	
		
			
				|  |  |       id: '', |  |  |       id: '', | 
		
	
		
			
				|  |  |       name: '', |  |  |       name: '', | 
		
	
		
			
				|  |  |  |  |  |       isCreator: true, | 
		
	
		
			
				|  |  |       isPlatform: true, |  |  |       isPlatform: true, | 
		
	
		
			
				|  |  |       defaultChecked: [], |  |  |       defaultChecked: [], | 
		
	
		
			
				|  |  |       curIndex: 0, |  |  |       curIndex: 0, | 
		
	
	
		
			
				|  | @ -125,6 +145,8 @@ export default { | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   methods: { |  |  |   methods: { | 
		
	
		
			
				|  |  |     handleForm(index, item) { |  |  |     handleForm(index, item) { | 
		
	
		
			
				|  |  |  |  |  |       const user = JSON.parse(window.sessionStorage.getItem('qg-userData')) | 
		
	
		
			
				|  |  |  |  |  |       this.isCreator = item.doctorCode === user.employeeId | 
		
	
		
			
				|  |  |       // 点击自身不保存 |  |  |       // 点击自身不保存 | 
		
	
		
			
				|  |  |       if (this.curIndex === index) { |  |  |       if (this.curIndex === index) { | 
		
	
		
			
				|  |  |         return |  |  |         return | 
		
	
	
		
			
				|  | @ -216,8 +238,9 @@ export default { | 
		
	
		
			
				|  |  |           this.curIndex = 0 |  |  |           this.curIndex = 0 | 
		
	
		
			
				|  |  |           this.id = this.formList[0].id |  |  |           this.id = this.formList[0].id | 
		
	
		
			
				|  |  |           this.name = this.formList[0].name |  |  |           this.name = this.formList[0].name | 
		
	
		
			
				|  |  |  |  |  |           const item = this.formList[0] | 
		
	
		
			
				|  |  |           this.isPlatform = this.isSearch === this.formList[0].platform |  |  |           this.isPlatform = this.isSearch === this.formList[0].platform | 
		
	
		
			
				|  |  |           this.handleForm(this.curIndex, { name: this.name, id: this.id }) |  |  |  | 
		
	
		
			
				|  |  |  |  |  |           this.handleForm(this.curIndex, item) | 
		
	
		
			
				|  |  |         } else { |  |  |         } else { | 
		
	
		
			
				|  |  |           this.id = '' |  |  |           this.id = '' | 
		
	
		
			
				|  |  |           this.name = '' |  |  |           this.name = '' | 
		
	
	
		
			
				|  | 
 |