Browse Source

为维山的号增加同步按钮

chenyue 5 years ago
parent
commit
dd354228c9

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

@ -65,7 +65,13 @@
                        <img src="../images/tiaozhuan_icon.png" width="7" height="14" class="fr mr15 mt5" />                       
                    </div>
                </div>
			</div>			
                <div class="c-border-b flex bgc-fff c-positon-r" v-if="patient=='d675213b952548f2ae5306e95a811352'">
                    <div class="f_g_1 ptb12 plr15"  @click="synchronization">
                        <img src="../images/jiaofeijiesuan_icon.png" style="width: 19px;margin-top: 2px;"/>
                        <span class="c-f17 pl20 c-positon-a" >同步电子卡</span>                       
                    </div>
                </div>
			</div>
		</div>
		<script src="../../../js/post.js"></script>

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

@ -1,4 +1,5 @@
var Request = GetRequest(); 
var d = dialog({ contentType: 'load', skin: 'bk-popup' });
var checktype=false;
(function() {
	myvue=new Vue({
@ -115,7 +116,7 @@ var checktype=false;
                    }
                })                
            },
            setCardInfo(){
            setCardInfo:function(){
                var vm = this
                var data=vm.data
                vm.cardNo=data.cardNo.substr(0,1)+"*************"+data.cardNo.substr(data.cardNo.length-4,4)
@ -137,6 +138,18 @@ var checktype=false;
            },
            gotoPay:function(id){
                window.location.href='../../payment/html/patientIDCards-pay.html?id='+id;
            },
            synchronization:function(){   //维山专用,同步his电子健康卡
                d.show();
                sendPost("/third/hr/registerEle/archive/all", {}, "json", "get",function(){
                  }, function(res){
                    d.close();
                    if(res.status == 200){
                      dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:res.msg}).show();
                    }else{
                      dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'数据同步失败'}).show();
                    }
                })    
            },
			//判断是否验证登录通过
			checkType:function(){