瀏覽代碼

企业认证调用修改

cuixq 3 年之前
父節點
當前提交
ecf1308fab
共有 2 個文件被更改,包括 222 次插入133 次删除
  1. 211 129
      front-vue/src/views/system/company/certification.vue
  2. 11 4
      front-vue/src/views/system/fundSide/fundSide.vue

+ 211 - 129
front-vue/src/views/system/company/certification.vue

@@ -194,7 +194,7 @@
                     </el-date-picker> -->
                     <el-date-picker
                       v-if="!term"
-                      :disabled='term'
+                      :disabled="term"
                       :clearable="false"
                       v-model="form.scyEndTime"
                       value-format="yyyy-MM-dd"
@@ -203,15 +203,15 @@
                       style="width: 206px"
                     ></el-date-picker>
                     <el-date-picker
-                    v-if="term"
-                      :disabled='term'
+                      v-if="term"
+                      :disabled="term"
                       :clearable="false"
                       value-format="yyyy-MM-dd"
                       placeholder="请选择营业期限"
                       type="date"
                       style="width: 206px"
                     ></el-date-picker>
-                    <el-checkbox v-model="term" >长期有效</el-checkbox>
+                    <el-checkbox v-model="term">长期有效</el-checkbox>
                   </div>
                 </el-col>
               </el-row>
@@ -337,14 +337,14 @@
               </el-main>
             </el-container>
           </el-main>
-          <el-main v-show="legalHandle==false">
-            <el-row style="margin-top: 3%" >
+          <el-main v-show="legalHandle == false">
+            <el-row style="margin-top: 3%">
               <span style="font-size: 14px"
                 ><span class="separation"></span>账号管理员身份证件</span
               ><span>(请按照要求上传经办人身份证证件图片)</span
               ><span style="color: #005cff">请核对系统识别结果是否正确</span>
             </el-row>
-            <el-container >
+            <el-container>
               <el-aside width="220px" style="background-color: #fff">
                 <span style="font-size: 14px"
                   ><span class="separation"></span>身份证人像面</span
@@ -451,7 +451,7 @@
                 ><span class="separation"></span>人员信息</span
               >
             </el-row>
-            <el-row  v-if="legalHandle">
+            <el-row v-if="legalHandle">
               <el-col :span="12"
                 >复核人员:<el-input
                   v-model="form.scyLegal"
@@ -469,7 +469,7 @@
                 ></el-input>
               </el-col>
             </el-row>
-             <el-row v-if="!legalHandle">
+            <el-row v-if="!legalHandle">
               <el-col :span="12"
                 >复核人员:<el-input
                   v-model="form.handler"
@@ -513,7 +513,7 @@
               >
             </el-row>
             <el-upload
-            v-if="!legalHandle"
+              v-if="!legalHandle"
               ref="frsqsload"
               class="upload-demo"
               action=""
@@ -620,7 +620,7 @@
 
           <el-footer>
             <el-checkbox v-model="confirm">我已阅读并同意</el-checkbox
-            ><a  @click="handle">《xxxxxxxx融信协议》</a>
+            ><a @click="handle">《xxxxxxxx融信协议》</a>
           </el-footer>
         </el-container>
         <el-dialog :visible.sync="yyzzVisible">
@@ -656,17 +656,30 @@
                 >银行开户名称:<el-input
                   v-model="form.scyName"
                   placeholder="请输入银行开户名称"
-                  :disabled='disabled'
+                  :disabled="disabled"
                   style="width: 65%"
                   maxlength="20"
                 ></el-input>
               </el-col>
               <el-col :span="8"
                 >开户银行:
-              <el-select v-model="form.pbaiBankName" filterable clearable remote reserve-keyword placeholder="请选择银行姓名" :remote-method="getBankList" >
-                  <el-option v-for="(item,index) in bankList" :key="index" :label="item.zcbiBankName" :value="item.zcbiId" >
+                <el-select
+                  v-model="form.pbaiBankName"
+                  filterable
+                  clearable
+                  remote
+                  reserve-keyword
+                  placeholder="请选择银行姓名"
+                  :remote-method="getBankList"
+                >
+                  <el-option
+                    v-for="(item, index) in bankList"
+                    :key="index"
+                    :label="item.zcbiBankName"
+                    :value="item.zcbiBankName"
+                  >
                   </el-option>
