Browse Source

电子健康卡住院号?

chenyue 5 years ago
parent
commit
dd1c4f4a79

+ 5 - 0
html/payment/js/changeCards.js

@ -33,6 +33,11 @@ var checktype=false;
			        	if(Request.paytype==2){			        		
			        		vm.dataList=res.data.filter(function(item){
			        			item.cardNo=item.inpCardNo
			        			item.divClass="zhuyuan"
                                item.divName="住院"
			        			if(item.type=="2"){
                                    item.cardNo=item.inpCardNo.substr(0,1)+"*************"+item.inpCardNo.substr(item.inpCardNo.length-4,4)
                                }
			        			var isInpStatus=item.inpStatus==0||item.inpStatus==1    //
			        			return item.inpCardNo && isInpStatus
			        		})

+ 1 - 1
html/payment/js/electronicHealthCard.js

@ -118,7 +118,7 @@ var checktype=false;
            setCardInfo(){
                var vm = this
                var data=vm.data
                vm.cardNo=data.cardNo.substr(0,1)+"*************"+data.cardNo.substr(data.cardNo.length-5,4)
                vm.cardNo=data.cardNo.substr(0,1)+"*************"+data.cardNo.substr(data.cardNo.length-4,4)
                if(data.idCard){
                    var sexType=data.idCard.length==18?data.idCard.substr(data.idCard.length-2,1):data.idCard.substr(data.idCard.length-1,1)
                    if(parseInt(sexType)%2==1){

+ 3 - 0
html/payment/js/patientIDCards-pay.js

@ -96,6 +96,9 @@ var loading = dialog({
			        	vm.data=res.data                  
			        	if(vm.data.type=="2"){
                            vm.data.cardNo=vm.data.cardNo.substr(0,1)+"*************"+vm.data.cardNo.substr(vm.data.cardNo.length-4,4)
                            if(vm.data.inpCardNo){
                                vm.data.inpCardNo=vm.data.inpCardNo.substr(0,1)+"*************"+vm.data.inpCardNo.substr(vm.data.inpCardNo.length-4,4)
                            }
                        }
//						if(vm.length>0){
//							vm.$nextTick(function(){

+ 15 - 3
html/payment/js/payment.js

@ -13,7 +13,7 @@ var loading = dialog({
			payMoney:"",
			repayAmout:Request.repayAmout,
			cardNo:"",
			paytype:Request.paytype, //paytype 1为门诊缴费  2为住院缴费
			paytype:Request.paytype?Request.paytype:"1", //paytype 1为门诊缴费  2为住院缴费
			surplusMoney:"",
			data:{},
			code:"",
@ -98,7 +98,10 @@ var loading = dialog({
			        	vm.data=res.data 
			        	if(vm.paytype=="2"){			        		
			        		vm.surplusMoney=vm.data.cardInpMoney?vm.data.cardInpMoney:0
			        		vm.cardNo=vm.data.inpCardNo
			        		vm.cardNo=vm.data.inpCardNo			        		                                                                
                            if(vm.data.type=="2"){
                                vm.cardNo=vm.data.inpCardNo.substr(0,1)+"*************"+vm.data.inpCardNo.substr(vm.data.inpCardNo.length-4,4)
                            }
			        	}else{
			        		vm.surplusMoney=vm.data.cardMoney?vm.data.cardMoney:0
			        		vm.cardNo=vm.data.cardNo			        		                                     
@ -130,6 +133,7 @@ var loading = dialog({
						}).showModal()
					}else{						
						loading.showModal();
//						vm.wxReady()
						if(judgeWxVersion()){
							vm.getWeixinSign()
						}
@ -173,9 +177,17 @@ var loading = dialog({
			},			
			wxReady:function(){
				var vm=this
				var cardNo=vm.cardNo
				if(vm.data.type=="2"){
				    if(vm.paytype=="2"){
				        cardNo=vm.data.inpCardNo
				    }else{
				        cardNo=vm.data.cardNo
				    }
				}
				var params = {
					patient:vm.data.patient,
					healthNo:vm.cardNo,
					healthNo:cardNo,
					healthType:vm.paytype,
					payAmount:parseFloat(vm.payMoney).toFixed(2),
					spbillCreateIp:returnCitySN["cip"],