| 
					
				 | 
			
			
				@ -146,7 +146,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        				<div class="pl20 lh40">总费用: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        					<span class="c-red c-f16">¥{{allFee}}</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        					<span class="fr lh30 cur-pit plr15 c-t-center bgc-green c-fff" @click="canclePlan()">取消</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        					<span class="fr lh30 cur-pit plr15 c-t-center c-fff" :class="Number(allFee) ? 'bgc-12b7f5' : 'bgc-d7dce6'" @click="createRehabilitationPlan()">生成计划</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        					<span class="fr lh30 cur-pit plr15 c-t-center c-fff" :class="havePlan ? 'bgc-12b7f5' : 'bgc-d7dce6'" @click="createRehabilitationPlan()">生成计划</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        				</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					        			</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        	</div> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -257,7 +257,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	jDlist: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	zDlist: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	selectProjectDetail: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	searchKey: null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	searchKey: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	havePlan: false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                mounted: function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	if(httpData.patient) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -443,6 +444,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
												}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
										vm.judgeHavePlan() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    	// 选择项目 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							    	selectProject: function(index, index2, index3, o) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -603,6 +605,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.templateDetail[index].value14 = null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.isTest = !this.isTest 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.allFee = this.add(this.allFee, this.templateDetail[index].expense) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.judgeHavePlan() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	// 选择周期 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	getRandgeDate: function(index) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -626,12 +629,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.templateDetail[index].specialistServiceItemDO.selectDateRange.push(obj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.templateDetail[index].value14 = null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.isTest = !this.isTest 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.judgeHavePlan() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	spliceTimeArr: function(index, ind) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		var vm = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.templateDetail[index].specialistServiceItemDO.executeTime.splice(ind, 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.isTest = !this.isTest 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		vm.allFee = vm.sub(vm.allFee, vm.templateDetail[index].expense) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		vm.judgeHavePlan() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	spliceTimeRange: function(index, ind) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		var startPos = 0, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -644,9 +649,21 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.templateDetail[index].specialistServiceItemDO.executeTime.splice(startPos, len) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.isTest = !this.isTest 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		vm.allFee = vm.sub(vm.allFee, vm.mul(vm.templateDetail[index].expense, len)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		vm.judgeHavePlan() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	judgeHavePlan: function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		for(var k = 0; k < this.templateDetail.length; k++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                			for(var i = 0; i < this.templateDetail[k].specialistServiceItemDO.executeTime.length; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						    					if(this.templateDetail[k].specialistServiceItemDO.executeTime[i]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						    						this.havePlan = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						    						return false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						    					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						    				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		this.havePlan = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                	createRehabilitationPlan: function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		if(!Number(this.allFee)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		if(!this.havePlan) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                			showWarningMessage("请选择计划时间!") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                			return false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                		} 
			 |