-              </el-select>
+                </el-select>
               </el-col>
               <el-col :span="8"
                 >银行账号:<el-input
@@ -707,37 +720,36 @@
         <el-container>
           <el-main>
             <el-row>
-              <el-col :span="8"  v-if="legalHandle"
+              <el-col :span="8" v-if="legalHandle"
                 >经办人姓名:<el-input
                   v-model="form.scyLegal"
                   placeholder="请输入经办人姓名"
                   style="width: 62%"
-                  :disabled='disabled'
+                  :disabled="disabled"
                   maxlength="20"
                 ></el-input>
               </el-col>
               <el-col :span="8" v-if="!legalHandle"
-                >经办人姓名:<el-input  
+                >经办人姓名:<el-input
                   v-model="form.handler"
                   placeholder="请输入经办人姓名"
                   style="width: 62%"
-                  :disabled='disabled'
+                  :disabled="disabled"
                   maxlength="20"
                 ></el-input>
               </el-col>
-              <el-col :span="8"  v-if="legalHandle"
+              <el-col :span="8" v-if="legalHandle"
                 >身份证号码:<el-input
                   v-model="form.scyLegalId"
-                
-                  :disabled='disabled'
+                  :disabled="disabled"
                   placeholder="请输入内容"
                   style="width: 62%"
                 ></el-input>
               </el-col>
-                     <el-col :span="8"  v-if="!legalHandle"
+              <el-col :span="8" v-if="!legalHandle"
                 >身份证号码:<el-input
                   v-model="form.handlerCard"
-                     :disabled='disabled'
+                  :disabled="disabled"
                   placeholder="请输入内容"
                   style="width: 62%"
                 ></el-input>
@@ -745,7 +757,7 @@
               <el-col :span="8"
                 >手机号:<el-input
                   v-model="form.phone"
-                  :disabled='disabled'
+                  :disabled="disabled"
                   placeholder="请输入内容"
                   style="width: 62%"
                 ></el-input>
@@ -758,10 +770,13 @@
                   placeholder="请输入内容"
                   style="width: 62%"
                 ></el-input>
-                <el-button type="primary" @click="submitForm" v-if="!verification"
+                <el-button
+                  type="primary"
+                  @click="submitForm"
+                  v-if="!verification"
                   >获取验证码</el-button
                 >
-                <el-button v-if="verification">{{count}}秒后重试</el-button>
+                <el-button v-if="verification">{{ count }}秒后重试</el-button>
               </el-col>
             </el-row>
           </el-main>
@@ -779,7 +794,7 @@
         <el-button
           style="float: right; margin-top: 12px; margin-right: 1%"
           v-if="active == 2"
-           @click="step"
+          @click="step"
           >上一步</el-button
         >
         <el-button
@@ -796,7 +811,7 @@
         >
       </div>
     </div>
-        <!-- 合同 -->
+    <!-- 合同 -->
     <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
       <div slot="footer" class="dialog-footer">
         <el-button @click="cancel">关闭</el-button>
@@ -814,33 +829,33 @@ import {
   verification,
   addCode,
   cashBack,
-  listBank
+  listBank,
 } from "@/api/system/authentication";
 import { uploadFileNew } from "@/api/common/file";
