| 
					
				 | 
			
			
				@ -17,6 +17,7 @@ var loading = dialog({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							data:{}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							code:"", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							cardlenght:0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							ischangeCard:false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						mounted: function() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							var vm = this 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -39,20 +40,29 @@ var loading = dialog({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							        		vm.cardlenght=res.data.length 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											if(Request.id){																 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								        		vm.data=res.data.filter(function(item){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								        			return item.id==Request.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								        			return item.id==Request.id && vm.hasInpCardNo(item) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								        		})[0] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								        		if(!vm.data){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							        				vm.data=res.data.filter(function(item){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									        			return item.isDefault==1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									        			return item.isDefault==1 && vm.hasInpCardNo(item) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
									        		})[0] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							        			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											}else{								 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								        		vm.data=res.data.filter(function(item){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								        			return item.isDefault==1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								        			return item.isDefault==1 && vm.hasInpCardNo(item) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								        		})[0] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											if(!vm.data){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							        			vm.data=res.data[0] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							        			if(!vm.hasInpCardNo(vm.data)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							        				dialog({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											            content: "请先绑定住院就诊卡!",  
			 | 
		
	
		
			
				 | 
				 | 
			
			
											            okValue: '确定', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											            ok: function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
															window.location.href='../../payment/html/patientIDCards.html'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											            }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
											        }).showModal() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							        			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							        		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							        		vm.cardId=vm.data.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							        		vm.getCardInfo() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -200,6 +210,13 @@ var loading = dialog({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        	dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:"支付金额不得超过20000"}).show(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        	this.payMoney=20000 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						    hasInpCardNo:function(item){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						    	var ispass=true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						    	if(Request.paytype==2){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						    		ispass=item.inpCardNo?true:false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						    	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						    	return ispass 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							//跳转切换就诊卡 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							changeCards:function(){ 
			 |