|  | @ -82,13 +82,14 @@ | 
		
	
		
			
				|  |  |         </el-col> |  |  |         </el-col> | 
		
	
		
			
				|  |  |         <el-col class="line" style="text-align: center" :span="2">-</el-col> |  |  |         <el-col class="line" style="text-align: center" :span="2">-</el-col> | 
		
	
		
			
				|  |  |         <el-col :span="11"> |  |  |         <el-col :span="11"> | 
		
	
		
			
				|  |  |           <el-time-select |  |  |  | 
		
	
		
			
				|  |  |  |  |  |           <el-form-item prop="date2"> | 
		
	
		
			
				|  |  |  |  |  |             <el-time-picker | 
		
	
		
			
				|  |  |               v-model="form.date2" |  |  |               v-model="form.date2" | 
		
	
		
			
				|  |  |             :picker-options="{...timeRange}" |  |  |  | 
		
	
		
			
				|  |  |               value-format="HH:mm:ss" |  |  |               value-format="HH:mm:ss" | 
		
	
		
			
				|  |  |               placeholder="选择时间" |  |  |               placeholder="选择时间" | 
		
	
		
			
				|  |  |               style="width: 100%;" |  |  |               style="width: 100%;" | 
		
	
		
			
				|  |  |             /> |  |  |             /> | 
		
	
		
			
				|  |  |  |  |  |           </el-form-item> | 
		
	
		
			
				|  |  |         </el-col> |  |  |         </el-col> | 
		
	
		
			
				|  |  |       </el-form-item> |  |  |       </el-form-item> | 
		
	
		
			
				|  |  |     </el-form> |  |  |     </el-form> | 
		
	
	
		
			
				|  | @ -118,9 +119,6 @@ export default { | 
		
	
		
			
				|  |  |     isEdit: { |  |  |     isEdit: { | 
		
	
		
			
				|  |  |       type: Boolean, |  |  |       type: Boolean, | 
		
	
		
			
				|  |  |       default: false |  |  |       default: false | 
		
	
		
			
				|  |  |     }, |  |  |  | 
		
	
		
			
				|  |  |     isPm: { |  |  |  | 
		
	
		
			
				|  |  |       type: Boolean |  |  |  | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   data() { |  |  |   data() { | 
		
	
	
		
			
				|  | @ -136,7 +134,6 @@ export default { | 
		
	
		
			
				|  |  |         eyeType: '', |  |  |         eyeType: '', | 
		
	
		
			
				|  |  |         pupilDilate: '', |  |  |         pupilDilate: '', | 
		
	
		
			
				|  |  |         pupilShrink: '', |  |  |         pupilShrink: '', | 
		
	
		
			
				|  |  |         date: '', |  |  |  | 
		
	
		
			
				|  |  |         date1: '', |  |  |         date1: '', | 
		
	
		
			
				|  |  |         date2: '' |  |  |         date2: '' | 
		
	
		
			
				|  |  |       }, |  |  |       }, | 
		
	
	
		
			
				|  | @ -147,23 +144,15 @@ export default { | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   computed: { |  |  |   computed: { | 
		
	
		
			
				|  |  |     timeRange() { |  |  |  | 
		
	
		
			
				|  |  |       return this.isPm ? { |  |  |  | 
		
	
		
			
				|  |  |         start: '12:00', |  |  |  | 
		
	
		
			
				|  |  |         step: '00:15', |  |  |  | 
		
	
		
			
				|  |  |         end: '21:30' |  |  |  | 
		
	
		
			
				|  |  |       } : { |  |  |  | 
		
	
		
			
				|  |  |         start: '07:30', |  |  |  | 
		
	
		
			
				|  |  |         step: '00:15', |  |  |  | 
		
	
		
			
				|  |  |         end: '12:00' |  |  |  | 
		
	
		
			
				|  |  |       } |  |  |  | 
		
	
		
			
				|  |  |     }, |  |  |  | 
		
	
		
			
				|  |  |     dataRule() { |  |  |     dataRule() { | 
		
	
		
			
				|  |  |       return { |  |  |       return { | 
		
	
		
			
				|  |  |         patientId: [ |  |  |         patientId: [ | 
		
	
		
			
				|  |  |           { required: true, message: '请选择患者' } |  |  |           { required: true, message: '请选择患者' } | 
		
	
		
			
				|  |  |         ], |  |  |         ], | 
		
	
		
			
				|  |  |         date: [ |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         date1: [ | 
		
	
		
			
				|  |  |  |  |  |           { required: true, message: '请选择日期' } | 
		
	
		
			
				|  |  |  |  |  |         ], | 
		
	
		
			
				|  |  |  |  |  |         date2: [ | 
		
	
		
			
				|  |  |           { required: true, message: '请选择时间' } |  |  |           { required: true, message: '请选择时间' } | 
		
	
		
			
				|  |  |         ] |  |  |         ] | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
	
		
			
				|  | @ -180,8 +169,9 @@ export default { | 
		
	
		
			
				|  |  |       this.form.pupilShrink = this.patientDetail.pupilShrink |  |  |       this.form.pupilShrink = this.patientDetail.pupilShrink | 
		
	
		
			
				|  |  |       this.form.remark = this.patientDetail.remark |  |  |       this.form.remark = this.patientDetail.remark | 
		
	
		
			
				|  |  |       this.form.yzOpen = this.patientDetail.yzOpen |  |  |       this.form.yzOpen = this.patientDetail.yzOpen | 
		
	
		
			
				|  |  |  |  |  |       this.form.date = this.patientDetail.appointDate | 
		
	
		
			
				|  |  |       this.form.date1 = this.patientDetail.appointDate.split(' ')[0] |  |  |       this.form.date1 = this.patientDetail.appointDate.split(' ')[0] | 
		
	
		
			
				|  |  |       this.form.date2 = this.patientDetail.appointDate.split(' ')[1].substring(0, 5) |  |  |  | 
		
	
		
			
				|  |  |  |  |  |       this.form.date2 = this.patientDetail.appointDate.split(' ')[1] | 
		
	
		
			
				|  |  |       this.patientInfo = this.patientDetail |  |  |       this.patientInfo = this.patientDetail | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
	
		
			
				|  | @ -218,7 +208,7 @@ export default { | 
		
	
		
			
				|  |  |             return false |  |  |             return false | 
		
	
		
			
				|  |  |           } |  |  |           } | 
		
	
		
			
				|  |  |           const params = { |  |  |           const params = { | 
		
	
		
			
				|  |  |             appointDate: `${this.form.date1} ${this.form.date2}:00`, |  |  |  | 
		
	
		
			
				|  |  |  |  |  |             appointDate: `${this.form.date1} ${this.form.date2}`, | 
		
	
		
			
				|  |  |             patientName: this.patientInfo.patientName, |  |  |             patientName: this.patientInfo.patientName, | 
		
	
		
			
				|  |  |             jzNumber: this.patientInfo.jzNumber, |  |  |             jzNumber: this.patientInfo.jzNumber, | 
		
	
		
			
				|  |  |             appointSource: this.patientInfo.source, |  |  |             appointSource: this.patientInfo.source, | 
		
	
	
		
			
				|  | @ -234,7 +224,7 @@ export default { | 
		
	
		
			
				|  |  |         }) |  |  |         }) | 
		
	
		
			
				|  |  |       } else { |  |  |       } else { | 
		
	
		
			
				|  |  |         const params = { |  |  |         const params = { | 
		
	
		
			
				|  |  |           appointDate: `${this.form.date1} ${this.form.date2}:00`, |  |  |  | 
		
	
		
			
				|  |  |  |  |  |           appointDate: `${this.form.date1} ${this.form.date2}`, | 
		
	
		
			
				|  |  |           doctorId: this.form.doctorId, |  |  |           doctorId: this.form.doctorId, | 
		
	
		
			
				|  |  |           doctorName: this.form.doctorName, |  |  |           doctorName: this.form.doctorName, | 
		
	
		
			
				|  |  |           patientId: this.form.patientId, |  |  |           patientId: this.form.patientId, | 
		
	
	
		
			
				|  | @ -293,3 +283,4 @@ input{ | 
		
	
		
			
				|  |  |   } |  |  |   } | 
		
	
		
			
				|  |  | } |  |  | } | 
		
	
		
			
				|  |  | </style> |  |  | </style> | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
	
		
			
				|  | 
 |