|
@@ -203,6 +203,23 @@
|
|
|
<el-button @click="cancelMessage">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <!--授权编号的短信框-->
|
|
|
+ <el-dialog :visible.sync="projectIsShow" width="800px" append-to-body :before-close = "cancelProject" center>
|
|
|
+ <el-form ref="projectForm" :disabled="false" :model="projectForm" v-if="projectIsShow" label-width="150px" class="demo-form-inline" :inline="true">
|
|
|
+ <el-form-item label="验证码" prop="code">
|
|
|
+ <el-input v-model="projectForm.code" style="width: 200px" maxlength="6" oninput="value=value.replace(/[^\d]/g,'')"/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button v-show="proShow" type="success" @click="proSend">点击获取验证码</el-button>
|
|
|
+ <el-button v-show="!proShow" type="success" disabled><span>{{proTimer}}</span>秒后重新获取</el-button>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="checkProCode">确定</el-button>
|
|
|
+ <el-button @click="cancelProject">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
<!--人脸二维码-->
|
|
|
<el-dialog :visible.sync="faceIsShow" width="500px" append-to-body :before-close = "cancelFace" center>
|
|
|
<img :src="'data:image/jpeg;base64,' + this.fileUrl" style="overflow: auto; width: 100%; height: 100%;"/>
|
|
@@ -219,6 +236,7 @@ import {getCreditDetail,getFile} from "@/api/service/credit/credit";
|
|
|
import {accAdd} from "@/utils/calculation";
|
|
|
import {getContractFile,sealRefuse,getCreditSealFile} from "@/api/service/credit/creditHandle";
|
|
|
import {sendMessage,checkCode,faceAuth,checkFaceAuth,contractSigning} from "@/api/service/credit/message";
|
|
|
+import {cfcaProjectNo,projectSendMessage,checkProCode} from "@/api/service/credit/cfcaProject";
|
|
|
import pdfShow from "./pdfShow";
|
|
|
import {getToken} from "@/utils/auth";
|
|
|
export default {
|
|
@@ -295,7 +313,17 @@ export default {
|
|
|
//融信状态
|
|
|
zfiStatus:'',
|
|
|
//盖章文件
|
|
|
- creditSealList:[]
|
|
|
+ creditSealList:[],
|
|
|
+ //生成授权编号的短信框
|
|
|
+ projectIsShow:false,
|
|
|
+ //短信
|
|
|
+ projectForm:{code:""},
|
|
|
+ //控制倒计时是否展示
|
|
|
+ proShow:true,
|
|
|
+ //时间
|
|
|
+ proTimer:60,
|
|
|
+ //项目编号
|
|
|
+ projectCode:""
|
|
|
};
|
|
|
},
|
|
|
activated() {
|
|
@@ -487,6 +515,11 @@ export default {
|
|
|
this.messageIsShow = false;
|
|
|
this.resetMessage();
|
|
|
},
|
|
|
+ //关闭短信
|
|
|
+ cancelProject(){
|
|
|
+ this.projectIsShow = false;
|
|
|
+ this.resetProject();
|
|
|
+ },
|
|
|
//关闭二维码
|
|
|
cancelFace(){
|
|
|
this.faceIsShow = false;
|
|
@@ -502,6 +535,10 @@ export default {
|
|
|
this.messShow = true;
|
|
|
clearInterval(this.auth_timer);
|
|
|
this.timer = 60;
|
|
|
+
|
|
|
+ this.proShow = true;
|
|
|
+ clearInterval(this.auth_pro_timer);
|
|
|
+ this.proTimer = 60;
|
|
|
},
|
|
|
resetMessage() {
|
|
|
this.messageForm = {
|
|
@@ -509,6 +546,12 @@ export default {
|
|
|
};
|
|
|
this.resetForm("messageForm");
|
|
|
},
|
|
|
+ resetProject(){
|
|
|
+ this.projectForm = {
|
|
|
+ code:""
|
|
|
+ };
|
|
|
+ this.resetForm("projectForm");
|
|
|
+ },
|
|
|
//获取合同文件
|
|
|
getContractFile(){
|
|
|
const loading = this.$loading({
|
|
@@ -537,28 +580,40 @@ export default {
|
|
|
},
|
|
|
//选择类型
|
|
|
selectType(){
|
|
|
- this.resetUpdate();
|
|
|
- /**
|
|
|
- * 申请确权:融资审批通过+核心通过+平台通过+融信待确权||
|
|
|
- * 核心开立:核心审批通过+其余状态为空
|
|
|
- * 融资开立:融资通过+平台通过+其余状态为空
|
|
|
- *
|
|
|
- */
|
|
|
- //调用人脸
|
|
|
- if( (this.zfiSupplierStatus == '01' && this.zfiCoreStatus == '01' && this.zfiPlatformStatus == '01' && this.zfiStatus == '00') ||
|
|
|
- (this.zfiCoreStatus == '01' && (this.zfiSupplierStatus == '' || this.zfiSupplierStatus == null || this.zfiSupplierStatus == 'null') && (this.zfiPlatformStatus == '' || this.zfiPlatformStatus == null || this.zfiPlatformStatus == 'null') && (this.zfiStatus == '' || this.zfiStatus == null || this.zfiStatus == 'null'))||
|
|
|
- (this.zfiSupplierStatus == '01' && this.zfiPlatformStatus == '01' && (this.zfiCoreStatus == '' || this.zfiCoreStatus == null || this.zfiCoreStatus == 'null') && (this.zfiStatus == '' || this.zfiStatus == null || this.zfiStatus == 'null'))){
|
|
|
- //选择签署意愿
|
|
|
- if(this.zfpAuthType == "00"){
|
|
|
- this.confirmIsShow = true;
|
|
|
+ //查询当前企业是否存在企业授权编号
|
|
|
+ cfcaProjectNo().then((response) => {
|
|
|
+ //存在授权编号
|
|
|
+ if(response.data.scyCfcaAuthNumber){
|
|
|
+ /**
|
|
|
+ * 申请确权:融资审批通过+核心通过+平台通过+融信待确权||
|
|
|
+ * 核心开立:核心审批通过+其余状态为空
|
|
|
+ * 融资开立:融资通过+平台通过+其余状态为空
|
|
|
+ *
|
|
|
+ */
|
|
|
+ this.resetUpdate();
|
|
|
+ //调用人脸
|
|
|
+ if( (this.zfiSupplierStatus == '01' && this.zfiCoreStatus == '01' && this.zfiPlatformStatus == '01' && this.zfiStatus == '00') ||
|
|
|
+ (this.zfiCoreStatus == '01' && (this.zfiSupplierStatus == '' || this.zfiSupplierStatus == null || this.zfiSupplierStatus == 'null') && (this.zfiPlatformStatus == '' || this.zfiPlatformStatus == null || this.zfiPlatformStatus == 'null') && (this.zfiStatus == '' || this.zfiStatus == null || this.zfiStatus == 'null'))||
|
|
|
+ (this.zfiSupplierStatus == '01' && this.zfiPlatformStatus == '01' && (this.zfiCoreStatus == '' || this.zfiCoreStatus == null || this.zfiCoreStatus == 'null') && (this.zfiStatus == '' || this.zfiStatus == null || this.zfiStatus == 'null'))){
|
|
|
+ //选择签署意愿
|
|
|
+ if(this.zfpAuthType == "00"){
|
|
|
+ this.confirmIsShow = true;
|
|
|
+ }else{
|
|
|
+ this.checking();
|
|
|
+ }
|
|
|
+
|
|
|
}else{
|
|
|
- this.checking();
|
|
|
+ //直接盖章
|
|
|
+ this.contractSigning();
|
|
|
}
|
|
|
+ }else{
|
|
|
+ //不存在授权编号
|
|
|
+ //发送短信验证码认证
|
|
|
+ this.projectIsShow = true;
|
|
|
|
|
|
- }else{
|
|
|
- //直接盖章
|
|
|
- this.contractSigning();
|
|
|
- }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
},
|
|
|
//文件下载
|
|
|
handleDownload(row){
|
|
@@ -678,6 +733,45 @@ export default {
|
|
|
});
|
|
|
|
|
|
},
|
|
|
+
|
|
|
+ //生成项目授权编号发送短信
|
|
|
+ proSend(){
|
|
|
+ //发送
|
|
|
+ projectSendMessage().then((response) => {
|
|
|
+ if(response.data){
|
|
|
+ //手机号
|
|
|
+ var newIphone = response.data.newIphone;
|
|
|
+ //结果
|
|
|
+ var result = response.data.result;
|
|
|
+ //项目编号
|
|
|
+ this.projectCode = response.data.projectCode;
|
|
|
+ this.proShow = false;
|
|
|
+ this.auth_pro_timer = window.setInterval(() => {
|
|
|
+ this.proShow = false;
|
|
|
+ setTimeout(() => {
|
|
|
+ this.timer--;
|
|
|
+ if(this.timer <= 0 ){
|
|
|
+ this.proShow = true;
|
|
|
+ clearInterval(this.auth_pro_timer);
|
|
|
+ }
|
|
|
+ }, 0)
|
|
|
+ },1000)
|
|
|
+ //成功
|
|
|
+ if("60000000" == result){
|
|
|
+ this.$message({
|
|
|
+ message: "已向经办人手机号为"+newIphone+"发送短信验证码,请注意查收",
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ }else{//失败
|
|
|
+ this.$message({
|
|
|
+ message: "短信发送失败",
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
//校验验证码是否正确
|
|
|
checkCode(){
|
|
|
if(!this.messageForm.validCode){
|
|
@@ -811,6 +905,56 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ //校验授权编号验证码
|
|
|
+ checkProCode(){
|
|
|
+ if(!this.projectForm.code){
|
|
|
+ this.$message({
|
|
|
+ message: "请输入验证码",
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ //项目编号
|
|
|
+ this.projectForm.projectCode = this.projectCode;
|
|
|
+ //校验验证码
|
|
|
+ checkProCode(this.projectForm).then((response) => {
|
|
|
+ if(response.data){
|
|
|
+ //结果
|
|
|
+ var verification = response.data.verification;
|
|
|
+ //匹配
|
|
|
+ if("60000000" == verification){
|
|
|
+ /**
|
|
|
+ * 申请确权:融资审批通过+核心通过+平台通过+融信待确权||
|
|
|
+ * 核心开立:核心审批通过+其余状态为空
|
|
|
+ * 融资开立:融资通过+平台通过+其余状态为空
|
|
|
+ *
|
|
|
+ */
|
|
|
+ this.resetUpdate();
|
|
|
+ //调用人脸
|
|
|
+ if( (this.zfiSupplierStatus == '01' && this.zfiCoreStatus == '01' && this.zfiPlatformStatus == '01' && this.zfiStatus == '00') ||
|
|
|
+ (this.zfiCoreStatus == '01' && (this.zfiSupplierStatus == '' || this.zfiSupplierStatus == null || this.zfiSupplierStatus == 'null') && (this.zfiPlatformStatus == '' || this.zfiPlatformStatus == null || this.zfiPlatformStatus == 'null') && (this.zfiStatus == '' || this.zfiStatus == null || this.zfiStatus == 'null'))||
|
|
|
+ (this.zfiSupplierStatus == '01' && this.zfiPlatformStatus == '01' && (this.zfiCoreStatus == '' || this.zfiCoreStatus == null || this.zfiCoreStatus == 'null') && (this.zfiStatus == '' || this.zfiStatus == null || this.zfiStatus == 'null'))){
|
|
|
+ //选择签署意愿
|
|
|
+ if(this.zfpAuthType == "00"){
|
|
|
+ this.confirmIsShow = true;
|
|
|
+ }else{
|
|
|
+ this.checking();
|
|
|
+ }
|
|
|
+
|
|
|
+ }else{
|
|
|
+ //直接盖章
|
|
|
+ this.contractSigning();
|
|
|
+ }
|
|
|
+ }else {//不匹配
|
|
|
+ this.$message({
|
|
|
+ message: "验证有误,请重新输入",
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
};
|