chenyue преди 6 години
родител
ревизия
e83f3f19d5

+ 6 - 4
html/informationSearch/html/waitingDoctorList.html

@ -12,17 +12,18 @@
		<meta name="description" content="">
		<link rel="shortcut icon" href="../../../favicon.ico">
		<link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
		<link rel="stylesheet" type="text/css" href="../../../widget/artDialog/6.0.5/css/ui-dialog.min.css">
		<link rel="stylesheet" href="../css/index.css" />		
	</head>
	<body class="bgc-f2f3f4">
		<div id="app" v-cloak>
			<div class="bgc-fff c-f17 ptb10 pl15 jiuzhen">
				<span class="c-333">DC1326898&nbsp;(张峰)&nbsp;</span>
				<span class="qiehuan-txt">切换</span>
				<span class="c-333">{{data.cardNo}}&nbsp;({{data.name}})&nbsp;</span>
				<span class="qiehuan-txt" @click="changeCards">切换</span>
				<span class="card-icon c-f14" style="float: right;">就诊</span>				
			</div>
			<div class="waitingDoctorList" v-show="length!=0">							
			<div class="waitingDoctorList" v-if="length!=0">							
				<ul class="plr15 pb15">		
					<li class="bgc-fff c-radius-5 jiuzhen mt15">
						<div class="c-fff c-f14 top-div">
@ -62,7 +63,7 @@
					</li>	
				</ul>
			</div>
			<div class="default-div" v-show="length==0">
			<div class="default-div" v-else>
				<img src="../images/wushuju.png" width="222"/>
				<div class="c-999 c-f14 pt30">
					暂无相关排队信息
@ -71,6 +72,7 @@
		</div>
		<script src="../../../js/post.js"></script>
		<script src="../../../widget/artDialog/6.0.5/js/dialog-plus.js"></script>
		<script src="../js/waitingDoctorList.js"></script>
	</body>

+ 82 - 2
html/informationSearch/js/waitingDoctorList.js

@ -1,16 +1,96 @@
var Request = GetRequest();
var checktype=false;
var loading = dialog({
	contentType: 'load',
	skin: 'bk-popup',
});
(function() {
	new Vue({
		el: "#app",
		data: {
			data:{},
			dataList:[],
			length:1,
			code:"",
			TypeList:[{},{type:"jiuzhen",text:"门诊",pretext:"候诊"},{type:"jiancha",text:"检查检验",pretext:"候检"}],
		},
		mounted: function() {
			var vm = this
			checkUserAgent();
			vm.checkType()
			vm.code=JSON.parse(localStorage.getItem("wlyyAgent")).uid
		},
		methods: {
			
			//获取就诊卡
			getData:function(){
				var vm=this
				loading.showModal();
				 sendPost("patient/card/getCardList", {patient:vm.code}, "json", "get",function(){
				 	loading.close();
			    	dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'请求失败'}).show();
			       }, function(res){
				 	loading.close();
			        if(res.status == 200){ 
			        	if(res.data.length>0){			        		
							if(Request.id){																
				        		vm.data=res.data.filter(function(item){
				        			return item.id==Request.id
				        		})[0]
							}else{								
				        		vm.data=res.data.filter(function(item){
				        			return item.isDefault==1
				        		})[0]
				        		if(!vm.data){
				        			vm.data=res.data[0]
				        		}
							}
//			        		vm.queryList.healthNo=vm.data.cardNo
//			        		vm.getList()
			        	}else{
			        		vm.gotoCards()
			        	}
			        }else{
				 	  loading.close();
			          dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'数据获取失败'}).show();
			        }
			    })
			},
			//获取列表数据
			getList:function(){
				var vm=this
				 sendPost("third/hy/pay/gerPayOrderList", vm.queryList, "json", "get",function(){
			   		loading.close();
			    	dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'请求失败'}).show();
			      }, function(res){
			   		loading.close();
			        if(res.status == 200){ 
			        	vm.dataList=JSON.parse(res.data)
			        	vm.length=vm.dataList.length
			        }else{
			          dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'数据获取失败'}).show();
			        }
			    })
			},
			//跳转切换就诊卡
			changeCards:function(){
				window.location.href='../../payment/html/changeCards.html?pre=waitingDoctorList';
			},
			//判断是否验证登录通过
			checkType:function(){
				var vm=this
				var timer = setInterval(function(){
					if(checktype){
						clearInterval(timer);
						vm.getData()
					}
				},10);
			},
		},
	})
})()
})()
function queryInit(){
	checktype=true
}

+ 2 - 2
html/payment/html/patientIDCards-pay.html

@ -27,7 +27,7 @@
						<span class="card-icon" style="float: right;">就诊</span>
					</div>
					<div class="pb10 c-t-center c-ff9526 c-f25">
						¥{{data.cardMoney}}元
						¥{{data.cardMoney?data.cardMoney:0}}元
					</div>
					<div class="pb10 c-999 pr10 c-f12 c-t-right createdata">
						{{data.createDate}} 创建
@ -38,7 +38,7 @@
				</div>
				<div class="bgc-fff mt10 zhuyuan c-radius-5" v-show="data.inpCardNo">
					<div class="c-f14 ptb10 pl10">
						<span class="c-333333">{{data.cardNo}}&nbsp;({{data.name}})&nbsp;</span>
						<span class="c-333333">{{data.inpCardNo}}&nbsp;({{data.name}})&nbsp;</span>
						<span v-if="data.isDefault==1" class="c-4dcd70">默认</span>
						<span class="card-icon" style="float: right;">住院</span>
					</div>

+ 2 - 2
html/payment/html/payment.html

@ -30,8 +30,8 @@
				</div>
				<div class="mt10 pb10">
					<span class="c-333 c-f25" style="position: absolute;line-height: 30px;">¥</span>					
					<span style="position: absolute;right: 15px;margin-top: 5px;"><img src="../images/shanchu_shuru_icon.png" width="20" height="20"/></span>
					<input type="number" v-model="payMoney" class="c-ser-input plr30" style="color: #333333;font-size: 25px;width: initial;" @input="checkNumber(payMoney)"/>
					<span style="position: absolute;right: 15px;margin-top: 5px;width: 30px;height: 30px;text-align: center;"  @click="payMoney=''"><img src="../images/shanchu_shuru_icon.png" width="20" height="20"/></span>
					<input type="number" v-model="payMoney" class="c-ser-input" style="color: #333333;font-size: 25px;width: initial;padding-left: 30px;" @input="checkNumber(payMoney)"/>
				</div>
				<div class="c-ff5e6c pt10 pb15">
					提示:公众号推送充值结果,可查询缴费记录

+ 3 - 2
html/payment/js/changeCards.js

@ -46,10 +46,11 @@ var checktype=false;
	                }
	            })				
			},
			gotoPage:function(id){		
				debugger
			gotoPage:function(id){
				if(Request.pre=="paymentList"){   //跳到缴费查询页面
					window.location.href='../../payment/html/paymentList.html?id='+id;
				}else if(Request.pre=="waitingDoctorList"){   //跳到候诊查询页面
					window.location.href='../../payment/html/waitingDoctorList.html?id='+id;
				}else{
					
				}

+ 1 - 0
html/payment/js/paymentList.js

@ -57,6 +57,7 @@ var loading = dialog({
			        		vm.gotoCards()
			        	}
			        }else{
				 	  loading.close();
			          dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'数据获取失败'}).show();
			        }
			    })