From 703c851a45c3e99215564fa1c6d2f4e6a0a4f10a Mon Sep 17 00:00:00 2001
From: zhouhao <787329763@qq.com>
Date: Mon, 10 Jan 2022 21:51:09 +0800
Subject: [PATCH] 完成个人单笔合同签署流程

---
 src/views/main/queryres.vue |  184 +++++++++++++++++++++++++++++++---------------
 1 files changed, 124 insertions(+), 60 deletions(-)

diff --git a/src/views/main/queryres.vue b/src/views/main/queryres.vue
index c4eeacb..2c5b53d 100644
--- a/src/views/main/queryres.vue
+++ b/src/views/main/queryres.vue
@@ -49,68 +49,69 @@
       // let  objForm ={bizId:this.bizId,bizType:this.bizType}
       var t2 = window.setInterval(function () {
         slfe.$api.getBizStatus({bizId:slfe.bizId,bizType:slfe.bizType}).then(res => {
-         this.dataInfo =res.body
-           if(Number(this.bizType) ==0){  //签署授权函
-                if( this.dataInfo.status==1){  //授权人脸未出结果
-                 this.datastr ='活体校验识别中,请稍等.....'
-                 this.signBtn =false
-                  this.ResultIs =false
-                }else if( this.dataInfo.status==2){    //完成个人人脸授信,待签署信息函
-                 this.datastr ='活体校验成功!待签署信息授权函,请稍后.....'
-                 this.signBtn =false
-                  this.ResultIs =false
-                }else if( this.dataInfo.status==201){  //信息授权函签署失败
+         slfe.dataInfo =res.body     
+           if(Number(slfe.bizType) ==0){  //签署授权函
+                if( slfe.dataInfo.status==1){  //授权人脸未出结果
+                 slfe.datastr ='活体校验识别中,请稍等.....'
+                 slfe.signBtn =false
+                  slfe.ResultIs =false
+                }else if( slfe.dataInfo.status==2){    //完成个人人脸授信,待签署信息函
+                 slfe.datastr ='活体校验成功!待签署信息授权函,请稍后.....'
+                 slfe.signBtn =false
+                  slfe.ResultIs =false
+                }else if( slfe.dataInfo.status==201){  //信息授权函签署失败
                  window.clearInterval(t2)  
-                 this.datastr ='活体校验成功!签署信息授权函失败,请重试.....'
-                 this.signBtn =true
-                 this.ResultIs =false
-                }else if( this.dataInfo.status==3){  //完成信息授权函签署
+                 slfe.datastr ='活体校验成功!签署信息授权函失败,请重试.....'
+                 slfe.signBtn =true
+                 slfe.ResultIs =false
+                }else if( slfe.dataInfo.status==3){  //完成信息授权函签署
                 window.clearInterval(t2)  
-                this.$router.push({path:'/main/bancardsucces',query:{bizId:this.bizId,bizType:this.bizType}}) 
-                }else if( this.dataInfo.status==99){
+                slfe.$router.push({path:'/main/bancardsucces',query:{bizId:slfe.bizId,bizType:slfe.bizType}}) 
+                }else if( slfe.dataInfo.status==99){
                    window.clearInterval(t2)
-                   this.datastr ='活体校验失败!请重试.....'
-                   this.signBtn =false
-                   this.ResultIs =true
+                   slfe.datastr ='活体校验失败!请重试.....'
+                   slfe.signBtn =false
+                   slfe.ResultIs =true
                 }
-           }else if(Number(this.bizType) ==1){  //签署借款
-                if( this.dataInfo.status==1){  //授权人脸未出结果
-                 this.datastr ='活体校验识别中,请稍等.....'
-                   this.signBtn =false
-                  this.ResultIs =false
-                }else if( this.dataInfo.status==2){    //完成个人人脸授信,待签署信息函
-                 this.datastr ='活体校验成功!待签署合同,请稍后.....'
-                   this.signBtn =false
-                  this.ResultIs =false
-                }else if( this.dataInfo.status==201){    //完成个人人脸授信,待签署信息函
+           }else if(Number(slfe.bizType) ==1){  //签署借款
+                if( slfe.dataInfo.status==1){  //授权人脸未出结果
+                 slfe.datastr ='活体校验识别中,请稍等.....'
+                   slfe.signBtn =false
+                  slfe.ResultIs =false
+                }else if( slfe.dataInfo.status==2){    //完成个人人脸授信,待签署信息函
+                 slfe.datastr ='活体校验成功!待签署合同,请稍后.....'
+                   slfe.signBtn =false
+                  slfe.ResultIs =false
+                }else if( slfe.dataInfo.status==201){    //完成个人人脸授信,待签署信息函
                   window.clearInterval(t2)
-                  this.datastr ='活体校验成功!签署合同失败,请重试.....'
-                   this.signBtn =true
-                  this.ResultIs =false
-                }else if( this.dataInfo.status==3){  //完成个人单笔合同签署    待分销主体验证
+                  slfe.datastr ='活体校验成功!签署合同失败,请重试.....'
+                   slfe.signBtn =true
+                  slfe.ResultIs =false
+                }else if( slfe.dataInfo.status==3){  //完成个人单笔合同签署    待分销主体验证
                  window.clearInterval(t2)
-                this.$router.push({path:'/',query:{bizId:this.bizId,bizType:this.bizType}})  
-                }else if( this.dataInfo.status==4){  //授权人脸未出结果
-                 this.datastr ='活体校验识别中,请稍等.....'
-                   this.signBtn =false
-                  this.ResultIs =false
-                }else if( this.dataInfo.status==5){  //授权人脸未出结果
-                 this.datastr ='活体校验成功!待签署合同,请稍等.....'
-                   this.signBtn =false
-                  this.ResultIs =false
-                }else if( this.dataInfo.status==501){  //授权人脸未出结果
+                // slfe.$router.push({path:'/',query:{bizId:slfe.bizId,bizType:slfe.bizType}})  
+                  window.location.href ="https://www.qadlj.com/authorizeBack.html"    
+                }else if( slfe.dataInfo.status==4){  //授权人脸未出结果
+                 slfe.datastr ='活体校验识别中,请稍等.....'
+                   slfe.signBtn =false
+                  slfe.ResultIs =false
+                }else if( slfe.dataInfo.status==5){  //授权人脸未出结果
+                 slfe.datastr ='活体校验成功!待签署合同,请稍等.....'
+                   slfe.signBtn =false
+                  slfe.ResultIs =false
+                }else if( slfe.dataInfo.status==501){  //授权人脸未出结果
                   window.clearInterval(t2)  
-                 this.datastr ='活体校验成功!签署合同失败,请重试.....'
-                 this.signBtn =true
-                 this.ResultIs =false
-                }else if( this.dataInfo.status==6){  //完成主体合同签署
+                 slfe.datastr ='活体校验成功!签署合同失败,请重试.....'
+                 slfe.signBtn =true
+                 slfe.ResultIs =false
+                }else if( slfe.dataInfo.status==6){  //完成主体合同签署
                  window.clearInterval(t2)  
-                this.$router.push({path:'/main/bancardsucces',query:{bizId:this.bizId,bizType:this.bizType}}) 
-                }else if( this.dataInfo.status==88 ||  this.dataInfo.status==99){
-                   this.signBtn =false
-                   this.ResultIs =true
+                slfe.$router.push({path:'/main/bancardsucces',query:{bizId:slfe.bizId,bizType:slfe.bizType}}) 
+                }else if( slfe.dataInfo.status==88 ||  slfe.dataInfo.status==99){
+                   slfe.signBtn =false
+                   slfe.ResultIs =true
                    window.clearInterval(t2)
-                   this.datastr ='活体校验失败!请重试.....'
+                   slfe.datastr ='活体校验失败!请重试.....'
                 }          
            }
         })
@@ -160,13 +161,76 @@
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {  
      this.$api.getBizStatus({bizId:this.bizId,bizType:this.bizType}).then(res=>{
-         if(res.body.status == 3  && Number(this.bizType) ==0 || res.body.status ==6 && Number(this.bizType) ==1 ){  //成功直接跳转成功页面
-                this.$router.push({path:'/main/bancardsucces',query:{bizId:this.bizId,bizType:this.bizType}}) 
-         }else if(res.body.status == 3  && Number(this.bizType) ==1){  //待签约分销主体
-                this.$router.push({path:'/',query:{bizId:this.bizId,bizType:this.bizType}})  
-         }else{  //执行定时器
-               this.bankCardNoInit()
-         }    
+        //  if(res.body.status == 3  && Number(this.bizType) ==0 || res.body.status ==6 && Number(this.bizType) ==1 ){  //成功直接跳转成功页面
+        //         this.$router.push({path:'/main/bancardsucces',query:{bizId:this.bizId,bizType:this.bizType}}) 
+        //  }else if(res.body.status == 3  && Number(this.bizType) ==1){  //待签约分销主体
+        //         this.$router.push({path:'/',query:{bizId:this.bizId,bizType:this.bizType}})  
+        //  }else{  //执行定时器
+        //        this.bankCardNoInit()
+        //  }   
+              var slfe = this 
+             if(Number(this.bizType) ==0){  //签署授权函
+                if(res.body.status==1){  //授权人脸未出结果
+                 slfe.datastr ='活体校验识别中,请稍后.....'
+                 slfe.signBtn =false
+                  slfe.ResultIs =false
+                   this.bankCardNoInit()
+                }else if( res.body.status==2){    //完成个人人脸授信,待签署信息函
+                 slfe.datastr ='活体校验成功!待签署信息授权函,请稍后.....'
+                 slfe.signBtn =false
+                  slfe.ResultIs =false
+                   this.bankCardNoInit()
+                }else if( res.body.status==201){  //信息授权函签署失败
+                 slfe.datastr ='活体校验成功!签署信息授权函失败,请重试.....'
+                 slfe.signBtn =true
+                 slfe.ResultIs =false
+                }else if( res.body.status==3){  //完成信息授权函签署
+                slfe.$router.push({path:'/main/bancardsucces',query:{bizId:slfe.bizId,bizType:slfe.bizType}}) 
+                }else if( res.body.status==99){
+                   slfe.datastr ='活体校验失败!请重试.....'
+                   slfe.signBtn =false
+                   slfe.ResultIs =true
+                }
+           }else if(Number(slfe.bizType) ==1){  //签署借款
+                if( res.body.status==1){  //授权人脸未出结果
+                 slfe.datastr ='活体校验识别中,请稍后.....'
+                   slfe.signBtn =false
+                  slfe.ResultIs =false
+                  this.bankCardNoInit()
+                }else if( res.body.status==2){    //完成个人人脸授信,待签署信息函
+                 slfe.datastr ='活体校验成功!待签署合同,请稍后.....'
+                   slfe.signBtn =false
+                  slfe.ResultIs =false
+                  this.bankCardNoInit()
+                }else if( res.body.status==201){    //完成个人人脸授信,待签署信息函
+                  slfe.datastr ='活体校验成功!签署合同失败,请重试.....'
+                   slfe.signBtn =true
+                  slfe.ResultIs =false
+                }else if( res.body.status==3){  //完成个人单笔合同签署    待分销主体验证
+                // slfe.$router.push({path:'/',query:{bizId:slfe.bizId,bizType:slfe.bizType}}) 
+                 window.location.href ="https://www.qadlj.com/authorizeBack.html"  
+                }else if( res.body.status==4){  //授权人脸未出结果
+                 slfe.datastr ='活体校验识别中,请稍等.....'
+                   slfe.signBtn =false
+                  slfe.ResultIs =false
+                 this.bankCardNoInit()
+                }else if(res.body.status==5){  //授权人脸未出结果
+                 slfe.datastr ='活体校验成功!待签署合同,请稍等.....'
+                   slfe.signBtn =false
+                  slfe.ResultIs =false
+                   this.bankCardNoInit()
+                }else if( res.body.status==501){  //授权人脸未出结果
+                 slfe.datastr ='活体校验成功!签署合同失败,请重试.....'
+                 slfe.signBtn =true
+                 slfe.ResultIs =false
+                }else if( res.body.status==6){  //完成主体合同签署 
+                slfe.$router.push({path:'/main/bancardsucces',query:{bizId:slfe.bizId,bizType:slfe.bizType}}) 
+                }else if( res.body.status==88 ||  res.body.status==99){
+                   slfe.signBtn =false
+                   slfe.ResultIs =true
+                   slfe.datastr ='活体校验失败!请重试.....'
+                }          
+           }
      })
   },
   //生命周期 - 挂载完成(可以访问DOM元素)

--
Gitblit v1.8.0