|
|
@@ -136,11 +136,14 @@
|
|
|
</div>
|
|
|
</el-upload>
|
|
|
</el-col>
|
|
|
- <el-col :span="12" style="margin-top:2%;margin-left:2%;line-height: 34px; text-align:left;">
|
|
|
+ <el-col :span="12" v-if="scyCfcaUserId" style="margin-top:2%;margin-left:2%;line-height: 34px; text-align:left;">
|
|
|
CFCA企业认证证书:<span>{{scyCfcaUserId}}</span>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
+ <el-col :span="12" style="margin-top:2%;margin-left:2%;line-height: 34px; text-align:left;">
|
|
|
+ CFCA授权编号:<span v-if="scyCfcaAuthNumber">{{scyCfcaAuthNumber}}</span><button v-else @click="openWindows">开炮</button>
|
|
|
+ </el-col>
|
|
|
<!-- <el-upload v-if="commitmentShow" ref="upload" class="upload-demo" action=""
|
|
|
:on-preview="handleFilePreview" multiple :file-list="commitmentFileList" :auto-upload="false">
|
|
|
</el-upload> -->
|
|
|
@@ -334,11 +337,28 @@
|
|
|
<el-dialog :visible.sync="dialogVisible">
|
|
|
<img width="100%" :src="dialogImageUrl" alt="">
|
|
|
</el-dialog>
|
|
|
+ <!--短信-->
|
|
|
+ <el-dialog :visible.sync="messageIsShow" width="800px" append-to-body :before-close = "cancelMessage" center>
|
|
|
+ <el-form ref="messageForm" :disabled="false" :model="messageForm" v-if="messageIsShow" label-width="150px" class="demo-form-inline" :inline="true" @submit.native.prevent>
|
|
|
+ <el-form-item label="验证码" prop="validCode">
|
|
|
+ <el-input v-model="messageForm.validCode" style="width: 200px" maxlength="6" oninput="value=value.replace(/[^\d]/g,'')"/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button v-show="messShow" type="success" @click="send">点击获取验证码</el-button>
|
|
|
+ <el-button v-show="!messShow" type="success" disabled><span>{{timer}}</span>秒后重新获取</el-button>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="checkCode">确定</el-button>
|
|
|
+ <el-button @click="cancelMessage">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</el-tabs>
|
|
|
</template>
|
|
|
<script>
|
|
|
import {
|
|
|
- companyQuery,listRel
|
|
|
+ companyQuery,listRel,sendMessage,checkCode
|
|
|
} from "@/api/service/companyInformation/companyInformation";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
export default {
|
|
|
@@ -346,9 +366,18 @@ export default {
|
|
|
components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- scyCfcaUserId:"121212121212",
|
|
|
+ scyCfcaUserId:null,
|
|
|
+ scyCfcaAuthNumber:null,
|
|
|
dialogImageUrl: "",
|
|
|
dialogVisible: false,
|
|
|
+ //短信展示
|
|
|
+ messageIsShow:false,
|
|
|
+ //短信
|
|
|
+ messageForm:{validCode:""},
|
|
|
+ //控制短信验证码倒计时是否展示
|
|
|
+ messShow:true,
|
|
|
+ timer:60,
|
|
|
+ cfcaNumber:null,
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
form: {
|
|
|
@@ -504,7 +533,88 @@ export default {
|
|
|
row.launchScrStatus
|
|
|
);
|
|
|
},
|
|
|
+ openWindows(){
|
|
|
+ this.messageIsShow = true;
|
|
|
+ },
|
|
|
+ //发送短信验证码
|
|
|
+ send(){
|
|
|
+ //发送
|
|
|
+ sendMessage().then((response) => {
|
|
|
+ if(response.data){
|
|
|
+ //手机号
|
|
|
+ var newIphone = response.data.newIphone;
|
|
|
+ //结果
|
|
|
+ var result = response.data.result;
|
|
|
+ this.cfcaNumber = response.data.cfcaNumber;
|
|
|
+ this.messShow = false;
|
|
|
+ this.auth_timer = window.setInterval(() => {
|
|
|
+ this.messShow = false;
|
|
|
+ setTimeout(() => {
|
|
|
+ this.timer--;
|
|
|
+ if(this.timer <= 0 ){
|
|
|
+ this.messShow = true;
|
|
|
+ clearInterval(this.auth_timer);
|
|
|
+ }
|
|
|
+ }, 0)
|
|
|
+ },1000)
|
|
|
+ //成功
|
|
|
+ if("60000000" == result){
|
|
|
+ this.$message({
|
|
|
+ message: "已向经办人手机号为"+newIphone+"发送短信验证码,请注意查收",
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ }else{//失败
|
|
|
+ this.$message({
|
|
|
+ message: "短信发送失败",
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //校验验证码是否正确
|
|
|
+ checkCode(){
|
|
|
+ if(!this.messageForm.validCode){
|
|
|
+ this.$message({
|
|
|
+ message: "请输入验证码",
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.messageForm.cfcaNumber = this.cfcaNumber;
|
|
|
+ //校验验证码
|
|
|
+ checkCode(this.messageForm).then((response) => {
|
|
|
+ if(response.data){
|
|
|
+ //结果
|
|
|
+ var verification = response.data.verification;
|
|
|
+ //匹配
|
|
|
+ if("60000000" == verification){
|
|
|
+ this.messageIsShow = false;
|
|
|
+ //激活成功
|
|
|
+ this.getList()
|
|
|
+ // this.contractSigning();
|
|
|
+ }else{//不匹配
|
|
|
+ this.$message({
|
|
|
+ message: "验证有误,请重新输入",
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //关闭短信
|
|
|
+ cancelMessage(){
|
|
|
+ this.messageIsShow = false;
|
|
|
+ this.resetMessage();
|
|
|
+ },
|
|
|
+ resetMessage() {
|
|
|
+ this.messageForm = {
|
|
|
+ validCode:""
|
|
|
+ };
|
|
|
+ this.resetForm("messageForm");
|
|
|
+ },
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
companyQuery().then((response) => {
|
|
|
@@ -512,6 +622,10 @@ export default {
|
|
|
if (response.data.basicList.length > 0) {
|
|
|
this.form = response.data.basicList[0];
|
|
|
this.scyCfcaUserId = this.form.scyCfcaUserId;
|
|
|
+ if(response.data.basicList[0].scyCfcaAuthNumber){
|
|
|
+ this.scyCfcaAuthNumber = this.form.scyCfcaAuthNumber;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
//经办人信息
|
|
|
if (response.data.contactsList) {
|