-import { getToken } from "@/utils/auth";
-import { getRepeatToken } from '@/utils/common';
+import { getToken, removeToken } from "@/utils/auth";
+import { getRepeatToken } from "@/utils/common";
 export default {
   name: "GoodsAdd",
   data() {
     return {
-     codeShow: true,  //判断显示隐藏
-     count: '',     //显示时的文字内容
-     timer: null,    
+      codeShow: true, //判断显示隐藏
+      count: "", //显示时的文字内容
+      timer: null,
       // 表单参数
       form: {},
       //法人经办
-      legalHandle:false,
+      legalHandle: false,
       //是否长期
-      term:false,
+      term: false,
       //是否确认
-      confirm:false,
+      confirm: false,
       //无法输入
       disabled: true,
       //验证码
-      verification:false,
+      verification: false,
       // 完成跳转
       redirect: undefined,
-           // 弹出层标题
+      // 弹出层标题
       title: "",
       // 是否显示弹出层
       open: false,
@@ -907,8 +922,8 @@ export default {
       representative: "",
       credit: "",
       queryParams: {
-      pageNum: 1,
-      pageSize: 10,
+        pageNum: 1,
+        pageSize: 10,
       },
       pickerOptions: {
         disabledDate(time) {
@@ -960,7 +975,7 @@ export default {
       value1: "",
       value2: "",
       value3: "",
-      repeatToken : getRepeatToken()
+      repeatToken: getRepeatToken(),
     };
   },
   created() {
@@ -1029,13 +1044,88 @@ export default {
     /** 查询企业状态 */
     getList() {
       cashBack().then((response) => {
-        if(response.data) {
+        if (response.data) {
           this.form = response.data.list;
-             if (response.data.list.scyEndTime != null) {
-                if(response.data.list.scyEndTime=="长期"||response.data.list.scyEndTime=="永久"){
-                  this.term = true
+          if (response.data.list.scyEndTime != null) {
+            if (
+              response.data.list.scyEndTime == "长期" ||
+              response.data.list.scyEndTime == "永久"
+            ) {
+              this.term = true;
             }
           }
+          if (response.data.yyzzUrl) {
+            this.yyzzList.push({
+              name: "营业执照",
+              url: response.data.yyzzUrl + "/" + getToken(),
+            });
+            this.yyzzBtnImg = true;
+          }
+          if (response.data.fsfzzUrl) {
+            this.fsfzzList.push({
+              name: "法人身份证人像面",
+              url: response.data.fsfzzUrl + "/" + getToken(),
+            });
+            this.fsfzzBtnImg = true;
+          }
+          if (response.data.fsfzzUrl) {
+            this.fsfzfList.push({
+              name: "法人身份证国徽面",
+              url: response.data.fsfzfUrl + "/" + getToken(),
+            });
+            this.fsfzfBtnImg = true;
+          }
+          if (response.data.frsqsUrl) {
+            this.frsqsList.push({
+              name: "法人授权书",
+              url: response.data.frsqsUrl + "/" + getToken(),
+            });
+            this.frsqsBtnImg = true;
+          }
+          if (response.data.szzssqUrl) {
+            this.szzssqList.push({
+              name: "数字证书授权与承诺书",
+              url: response.data.szzssqUrl + "/" + getToken(),
+            });
+            this.szzssqBtnImg = true;
+          }
+          if (response.data.qtfjUrl) {
+            this.qtfjList.push({
+              name: "其他附件",
+              url: response.data.qtfjUrl + "/" + getToken(),
+            });
+            this.qtfjBtnImg = true;
+          }
+          if (response.data.jsfzzUrl) {
+            this.jsfzzList.push({
+              name: "经办人身份证人像面",
+              url: response.data.jsfzzUrl + "/" + getToken(),
+            });
+            this.jsfzzBtnImg = true;
+          }
+          if (response.data.jsfzfUrl) {
+            this.jsfzfList.push({
+              name: "经办人身份证国徽面",
+              url: response.data.jsfzfUrl + "/" + getToken(),
+            });
+            this.jsfzfBtnImg = true;
+          }
+          if(response.data.userCompany){
+           this.$set(
+              this.form,
+              "handlerCard",
+              response.data.userCompany[0].sucrCard
+            );
+          }
+          if(response.data.user){
+            console.log(response.data.user)
+
+            this.$set(this.form, "phone", response.data.user.userName);
+            if(response.data.user.nickName==response.data.list.scyLegal){
+                this.legalHandle = true;
+            }
+            this.$set(this.form, "handler", response.data.user.nickName);
+          }
           if (response.data.list.scyStatus == "03") {
             this.$set(
               this.form,
@@ -1047,37 +1137,20 @@ export default {
               "pbaiBankName",
               response.data.data[0].pbaiBankName
             );
-                 this.$set(
-              this.form,
-              "phone",
-              response.data.user.userName
-            );
-                    this.$set(
-              this.form,
-              "handler",
-              response.data.user.nickName
-            );
-                       this.$set(
+            this.$set(this.form, "phone", response.data.user.userName);
+            this.$set(this.form, "handler", response.data.user.nickName);
+            this.$set(
               this.form,
               "handlerCard",
               response.data.userCompany[0].sucrCard
             );
-            if(response.data){
-
+            if (response.data) {
             }
-            this.active = 1;
-          }else if(response.data.list.scyStatus == "04"){
-                     this.$set(
-              this.form,
-              "phone",
-              response.data.user.userName
-            );
-                    this.$set(
-              this.form,
-              "handler",
-              response.data.user.nickName
-            );
-                       this.$set(
+            this.active = 2;
+          } else if (response.data.list.scyStatus == "04") {
+            this.$set(this.form, "phone", response.data.user.userName);
+            this.$set(this.form, "handler", response.data.user.nickName);
+            this.$set(
               this.form,
               "handlerCard",
               response.data.userCompany[0].sucrCard
@@ -1085,15 +1158,20 @@ export default {
             this.active = 3;
           }
         }
-      });
-    },
-      //查询银行名称
-    getBankList(query){
-        this.queryParams.pbaiBankName = query;
-        listBank(this.queryParams).then((response) => {
-            this.bankList = response.data;
+      }).catch((response) => {
+        console.log("response"+response)
+        if(response == "Error: 登录状态已过期"){
+         this.$router.push({ path: this.redirect || "/" });
+        }
         });
     },
+    //查询银行名称
+    getBankList(pbaiBankName) {
+      this.queryParams.pbaiBankName = pbaiBankName;
+      listBank(this.queryParams).then((response) => {
+        this.bankList = response.data;
+      });
+    },
     //文件移除提示
     beforeRemove(file, yyzzList) {
       for (let i = 0; i < this.yyzzList.length; i++) {
@@ -1309,9 +1387,11 @@ export default {
             this.$set(this.form, "scyStartTime", response.data.scyStartTime);
           }
           if (response.data.scyEndTime != null) {
-            console.log(response.data.scyEndTime)
-             if(response.data.scyEndTime=="长期"||response.data.scyEndTime=="永久"){
-                  this.term = true
+            if (
+              response.data.scyEndTime == "长期" ||
+              response.data.scyEndTime == "永久"
+            ) {
+              this.term = true;
             }
             this.$set(this.form, "scyEndTime", response.data.scyEndTime);
           }
@@ -1488,28 +1568,28 @@ export default {
         }
       });
     },
-       // 取消按钮
+    // 取消按钮
     cancel() {
       this.open = false;
     },
-        /** 融信协议 */
-    handle(){
+    /** 融信协议 */
+    handle() {
       this.open = true;
       this.title = "融信协议";
     },
     /** 发送验证码 */
     submitForm() {
       //点击获取验证码
-      const TIME_COUNT = 60;  //倒计时60秒
+      const TIME_COUNT = 60; //倒计时60秒
       if (!this.timer) {
         this.count = TIME_COUNT;
         this.codeShow = false;
         this.timer = setInterval(() => {
           if (this.count > 0 && this.count <= TIME_COUNT) {
             this.count--;
-            if(this.count==0){
-              this.verification =false; 
-               clearInterval(this.timer);
+            if (this.count == 0) {
+              this.verification = false;
+              clearInterval(this.timer);
               this.timer = null;
             }
           } else {
@@ -1519,7 +1599,7 @@ export default {
           }
         }, 1000);
       }
-      this.verification =true;
+      this.verification = true;
       const loading = this.$loading({
         lock: true,
         text: "Loading",
@@ -1540,52 +1620,54 @@ export default {
       window.location.href = "http://localhost:8080/template/template.xlsx";
     },
     //上一步
-    step(){
-        this.active=1;
+    step() {
+      this.active = 1;
     },
     //保存
-    preservation(){
-      this.$router.push({ path: this.redirect || "/" });
+    preservation() {
+      this.$store.dispatch('LogOut').then(() => {
+        location.href = '/login';
+      })
     },
     // 下一步
     next() {
       if (this.active == 0) {
-        if(!this.confirm){
-        this.$message.error("融信协议未确认!");
-        }else{
-        this.form.yyzzList = this.yyzzList;
-        this.form.fsfzfList = this.fsfzfList;
-        this.form.jsfzfList = this.jsfzfList;
-        this.form.frsqsList = this.frsqsList;
-        this.form.szzssqList = this.szzssqList;
-        this.form.qtfjList = this.qtfjList;
-        this.form.repeatToken = this.repeatToken;
+        if (!this.confirm) {
+          this.$message.error("融信协议未确认!");
+        } else {
+          this.form.yyzzList = this.yyzzList;
+          this.form.fsfzfList = this.fsfzfList;
+          this.form.jsfzfList = this.jsfzfList;
+          this.form.frsqsList = this.frsqsList;
+          this.form.szzssqList = this.szzssqList;
+          this.form.qtfjList = this.qtfjList;
+          this.form.repeatToken = this.repeatToken;
 
-        if(this.term){
-            this.form.scyEndTime="长期";
-        }
-        if(!this.legalHandle){
-            this.form.legalHandle="1";
-        }else{
-           this.form.legalHandle="2";
-        }
-        const loading = this.$loading({
-          lock: true,
-          text: "Loading",
-          spinner: "el-icon-loading",
-          background: "rgba(0, 0, 0, 0.7)",
-        });
-        addAuthentication(this.form)
-          .then((response) => {
-            loading.close();
-            this.msgSuccess("验证成功");
-            this.$set(this.form, "scyId", response.data.scyId);
-            this.active++;
-          })
-          .catch((response) => {
-            loading.close();
-          });
+          if (this.term) {
+            this.form.scyEndTime = "长期";
           }
+          if (!this.legalHandle) {
+            this.form.legalHandles = "1";
+          } else {
+            this.form.legalHandles = "2";
+          }
+          const loading = this.$loading({
+            lock: true,
+            text: "Loading",
+            spinner: "el-icon-loading",
+            background: "rgba(0, 0, 0, 0.7)",
+          });
+          addAuthentication(this.form)
+            .then((response) => {
+              loading.close();
+              this.msgSuccess("验证成功");
+              this.$set(this.form, "scyId", response.data.scyId);
+              this.active++;
+            })
+            .catch((response) => {
+              loading.close();
+            });
+        }
       } else if (this.active == 1) {
         const loading = this.$loading({
           lock: true,

+ 11 - 4
front-vue/src/views/system/fundSide/fundSide.vue

@@ -45,7 +45,6 @@
             size="small"
             @keyup.enter.native="handleQuery"
             maxlength="15"
-            show-word-limit
           />
         </el-form-item>
         <el-form-item label="资金方类型" align="center" prop="smiType">
@@ -66,7 +65,6 @@
             size="small"
             @keyup.enter.native="handleQuery"
             maxlength="15"
-            show-word-limit
           />
         </el-form-item>
         <el-form-item label="联系人姓名" prop="smiContract">
@@ -77,7 +75,6 @@
             size="small"
             @keyup.enter.native="handleQuery"
             maxlength="15"
-            show-word-limit
           />
         </el-form-item>
         <el-form-item label="联系人电话" prop="smiContractPhone">
@@ -88,7 +85,6 @@
             size="small"
             @keyup.enter.native="handleQuery"
             maxlength="15"
-            show-word-limit
           />
         </el-form-item>
       </el-form>
@@ -437,6 +433,11 @@ export default {
             message: "客户经理不能为空",
             trigger: ["change", "blur"],
           },
+             {
+            pattern: /^[\u2E80-\u9FFF]|\w|[,,\.。]+$/,
+            message: "客户经理不能含有特殊字符",
+            trigger: "blur",
+          }
         ],
         smiContract: [
           {
@@ -444,6 +445,11 @@ export default {
             message: "联系人姓名不能为空",
             trigger: ["change", "blur"],
           },
+             {
+            pattern: /^[\u2E80-\u9FFF]|\w|[,,\.。]+$/,
+            message: "联系人姓名不能含有特殊字符",
+            trigger: "blur",
+          }
         ],
         smiContractPhone: [
           {
@@ -558,6 +564,7 @@ export default {
              this.noneBtnImg = true;
         }
         this.open = true;
+        this.disableds = false;
         this.disabled = true;
         this.title = "修改资金方";
       });