|
@@ -175,19 +175,20 @@
|
|
|
</el-dialog>
|
|
|
<!--授权编号激活短信-->
|
|
|
<el-dialog :visible.sync="messageIfShow" width="600px" append-to-body :before-close = "cancelMessages" center>
|
|
|
+ <el-divider content-position="left">cfca签章授权编号激活</el-divider>
|
|
|
<el-form ref="messageForm" :disabled="false" :model="messagesForm" v-if="messageIfShow" label-width="150px" class="demo-form-inline" :inline="true" @submit.native.prevent>
|
|
|
<el-form-item label="验证码" prop="validCode">
|
|
|
<el-input v-model="messagesForm.validCode" style="width: 200px" maxlength="6"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button :disabled="!showCode" type="success" @click="send">点击获取验证码
|
|
|
+ <el-button :disabled="!showCode" type="success" @click="proSend">点击获取验证码
|
|
|
<span v-show="!showCode" class="count">{{countCode}} s</span>
|
|
|
</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="checkCode">确定</el-button>
|
|
|
+ <el-button type="primary" @click="checkProCode">确定</el-button>
|
|
|
<el-button @click="cancelMessages">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -211,7 +212,7 @@ import { listCompanyHandler } from "@/api/common/companyHandler";
|
|
|
import {getCreditDetail,getFile} from "@/api/service/credit/credit";
|
|
|
import {accAdd} from "@/utils/calculation";
|
|
|
import {sendMessage,checkCode,faceAuth,checkFaceAuth} from "@/api/service/credit/message";
|
|
|
-import {cfcaProjectNo} from "@/api/service/credit/cfcaProject";
|
|
|
+import {cfcaProjectNo,projectSendMessage,checkProCode} from "@/api/service/credit/cfcaProject";
|
|
|
import pdfShow from "../credit/pdfShow";
|
|
|
import {getToken} from "@/utils/auth";
|
|
|
export default {
|
|
@@ -820,6 +821,115 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ //生成项目授权编号发送短信
|
|
|
+ proSend(){
|
|
|
+ //发送
|
|
|
+ projectSendMessage().then((response) => {
|
|
|
+ if(response.data){
|
|
|
+ //手机号
|
|
|
+ var newIphone = response.data.newIphone;
|
|
|
+ //结果
|
|
|
+ var result = response.data.result;
|
|
|
+ //项目编号
|
|
|
+ this.projectCode = response.data.projectCode;
|
|
|
+ //倒计时
|
|
|
+ const TIME_COUNT = 60;
|
|
|
+ if (!this.timerCode) {
|
|
|
+ this.countCode = TIME_COUNT;
|
|
|
+ this.showCode = false;
|
|
|
+ this.timerCode = setInterval(() => {
|
|
|
+ if (this.countCode > 0 && this.countCode <= TIME_COUNT) {
|
|
|
+ this.countCode--;
|
|
|
+ } else {
|
|
|
+ this.showCode = true;
|
|
|
+ clearInterval(this.timerCode);
|
|
|
+ this.timerCode = null;
|
|
|
+ }
|
|
|
+ }, 1000)
|
|
|
+ }
|
|
|
+ //成功
|
|
|
+ if("60000000" == result){
|
|
|
+ this.$message({
|
|
|
+ message: "已向经办人手机号为"+newIphone+"发送短信验证码,请注意查收",
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ }else{//失败
|
|
|
+ this.$message({
|
|
|
+ message: "短信发送失败",
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //校验授权编号验证码
|
|
|
+ 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){
|
|
|
+ var zfrId= this.zfrId
|
|
|
+ listChargeStatus(zfrId).then((response) => {
|
|
|
+ if(response.data[0]){
|
|
|
+ if(response.data[0].zciStatus == '00'){
|
|
|
+ this.$confirm(
|
|
|
+ '请缴纳手续费'+ this.needPay + '元',
|
|
|
+ "警告",
|
|
|
+ {
|
|
|
+ confirmButtonText: "去缴费",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }
|
|
|
+ ).then(function () {
|
|
|
+ return updateChargeStatus(zfrId);
|
|
|
+ }).then(() =>{
|
|
|
+ //选择签署意愿
|
|
|
+ if(this.zfpAuthType == "00"){
|
|
|
+ this.confirmIsShow = true;
|
|
|
+ }else{
|
|
|
+ this.checking();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ //选择签署意愿
|
|
|
+ if(this.zfpAuthType == "00"){
|
|
|
+ this.confirmIsShow = true;
|
|
|
+ }else{
|
|
|
+ this.checking();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ //选择签署意愿
|
|
|
+ if(this.zfpAuthType == "00"){
|
|
|
+ this.confirmIsShow = true;
|
|
|
+ }else{
|
|
|
+ this.checking();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }else {//不匹配
|
|
|
+ this.$message({
|
|
|
+ message: "验证有误,请重新输入",
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
//盖章
|
|
|
contractSigning(){
|
|
|
const loading = this.$loading({
|