| 
					
				 | 
			
			
				@ -68,26 +68,26 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												</ul> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        		<li class="pt10"style="display: flex;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        		<li class="pt10"style="display: flex;" id="department"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        			<label class="c-999" style="font-weight: normal;">入院科室:</label> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        			<input class="form-control" v-bind:disabled="edit" v-bind:placeholder="nodata == true? '请输入': subsidiaryInfo.data.department" style=" text-align: center; height: 22px; border-radius: 3px; width: 80%;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        			<input class="form-control" v-bind:disabled="edit" v-bind:value="nodata == true? '请输入': subsidiaryInfo.data.department" style=" text-align: center; height: 22px; border-radius: 3px; width: 80%;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        		</li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        		<li class="pt10"style="display: flex;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        		<li class="pt10"style="display: flex;" id="attendingDoctor"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        			<label class="c-999" style="font-weight: normal;">主治医师:</label> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        			<input class="form-control" v-bind:disabled="edit" v-bind:placeholder="nodata == true? '请输入': subsidiaryInfo.data.attendingDoctor" style="text-align: center; height: 22px; border-radius: 3px; width: 80%;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        			<input class="form-control" v-bind:disabled="edit" v-bind:value="nodata == true? '请输入': subsidiaryInfo.data.attendingDoctor" style="text-align: center; height: 22px; border-radius: 3px; width: 80%;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        		</li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        		<li class="pt10"style="display: flex;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        		<li class="pt10"style="display: flex;" id="admissionDiagnosis"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        			<label class="c-999" style="font-weight: normal;">入院诊断:</label> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        			<input class="form-control" v-bind:disabled="edit" v-bind:placeholder="nodata == true? '请输入': subsidiaryInfo.data.admissionDiagnosis" style="text-align: center; height: 22px; border-radius: 3px; width: 80%;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        			<input class="form-control" v-bind:disabled="edit" v-bind:value="nodata == true? '请输入': subsidiaryInfo.data.admissionDiagnosis" style="text-align: center; height: 22px; border-radius: 3px; width: 80%;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        		</li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        		<li class="pt10"style="display: flex;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        		<li class="pt10"style="display: flex;" id="dischargeDiagnosis"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        			<label class="c-999" style="font-weight: normal;">出院诊断:</label> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        			<input class="form-control" v-bind:disabled="edit" v-bind:placeholder="nodata == true? '请输入': subsidiaryInfo.data.dischargeDiagnosis" style="text-align: center; height: 22px; border-radius: 3px; width: 80%;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        			<input class="form-control" v-bind:disabled="edit" v-bind:value="nodata == true? '请输入': subsidiaryInfo.data.dischargeDiagnosis" style="text-align: center; height: 22px; border-radius: 3px; width: 80%;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        		</li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        	</ul> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        	<h4 class="h30 m0 c-f14 c-border-b c-999">医嘱小结</h4> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        	<!--<p class="m0 pt10 c-333">依旧本次判断,对新消息进行出院诊断做出以下结论:忧郁啥啥事等等等问题</p>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        	<textarea v-bind:disabled="edit" class="tipText m0 pt10 c-333 mt10" style="width: 100%; border:1px solid #e1e1e1; resize:none;text-indent:28px" v-html="subsidiaryInfo.data.dischargeOrder"></textarea> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        	<textarea v-bind:disabled="edit" class="tipText m0 pt10 c-333 mt10" style="height: 200px; width: 100%; border:1px solid #e1e1e1; resize:none;text-indent:28px" v-html="subsidiaryInfo.data.dischargeOrder"></textarea> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        	<button type="button" class="btn btn-default fr" style="width: 60px; background: #12B7F5; border-radius: 0px ;border: 0px ;" @click="editdiagnosis()" v-html="edit == true? '编辑':'保存'"></button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        	</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        </div> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -156,7 +156,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        											<!--<p class="lh24 pl10 mb5 mr20 clearfix" v-for="(time, ind) in detail.specialistServiceItemDO.selectDateRange" :key="ind" v-if="detail.specialistServiceItemDO.selectDateRange.length"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        											<span class="pb10 mr10">{{time.startTime}}</span>至<span class="pb10 ml10">{{time.endTime}}</span><span class="pb10 ml5 c-red cur-pit" @click="spliceTimeRange(index, ind)">删除</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        										</p>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        											<el-date-picker v-model="detail.value14" type="daterange" :picker-options="pickerOptions1" value-format="yyyy-MM-dd" @input="getRandgeDate(index)" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        											<el-date-picker  v-model="detail.value14" type="daterange" :picker-options="pickerOptions1" value-format="yyyy-MM-dd" @input="getRandgeDate(index)" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        										</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        										<span class="fl lh24 mlr10 c-999">或</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        										<div class="fl maxw600 c-border mb10"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -218,8 +218,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
																			<span class="fr lh18 b-r-3 c-f12 ml5 bgc-4dcd70 plr5 c-fff" v-if="project3.flag == 1 || project3.flag == 3">社区</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
																			<span class="fr lh18 b-r-3 c-f12 ml5 bgc-55cefc plr5 c-fff" v-if="project3.flag == 2 || project3.flag == 3">医院</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
																		</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
																		<span class="fr h30 btn cur-pit plr10 bgc-12b7f5 c-fff b-r-3" v-if="!project3.isSelect" @click="addProject(index, index2, index3, project3)">添加</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
																		<span class="fr h30 btn plr10 bgc-e1e1e1 c-fff b-r-3" v-else>添加</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
																		<span class="fr h30 btn cur-pit plr10 bgc-12b7f5 c-fff b-r-3" style="padding: 0 10px;" v-if="!project3.isSelect" @click="addProject(index, index2, index3, project3)">添加</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
																		<span class="fr h30 btn plr10 bgc-e1e1e1 c-fff b-r-3" style="padding: 0 10px;" v-else>添加</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
																	</li> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
																</ul> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															</li> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -275,7 +275,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                el: "#app", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                data: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	pickerOptions1: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							        	disabledDate(time) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							        	disabledDate: function(time) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							            	return time.getTime() < Date.now() - 8.64e7; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							        	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							        }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -338,6 +338,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		loadding = layer.load(0, {shade: false}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		params = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                			patient: this.pati.patient, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//              			patient:"3b26a7905e034c36a5ba8e65bdc0dc7f", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											type: '2', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											page: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											pageSize: 50, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -349,15 +350,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                				if(res.data.length == 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                					vm.diagnosisInfo = [{orgName:'无'}] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                					console.log(vm.diagnosisInfo) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                					debugger 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                					vm.nodata = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                				}else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                					vm.diagnosisInfo = res.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                				vm.orderHospital(0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                			}else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//              				vm.diagnosisInfo = [{orgName:'无'}] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//              				vm.orderHospital(0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                				vm.diagnosisInfo = [{orgName:'无'}] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                				vm.orderHospital(0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                				showErrorMessage(res.msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		}) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -441,34 +441,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									//编辑诊疗 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									editdiagnosis:function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										var  vm = this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										if(vm.isPlanId){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											vm.edit = !vm.edit; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											if(vm.edit == true){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												var thr_parems ={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													patient:vm.pati.patient, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													patientName:vm.pati.patientName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													planId:vm.isPlanId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													hospitalName:$('.input-group-btn button').text().trim(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													department:vm.subsidiaryInfo.data.department|| "", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													attendingDoctorName:vm.subsidiaryInfo.data.attendingDoctor ||"", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													admittingDiagnosis:vm.subsidiaryInfo.data.admissionDiagnosis || "", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													dischargeDiagnosis:vm.subsidiaryInfo.data.dischargeDiagnosis|| "", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													advice:vm.subsidiaryInfo.data.dischargeOrder ||"", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													dischargeTime:vm.subsidiaryInfo.data.dischargeTime || "" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												loadding = layer.load(0, {shade: false}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												recoverAPI.preservationInfo(thr_parems).then(function(res){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        					layer.close(loadding) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        					if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						                				showSuccessMessage('保存成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					            					}else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					                					showErrorMessage(res.msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					                				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					                			}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										}else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                			showWarningMessage("请先生成计划") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										vm.edit = !vm.edit; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										vm.nodata = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										vm.subsidiaryInfo.data.department = $('#department').find('input').val() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										vm.subsidiaryInfo.data.attendingDoctor = $('#attendingDoctor').find('input').val() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										vm.subsidiaryInfo.data.admissionDiagnosis = $('#department').find('input').val() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										vm.subsidiaryInfo.data.dischargeDiagnosis = $('#dischargeDiagnosis').find('input').val() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	// 获取频次列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	selectFrequencys: function() { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -797,7 +775,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.pati = pati 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.getPatientInfo() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.findTemplateList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				<<<<<<< HEAD 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//              		this.diagnosisQuery() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				======= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.diagnosisQuery() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				>>>>>>> c5dc237fd8688dc3370532b7c19f9580c3a15538 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	// 添加模板 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	addMuban: function(oId) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -989,8 +971,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		    					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//		    				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//              		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		var vm = this, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    			loadding = layer.load(0, {shade: false}), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										var vm = this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    		if(vm.edit == true){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    			var loadding = layer.load(0, {shade: false}), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    			data = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    				patient: this.pati.patient, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    				name: this.pati.patientName, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1003,49 +987,75 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    				detail: [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    			}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    			params = {}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    		$.each(vm.templateDetail, function(index, o) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    			if(o.specialistServiceItemDO.executeTime.length) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    				var executeTime = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    				$.each(o.specialistServiceItemDO.executeTime, function(ind, v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    					v += ' 00:00' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    					executeTime.push(v) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    				}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    				var obj = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    					hospitalServiceItemId: o.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    					type: o.flag == 2 ? 2 : 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    					doctor: o.executeDoctor, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    					doctorName: o.executeDoctorName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    					executeTimes: executeTime.join(","), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    					frequencyCode: o.frequencyCode, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    					timeType: o.timeType, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    					remark: o.remark || '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    				data.detail.push(obj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    		}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    		params = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    			json: JSON.stringify(data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										recoverAPI.createRehabilitationPlan(params).then(function(res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											layer.close(loadding) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											if(res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												vm.isPlanId = res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												showSuccessMessage("康复计划配置成功!") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//								setTimeout(function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//									window.location.href = "../../rehabilitation/html/health_control.html" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//								}, 1000) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												showErrorMessage(res.msg || "同康复计划项目创建时间重复!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												vm.templateDetail = $.map(vm.templateDetail, function(o, index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													$.each(res.data, function(ind, v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
														if(v == o.id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															o.isTimeSame = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    		$.each(vm.templateDetail, function(index, o) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    			if(o.specialistServiceItemDO.executeTime.length) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    				var executeTime = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    				$.each(o.specialistServiceItemDO.executeTime, function(ind, v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    					v += ' 00:00' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    					executeTime.push(v) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    				}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    				var obj = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    					hospitalServiceItemId: o.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    					type: o.flag == 2 ? 2 : 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    					doctor: o.executeDoctor, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    					doctorName: o.executeDoctorName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    					executeTimes: executeTime.join(","), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    					frequencyCode: o.frequencyCode, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    					timeType: o.timeType, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    					remark: o.remark || '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    				data.detail.push(obj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    		}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    		params = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    			json: JSON.stringify(data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								    		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											recoverAPI.createRehabilitationPlan(params).then(function(res) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												layer.close(loadding) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												if(res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													vm.isPlanId = res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													if(vm.isPlanId){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
														var thr_parems ={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															patient:vm.pati.patient, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															patientName:vm.pati.patientName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															planId:vm.isPlanId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															hospitalName:$('.input-group-btn button').text().trim(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															department:$('#department').find('input').val(),//vm.subsidiaryInfo.data.department|| "" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															attendingDoctorName:$('#attendingDoctor').find('input').val(),//vm.subsidiaryInfo.data.attendingDoctor ||"" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															admittingDiagnosis:$('#admissionDiagnosis').find('input').val(),//vm.subsidiaryInfo.data.admissionDiagnosis || "" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															dischargeDiagnosis:$('#dischargeDiagnosis').find('input').val(),//vm.subsidiaryInfo.data.dischargeDiagnosis|| "" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															advice:$('.tipText').val().trim(),//vm.subsidiaryInfo.data.dischargeOrder ||"" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															dischargeTime:vm.subsidiaryInfo.data.dischargeTime || "" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
														} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													return o 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
														loadding = layer.load(0, {shade: false}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
														recoverAPI.preservationInfo(thr_parems).then(function(res){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								        					layer.close(loadding) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								        					if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								        						setTimeout(function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
																	window.location.href = "../../rehabilitation/html/health_control.html" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
																}, 1000) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								                				showSuccessMessage('保存成功') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							            					}else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							                					showErrorMessage(res.msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							                				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							                			}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													showSuccessMessage("康复计划配置成功!") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													showErrorMessage(res.msg || "同康复计划项目创建时间重复!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													vm.templateDetail = $.map(vm.templateDetail, function(o, index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
														$.each(res.data, function(ind, v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															if(v == o.id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
																o.isTimeSame = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
														}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
														return o 
			 | 
		
	
		
			
				 | 
				 | 
			
			
													}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    		}else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    			showSuccessMessage("请先保存诊疗信息!") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    				}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    				// 字符串方法计算加减乘除(精确度百分位) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               		add: function(num1,num2){ 
			 |