|  | @ -129,7 +129,10 @@ | 
		
	
		
			
				|  |  |               align="center" |  |  |               align="center" | 
		
	
		
			
				|  |  |             > |  |  |             > | 
		
	
		
			
				|  |  |               <template slot-scope="scope"> |  |  |               <template slot-scope="scope"> | 
		
	
		
			
				|  |  |                 <el-select v-model="scope.row.otherOd" placeholder="" clearable filterable allow-create style="flex: 1"> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |                 <el-select v-if="scope.row.brand1 === '右眼'" v-model="firstForm.brandOd1" placeholder="" clearable filterable allow-create style="flex: 1"> | 
		
	
		
			
				|  |  |  |  |  |                   <el-option v-for="item in brandList" :key="item.label" :value="item.value" :label="item.label" /> | 
		
	
		
			
				|  |  |  |  |  |                 </el-select> | 
		
	
		
			
				|  |  |  |  |  |                 <el-select v-if="scope.row.brand1 === '左眼'" v-model="firstForm.brandOs1" placeholder="" clearable filterable allow-create style="flex: 1"> | 
		
	
		
			
				|  |  |                   <el-option v-for="item in brandList" :key="item.label" :value="item.value" :label="item.label" /> |  |  |                   <el-option v-for="item in brandList" :key="item.label" :value="item.value" :label="item.label" /> | 
		
	
		
			
				|  |  |                 </el-select> |  |  |                 </el-select> | 
		
	
		
			
				|  |  |               </template> |  |  |               </template> | 
		
	
	
		
			
				|  | @ -138,8 +141,8 @@ | 
		
	
		
			
				|  |  |               align="center" |  |  |               align="center" | 
		
	
		
			
				|  |  |             > |  |  |             > | 
		
	
		
			
				|  |  |               <template slot-scope="scope"> |  |  |               <template slot-scope="scope"> | 
		
	
		
			
				|  |  |                 <el-input v-if="scope.row.iol === '右眼'" v-model="firstForm.iolOd" placeholder="" /> |  |  |  | 
		
	
		
			
				|  |  |                 <el-input v-if="scope.row.iol === '左眼'" v-model="firstForm.iolOs" placeholder="" /> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |                 <el-input v-if="scope.row.brand2 === '右眼'" v-model="firstForm.brandOd2" placeholder="" /> | 
		
	
		
			
				|  |  |  |  |  |                 <el-input v-if="scope.row.brand2 === '左眼'" v-model="firstForm.brandOs2" placeholder="" /> | 
		
	
		
			
				|  |  |               </template> |  |  |               </template> | 
		
	
		
			
				|  |  |             </el-table-column> |  |  |             </el-table-column> | 
		
	
		
			
				|  |  |           </el-table> |  |  |           </el-table> | 
		
	
	
		
			
				|  | @ -222,8 +225,8 @@ export default { | 
		
	
		
			
				|  |  |           ds: '左眼', |  |  |           ds: '左眼', | 
		
	
		
			
				|  |  |           dc: '左眼', |  |  |           dc: '左眼', | 
		
	
		
			
				|  |  |           iol: '左眼', |  |  |           iol: '左眼', | 
		
	
		
			
				|  |  |           brand1: '右眼', |  |  |  | 
		
	
		
			
				|  |  |           brand2: '右眼', |  |  |  | 
		
	
		
			
				|  |  |  |  |  |           brand1: '左眼', | 
		
	
		
			
				|  |  |  |  |  |           brand2: '左眼', | 
		
	
		
			
				|  |  |           pd: '左眼', |  |  |           pd: '左眼', | 
		
	
		
			
				|  |  |           ph: '左眼', |  |  |           ph: '左眼', | 
		
	
		
			
				|  |  |           va: '左眼', |  |  |           va: '左眼', | 
		
	
	
		
			
				|  | @ -260,7 +263,11 @@ export default { | 
		
	
		
			
				|  |  |         vaOd: '', |  |  |         vaOd: '', | 
		
	
		
			
				|  |  |         vaOs: '', |  |  |         vaOs: '', | 
		
	
		
			
				|  |  |         aod: '', |  |  |         aod: '', | 
		
	
		
			
				|  |  |         aos: '' |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         aos: '', | 
		
	
		
			
				|  |  |  |  |  |         brandOd1: '', | 
		
	
		
			
				|  |  |  |  |  |         brandOs1: '', | 
		
	
		
			
				|  |  |  |  |  |         brandOd2: '', | 
		
	
		
			
				|  |  |  |  |  |         brandOs2: '' | 
		
	
		
			
				|  |  |       }, |  |  |       }, | 
		
	
		
			
				|  |  |       patientInfoObj: {}, |  |  |       patientInfoObj: {}, | 
		
	
		
			
				|  |  |       activeName: '1' |  |  |       activeName: '1' | 
		
	
	
		
			
				|  | @ -269,6 +276,7 @@ export default { | 
		
	
		
			
				|  |  |   mounted() { |  |  |   mounted() { | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   created() { |  |  |   created() { | 
		
	
		
			
				|  |  |  |  |  |     console.log(this.patientId) | 
		
	
		
			
				|  |  |     this.getFirstForm() |  |  |     this.getFirstForm() | 
		
	
		
			
				|  |  |     this.getPatientInfo() |  |  |     this.getPatientInfo() | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
	
		
			
				|  | @ -329,7 +337,12 @@ export default { | 
		
	
		
			
				|  |  |       }).catch(() => {}) |  |  |       }).catch(() => {}) | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     saveFirstForm() { |  |  |     saveFirstForm() { | 
		
	
		
			
				|  |  |       this.$http.post('/defocused/saveOrUpdateFirstDefocused', this.firstForm).then(({ data: res }) => { |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       const params = { | 
		
	
		
			
				|  |  |  |  |  |         ...this.firstForm | 
		
	
		
			
				|  |  |  |  |  |       } | 
		
	
		
			
				|  |  |  |  |  |       params.patientId = this.patientId | 
		
	
		
			
				|  |  |  |  |  |       // console.log(params) | 
		
	
		
			
				|  |  |  |  |  |       this.$http.post('/defocused/saveOrUpdateFirstDefocused', params).then(({ data: res }) => { | 
		
	
		
			
				|  |  |         if (res.code !== 0) { |  |  |         if (res.code !== 0) { | 
		
	
		
			
				|  |  |           return this.$message.error(res.msg) |  |  |           return this.$message.error(res.msg) | 
		
	
		
			
				|  |  |         } |  |  |         } | 
		
	
	
		
			
				|  | 
 |