|  | @ -19,7 +19,14 @@ | 
		
	
		
			
				|  |  |         <div class="flex a-c item">年龄:<el-input v-model="confirmData.patientAge" style="flex: 1" placeholder="" />岁</div> |  |  |         <div class="flex a-c item">年龄:<el-input v-model="confirmData.patientAge" style="flex: 1" placeholder="" />岁</div> | 
		
	
		
			
				|  |  |         <div class="flex a-c item">性别:<el-input v-model="confirmData.patientGender" style="flex: 1" placeholder="" /></div> |  |  |         <div class="flex a-c item">性别:<el-input v-model="confirmData.patientGender" style="flex: 1" placeholder="" /></div> | 
		
	
		
			
				|  |  |         <div class="flex a-c item">眼别: |  |  |         <div class="flex a-c item">眼别: | 
		
	
		
			
				|  |  |           <el-select v-model="confirmData.eyeType" style="flex: 1" placeholder=""> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |           <el-select | 
		
	
		
			
				|  |  |  |  |  |             ref="eyeTypeRef" | 
		
	
		
			
				|  |  |  |  |  |             v-model="confirmData.eyeType" | 
		
	
		
			
				|  |  |  |  |  |             filterable | 
		
	
		
			
				|  |  |  |  |  |             allow-create | 
		
	
		
			
				|  |  |  |  |  |             style="flex: 1" | 
		
	
		
			
				|  |  |  |  |  |             placeholder="" | 
		
	
		
			
				|  |  |  |  |  |           > | 
		
	
		
			
				|  |  |             <el-option |  |  |             <el-option | 
		
	
		
			
				|  |  |               v-for="item in options" |  |  |               v-for="item in options" | 
		
	
		
			
				|  |  |               :key="item.value" |  |  |               :key="item.value" | 
		
	
	
		
			
				|  | @ -66,13 +73,12 @@ | 
		
	
		
			
				|  |  |             <span class="check" @click="item.isSelected = !item.isSelected"> |  |  |             <span class="check" @click="item.isSelected = !item.isSelected"> | 
		
	
		
			
				|  |  |               <input type="checkbox" :checked="item.isSelected">{{ item.name }} |  |  |               <input type="checkbox" :checked="item.isSelected">{{ item.name }} | 
		
	
		
			
				|  |  |             </span> |  |  |             </span> | 
		
	
		
			
				|  |  |             <!--            <el-checkbox v-model="item.isSelected" class="checkboxItem">{{ item.name }}</el-checkbox>--> |  |  |  | 
		
	
		
			
				|  |  |             <span v-if="item.area" class="flex">( |  |  |             <span v-if="item.area" class="flex">( | 
		
	
		
			
				|  |  |               <span v-for="(area,index) in item.area" :key="`${index}_${i}`" class="areaItem"> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |               <span v-for="(area,index) in item.area" :key="`${index}_${i}`" class="areaItem flex"> | 
		
	
		
			
				|  |  |                 <span class="check" @click="area.isSelected = !area.isSelected"> |  |  |                 <span class="check" @click="area.isSelected = !area.isSelected"> | 
		
	
		
			
				|  |  |                   <input type="checkbox" :checked="area.isSelected">{{ area.name }} |  |  |                   <input type="checkbox" :checked="area.isSelected">{{ area.name }} | 
		
	
		
			
				|  |  |                 </span> |  |  |                 </span> | 
		
	
		
			
				|  |  |                 <!--                <el-checkbox v-model="area.isSelected" class="checkboxItem">{{ area.name }}</el-checkbox>--> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |                 <span v-if="area.name==='全'" style="margin-left: 5px" class="flex">第 <el-input v-model="confirmData.frequency" style="width: 50px" /> 次</span> | 
		
	
		
			
				|  |  |               </span> |  |  |               </span> | 
		
	
		
			
				|  |  |               )</span> |  |  |               )</span> | 
		
	
		
			
				|  |  |           </div> |  |  |           </div> | 
		
	
	
		
			
				|  | @ -185,7 +191,8 @@ export default { | 
		
	
		
			
				|  |  |         patientSign: '', |  |  |         patientSign: '', | 
		
	
		
			
				|  |  |         qgy: '', |  |  |         qgy: '', | 
		
	
		
			
				|  |  |         ydb: '', |  |  |         ydb: '', | 
		
	
		
			
				|  |  |         swmxgxbb: '' |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         swmxgxbb: '', | 
		
	
		
			
				|  |  |  |  |  |         frequency: '' | 
		
	
		
			
				|  |  |       }, |  |  |       }, | 
		
	
		
			
				|  |  |       options: [{ |  |  |       options: [{ | 
		
	
		
			
				|  |  |         value: 'OD', |  |  |         value: 'OD', | 
		
	
	
		
			
				|  | @ -370,14 +377,6 @@ export default { | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   created() { |  |  |   created() { | 
		
	
		
			
				|  |  |     this.origin = JSON.parse(JSON.stringify(this.confirmData)) |  |  |     this.origin = JSON.parse(JSON.stringify(this.confirmData)) | 
		
	
		
			
				|  |  |     // 患者信息带入 |  |  |  | 
		
	
		
			
				|  |  |     this.confirmData.patientName = this.patientDetail.patientName |  |  |  | 
		
	
		
			
				|  |  |     this.confirmData.patientAge = this.patientDetail.patientAge |  |  |  | 
		
	
		
			
				|  |  |     this.confirmData.patientGender = this.patientDetail.patientSex |  |  |  | 
		
	
		
			
				|  |  |     const userData = JSON.parse(window.sessionStorage.getItem('qg-userData')) |  |  |  | 
		
	
		
			
				|  |  |     this.confirmData.operationSign = userData.signImgBase |  |  |  | 
		
	
		
			
				|  |  |     this.confirmData.operationDate = this.$moment().format('YYYY-MM-DD HH:mm:ss') |  |  |  | 
		
	
		
			
				|  |  |     this.confirmData.patientDate = this.$moment().format('YYYY-MM-DD HH:mm:ss') |  |  |  | 
		
	
		
			
				|  |  |     this.getInfoDetail() |  |  |     this.getInfoDetail() | 
		
	
		
			
				|  |  |     this.queryProject() |  |  |     this.queryProject() | 
		
	
		
			
				|  |  |     this.$store.commit('initPlugin') |  |  |     this.$store.commit('initPlugin') | 
		
	
	
		
			
				|  | @ -392,9 +391,7 @@ export default { | 
		
	
		
			
				|  |  |         patientId: this.patientDetail.patientId |  |  |         patientId: this.patientDetail.patientId | 
		
	
		
			
				|  |  |       }}).then(data => { |  |  |       }}).then(data => { | 
		
	
		
			
				|  |  |         const detail = data.data.data |  |  |         const detail = data.data.data | 
		
	
		
			
				|  |  |         if (detail.eyeType) { |  |  |  | 
		
	
		
			
				|  |  |           this.confirmData.eyeType = detail.eyeType |  |  |  | 
		
	
		
			
				|  |  |         } |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         this.confirmData.eyeType = detail.eyeType | 
		
	
		
			
				|  |  |         const bnzList = detail.bnz && detail.bnz.split('/') || [] |  |  |         const bnzList = detail.bnz && detail.bnz.split('/') || [] | 
		
	
		
			
				|  |  |         const qgyList = detail.qgy && detail.qgy.split('/') || [] |  |  |         const qgyList = detail.qgy && detail.qgy.split('/') || [] | 
		
	
		
			
				|  |  |         const ydbList = detail.ydb && detail.ydb.split('/') || [] |  |  |         const ydbList = detail.ydb && detail.ydb.split('/') || [] | 
		
	
	
		
			
				|  | @ -405,6 +402,22 @@ export default { | 
		
	
		
			
				|  |  |         this.handleDetail(bnzList, qgyList, ydbList, swmList, detail.coats, mzfsList, jgshList, jgshAreaList) |  |  |         this.handleDetail(bnzList, qgyList, ydbList, swmList, detail.coats, mzfsList, jgshList, jgshAreaList) | 
		
	
		
			
				|  |  |         this.confirmData.other = detail.other || '' |  |  |         this.confirmData.other = detail.other || '' | 
		
	
		
			
				|  |  |         this.$store.commit('informPatientSign', detail.patientSign) |  |  |         this.$store.commit('informPatientSign', detail.patientSign) | 
		
	
		
			
				|  |  |  |  |  |         if (!detail.jzNumber) { | 
		
	
		
			
				|  |  |  |  |  |           // 患者信息带入 | 
		
	
		
			
				|  |  |  |  |  |           this.confirmData.patientName = this.patientDetail.patientName | 
		
	
		
			
				|  |  |  |  |  |           this.confirmData.patientAge = this.patientDetail.patientAge | 
		
	
		
			
				|  |  |  |  |  |           this.confirmData.patientGender = this.patientDetail.patientSex | 
		
	
		
			
				|  |  |  |  |  |           const userData = JSON.parse(window.sessionStorage.getItem('qg-userData')) | 
		
	
		
			
				|  |  |  |  |  |           this.confirmData.operationSign = userData.signImgBase | 
		
	
		
			
				|  |  |  |  |  |           this.confirmData.operationDate = this.$moment().format('YYYY-MM-DD') | 
		
	
		
			
				|  |  |  |  |  |           this.confirmData.patientDate = this.$moment().format('YYYY-MM-DD') | 
		
	
		
			
				|  |  |  |  |  |         } else { | 
		
	
		
			
				|  |  |  |  |  |           this.confirmData.patientName = detail.patientName | 
		
	
		
			
				|  |  |  |  |  |           this.confirmData.patientAge = detail.patientAge | 
		
	
		
			
				|  |  |  |  |  |           this.confirmData.patientGender = detail.patientGender | 
		
	
		
			
				|  |  |  |  |  |           this.confirmData.operationDate = detail.operationDate | 
		
	
		
			
				|  |  |  |  |  |           this.confirmData.patientDate = detail.patientDate | 
		
	
		
			
				|  |  |  |  |  |         } | 
		
	
		
			
				|  |  |       }) |  |  |       }) | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 获取详情数据并展示在页面中 |  |  |     // 获取详情数据并展示在页面中 | 
		
	
	
		
			
				|  | @ -552,6 +565,11 @@ export default { | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 保存 |  |  |     // 保存 | 
		
	
		
			
				|  |  |     handleSaveTable() { |  |  |     handleSaveTable() { | 
		
	
		
			
				|  |  |  |  |  |       if (!this.confirmData.eyeType) { | 
		
	
		
			
				|  |  |  |  |  |         this.$message.error('请选择眼别') | 
		
	
		
			
				|  |  |  |  |  |         this.$refs.eyeTypeRef.focus() | 
		
	
		
			
				|  |  |  |  |  |         return | 
		
	
		
			
				|  |  |  |  |  |       } | 
		
	
		
			
				|  |  |       this.handleList() |  |  |       this.handleList() | 
		
	
		
			
				|  |  |       this.handleNarcotism() |  |  |       this.handleNarcotism() | 
		
	
		
			
				|  |  |       this.handleMode() |  |  |       this.handleMode() | 
		
	
	
		
			
				|  | 
 |