|  |  | @ -1,36 +1,14 @@ | 
			
		
	
		
			
				
					|  |  |  | <template> | 
			
		
	
		
			
				
					|  |  |  |   <my-dialog :print="print" title="改约" :is-show="show" @handleSave="handleSave" @close="closeDialog"> | 
			
		
	
		
			
				
					|  |  |  |     <el-form id="reOrder" ref="form" size="small" :model="form" label-width="100px"> | 
			
		
	
		
			
				
					|  |  |  |       <div class="secTitle">检查项目:前节激光治疗</div> | 
			
		
	
		
			
				
					|  |  |  |       <el-form-item required label="预约时间:"> | 
			
		
	
		
			
				
					|  |  |  |         <el-col :span="11"> | 
			
		
	
		
			
				
					|  |  |  |           <el-date-picker v-model="form.date1" type="date" placeholder="选择日期" style="width: 100%;" /> | 
			
		
	
		
			
				
					|  |  |  |         </el-col> | 
			
		
	
		
			
				
					|  |  |  |         <el-col class="line" :span="1">-</el-col> | 
			
		
	
		
			
				
					|  |  |  |         <el-col :span="11"> | 
			
		
	
		
			
				
					|  |  |  |           <el-time-picker v-model="form.date2" placeholder="选择时间" style="width: 100%;" /> | 
			
		
	
		
			
				
					|  |  |  |         </el-col> | 
			
		
	
		
			
				
					|  |  |  |       </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |       <div class="secTitle">检查项目:UBM</div> | 
			
		
	
		
			
				
					|  |  |  |       <el-form-item required label="预约时间:"> | 
			
		
	
		
			
				
					|  |  |  |         <el-col :span="11"> | 
			
		
	
		
			
				
					|  |  |  |           <el-date-picker v-model="form.date3" type="date" placeholder="选择日期" style="width: 100%;" /> | 
			
		
	
		
			
				
					|  |  |  |         </el-col> | 
			
		
	
		
			
				
					|  |  |  |         <el-col class="line" :span="1">-</el-col> | 
			
		
	
		
			
				
					|  |  |  |         <el-col :span="11"> | 
			
		
	
		
			
				
					|  |  |  |           <el-time-picker v-model="form.date4" placeholder="选择时间" style="width: 100%;" /> | 
			
		
	
		
			
				
					|  |  |  |         </el-col> | 
			
		
	
		
			
				
					|  |  |  |       </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |       <div class="secTitle">检查项目:UBM</div> | 
			
		
	
		
			
				
					|  |  |  |       <el-form-item required label="预约时间:"> | 
			
		
	
		
			
				
					|  |  |  |         <el-col :span="11"> | 
			
		
	
		
			
				
					|  |  |  |           <el-date-picker v-model="form.date5" type="date" placeholder="选择日期" style="width: 100%;" /> | 
			
		
	
		
			
				
					|  |  |  |         </el-col> | 
			
		
	
		
			
				
					|  |  |  |         <el-col class="line" :span="1">-</el-col> | 
			
		
	
		
			
				
					|  |  |  |         <el-col :span="11"> | 
			
		
	
		
			
				
					|  |  |  |           <el-time-picker v-model="form.date6" placeholder="选择时间" style="width: 100%;" /> | 
			
		
	
		
			
				
					|  |  |  |         </el-col> | 
			
		
	
		
			
				
					|  |  |  |       </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |       <div v-for="(item,index) in patientList" :key="index"> | 
			
		
	
		
			
				
					|  |  |  |         <div class="secTitle">{{ `${item.itemName} ${item.patientName}` }}</div> | 
			
		
	
		
			
				
					|  |  |  |         <el-date-picker | 
			
		
	
		
			
				
					|  |  |  |           v-model="item.appointDate" | 
			
		
	
		
			
				
					|  |  |  |           type="datetime" | 
			
		
	
		
			
				
					|  |  |  |           placeholder="选择日期时间" | 
			
		
	
		
			
				
					|  |  |  |         /> | 
			
		
	
		
			
				
					|  |  |  |       </div> | 
			
		
	
		
			
				
					|  |  |  |     </el-form> | 
			
		
	
		
			
				
					|  |  |  |   </my-dialog> | 
			
		
	
		
			
				
					|  |  |  | </template> | 
			
		
	
	
		
			
				
					|  |  | @ -45,6 +23,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |     isShow: { | 
			
		
	
		
			
				
					|  |  |  |       type: Boolean, | 
			
		
	
		
			
				
					|  |  |  |       default: false | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     patientList: { | 
			
		
	
		
			
				
					|  |  |  |       type: Array, | 
			
		
	
		
			
				
					|  |  |  |       default: () => [] | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |   data() { | 
			
		
	
	
		
			
				
					|  |  | @ -73,7 +55,12 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |       this.$emit('close', val) | 
			
		
	
		
			
				
					|  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |     handleSave() { | 
			
		
	
		
			
				
					|  |  |  |       this.closeDialog() | 
			
		
	
		
			
				
					|  |  |  |       this.patientList.forEach(item => { | 
			
		
	
		
			
				
					|  |  |  |         this.$set(item, 'appointDate', this.$moment(item.appointDate).format('YYYY-MM-DD HH:mm:ss')) | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |       this.$http.post('/appoint/batchUpdateAppointInfo', [...this.patientList]).then(() => { | 
			
		
	
		
			
				
					|  |  |  |         this.$emit('saveAppoint') | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
	
		
			
				
					|  |  | 
 |