|  |  | @ -74,35 +74,23 @@ | 
			
		
	
		
			
				
					|  |  |  |           </div> | 
			
		
	
		
			
				
					|  |  |  |         </el-col> | 
			
		
	
		
			
				
					|  |  |  |       </div> | 
			
		
	
		
			
				
					|  |  |  |       <el-form-item required label="预约时间:" prop="date"> | 
			
		
	
		
			
				
					|  |  |  |         <el-date-picker | 
			
		
	
		
			
				
					|  |  |  |           v-model="form.date" | 
			
		
	
		
			
				
					|  |  |  |           type="datetime" | 
			
		
	
		
			
				
					|  |  |  |           placeholder="选择日期时间" | 
			
		
	
		
			
				
					|  |  |  |         /> | 
			
		
	
		
			
				
					|  |  |  |       <el-form-item label="预约时间:" required> | 
			
		
	
		
			
				
					|  |  |  |         <el-col :span="11"> | 
			
		
	
		
			
				
					|  |  |  |           <el-form-item prop="date1"> | 
			
		
	
		
			
				
					|  |  |  |             <el-date-picker v-model="form.date1" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" style="width: 100%;" /> | 
			
		
	
		
			
				
					|  |  |  |           </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |         </el-col> | 
			
		
	
		
			
				
					|  |  |  |         <el-col class="line" style="text-align: center" :span="2">-</el-col> | 
			
		
	
		
			
				
					|  |  |  |         <el-col :span="11"> | 
			
		
	
		
			
				
					|  |  |  |           <el-time-select | 
			
		
	
		
			
				
					|  |  |  |             v-model="form.date2" | 
			
		
	
		
			
				
					|  |  |  |             :picker-options="{...timeRange}" | 
			
		
	
		
			
				
					|  |  |  |             value-format="HH:mm:ss" | 
			
		
	
		
			
				
					|  |  |  |             placeholder="选择时间" | 
			
		
	
		
			
				
					|  |  |  |             style="width: 100%;" | 
			
		
	
		
			
				
					|  |  |  |           /> | 
			
		
	
		
			
				
					|  |  |  |         </el-col> | 
			
		
	
		
			
				
					|  |  |  |       </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |       <!--      <el-form-item label="活动时间" required>--> | 
			
		
	
		
			
				
					|  |  |  |       <!--        <el-col :span="11">--> | 
			
		
	
		
			
				
					|  |  |  |       <!--          <el-form-item prop="date1">--> | 
			
		
	
		
			
				
					|  |  |  |       <!--            <el-date-picker v-model="form.date1" type="date" placeholder="选择日期" style="width: 100%;" />--> | 
			
		
	
		
			
				
					|  |  |  |       <!--          </el-form-item>--> | 
			
		
	
		
			
				
					|  |  |  |       <!--        </el-col>--> | 
			
		
	
		
			
				
					|  |  |  |       <!--        <el-col class="line" style="text-align: center" :span="2">-</el-col>--> | 
			
		
	
		
			
				
					|  |  |  |       <!--        <el-col :span="11">--> | 
			
		
	
		
			
				
					|  |  |  |       <!--          <el-form-item prop="date2">--> | 
			
		
	
		
			
				
					|  |  |  |       <!--            <el-time-select--> | 
			
		
	
		
			
				
					|  |  |  |       <!--              v-model="form.date2"--> | 
			
		
	
		
			
				
					|  |  |  |       <!--              :picker-options="{--> | 
			
		
	
		
			
				
					|  |  |  |       <!--                start: '07:30',--> | 
			
		
	
		
			
				
					|  |  |  |       <!--                step:'00:15',--> | 
			
		
	
		
			
				
					|  |  |  |       <!--                end: '13:30'--> | 
			
		
	
		
			
				
					|  |  |  |       <!--              }"--> | 
			
		
	
		
			
				
					|  |  |  |       <!--              placeholder="选择时间"--> | 
			
		
	
		
			
				
					|  |  |  |       <!--              style="width: 100%;"--> | 
			
		
	
		
			
				
					|  |  |  |       <!--            />--> | 
			
		
	
		
			
				
					|  |  |  |       <!--          </el-form-item>--> | 
			
		
	
		
			
				
					|  |  |  |       <!--        </el-col>--> | 
			
		
	
		
			
				
					|  |  |  |       <!--      </el-form-item>--> | 
			
		
	
		
			
				
					|  |  |  |     </el-form> | 
			
		
	
		
			
				
					|  |  |  |     <span slot="footer" class="dialog-footer"> | 
			
		
	
		
			
				
					|  |  |  |       <el-button v-if="print" v-print="print" size="small">打印</el-button> | 
			
		
	
	
		
			
				
					|  |  | @ -130,6 +118,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |     isEdit: { | 
			
		
	
		
			
				
					|  |  |  |       type: Boolean, | 
			
		
	
		
			
				
					|  |  |  |       default: false | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     isPm: { | 
			
		
	
		
			
				
					|  |  |  |       type: Boolean | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   data() { | 
			
		
	
	
		
			
				
					|  |  | @ -156,6 +147,17 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   computed: { | 
			
		
	
		
			
				
					|  |  |  |     timeRange() { | 
			
		
	
		
			
				
					|  |  |  |       return this.isPm ? { | 
			
		
	
		
			
				
					|  |  |  |         start: '12:00', | 
			
		
	
		
			
				
					|  |  |  |         step: '00:15', | 
			
		
	
		
			
				
					|  |  |  |         end: '21:30' | 
			
		
	
		
			
				
					|  |  |  |       } : { | 
			
		
	
		
			
				
					|  |  |  |         start: '07:30', | 
			
		
	
		
			
				
					|  |  |  |         step: '00:15', | 
			
		
	
		
			
				
					|  |  |  |         end: '12:00' | 
			
		
	
		
			
				
					|  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     dataRule() { | 
			
		
	
		
			
				
					|  |  |  |       return { | 
			
		
	
		
			
				
					|  |  |  |         patientId: [ | 
			
		
	
	
		
			
				
					|  |  | @ -178,9 +180,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       this.form.pupilShrink = this.patientDetail.pupilShrink | 
			
		
	
		
			
				
					|  |  |  |       this.form.remark = this.patientDetail.remark | 
			
		
	
		
			
				
					|  |  |  |       this.form.yzOpen = this.patientDetail.yzOpen | 
			
		
	
		
			
				
					|  |  |  |       this.form.date = this.patientDetail.appointDate | 
			
		
	
		
			
				
					|  |  |  |       this.form.date1 = this.patientDetail.appointDate.split(' ')[0] | 
			
		
	
		
			
				
					|  |  |  |       this.form.date2 = this.patientDetail.appointDate.split(' ')[1] | 
			
		
	
		
			
				
					|  |  |  |       this.form.date2 = this.patientDetail.appointDate.split(' ')[1].substring(0, 5) | 
			
		
	
		
			
				
					|  |  |  |       this.patientInfo = this.patientDetail | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
	
		
			
				
					|  |  | @ -217,7 +218,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |             return false | 
			
		
	
		
			
				
					|  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |           const params = { | 
			
		
	
		
			
				
					|  |  |  |             appointDate: this.$moment(this.form.date).format('YYYY-MM-DD HH:mm:ss'), | 
			
		
	
		
			
				
					|  |  |  |             appointDate: `${this.form.date1} ${this.form.date2}:00`, | 
			
		
	
		
			
				
					|  |  |  |             patientName: this.patientInfo.patientName, | 
			
		
	
		
			
				
					|  |  |  |             jzNumber: this.patientInfo.jzNumber, | 
			
		
	
		
			
				
					|  |  |  |             appointSource: this.patientInfo.source, | 
			
		
	
	
		
			
				
					|  |  | @ -233,7 +234,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |         const params = { | 
			
		
	
		
			
				
					|  |  |  |           appointDate: this.$moment(this.form.date).format('YYYY-MM-DD HH:mm:ss'), | 
			
		
	
		
			
				
					|  |  |  |           appointDate: `${this.form.date1} ${this.form.date2}:00`, | 
			
		
	
		
			
				
					|  |  |  |           doctorId: this.form.doctorId, | 
			
		
	
		
			
				
					|  |  |  |           doctorName: this.form.doctorName, | 
			
		
	
		
			
				
					|  |  |  |           patientId: this.form.patientId, | 
			
		
	
	
		
			
				
					|  |  | 
 |