Parcourir la source

企业认证流程修改

cuixq il y a 4 ans
Parent
commit
c6b2e7f2c8

+ 7 - 0
front-vue/src/api/system/authentication.js

@@ -67,6 +67,13 @@ export function cashBack() {
     method: 'post'
   })
 }
+// 查询对公户开户时间
+export function corporateTime() {
+  return request({
+    url: '/system/companyAuth/corporateTime',
+    method: 'post'
+  })
+}
 //查询cfca银行列表(分页)下拉框
 export function listBank(query) {
   return request({

+ 35 - 28
front-vue/src/views/system/company/certification.vue

@@ -855,6 +855,7 @@ import {
   addCode,
   cashBack,
   listBank,
+  corporateTime
 } from "@/api/system/authentication";
 import { uploadFileNew } from "@/api/common/file";
 import { getToken, removeToken } from "@/utils/auth";
@@ -1170,8 +1171,21 @@ export default {
                 "handlerCard",
                 response.data.userCompany[0].sucrCard
               );
-              if (response.data) {
-              }
+              corporateTime().then((response) => {
+               if(response.data=="01"){
+                   this.$confirm(
+                  "本次打款验证已失效,请重新核对对公账户后再次打款验证",
+                  "提示",
+                  {
+                    confirmButtonText: "确认",
+                    cancelButtonText: "关闭",
+                    type: "warning",
+                  }
+                ).then(() => {
+                });
+                this.active = 1;
+               }
+              });
               this.active = 2;
             } else if (response.data.list.scyStatus == "04") {
               this.$set(this.form, "phone", response.data.user.userName);
@@ -1501,20 +1515,17 @@ export default {
       let fileObj = param.file; // 相当于input里取得的files
       let fd = new FormData(); // FormData 对象
       fd.append("file", fileObj); // 文件对象
-      fd.append("fileType", "00"); //文件类型
+      fd.append("fileType", "02"); //文件类型
       const loading = this.$loading({
         lock: true,
         text: "Loading",
         spinner: "el-icon-loading",
         background: "rgba(0, 0, 0, 0.7)",
       });
-      uploadFileNew(fd)
+       getCard(fd)
         .then((response) => {
           if (response) {
-            this.fsfzfList.push({
-              uid: response.fileId,
-              url: response.url + "/" + getToken(),
-            });
+            this.$set(this.form, "fsfzfList", response.data.fsfzfList);
             setTimeout(() => {
               loading.close();
             }, 2000);
@@ -1568,20 +1579,17 @@ export default {
       let fileObj = param.file; // 相当于input里取得的files
       let fd = new FormData(); // FormData 对象
       fd.append("file", fileObj); // 文件对象
-      fd.append("fileType", "00"); //文件类型
+      fd.append("fileType", "03"); //文件类型
       const loading = this.$loading({
         lock: true,
         text: "Loading",
         spinner: "el-icon-loading",
         background: "rgba(0, 0, 0, 0.7)",
       });
-      uploadFileNew(fd)
+       getCard(fd)
         .then((response) => {
           if (response) {
-            this.jsfzfList.push({
-              uid: response.fileId,
-              url: response.url + "/" + getToken(),
-            });
+            this.$set(this.form, "jsfzfList", response.data.jsfzfList);
             setTimeout(() => {
               loading.close();
             }, 2000);
@@ -1770,13 +1778,10 @@ export default {
           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 = "长期";
           } else if (!this.form.scyEndTime) {
@@ -1872,17 +1877,19 @@ export default {
           confirmButtonText: "打款认证",
           cancelButtonText: "关闭",
           type: "warning",
-        }).then(() => {
-          addAccount(this.form)
-            .then((response) => {
-              loading.close();
-              this.msgSuccess("申请成功");
-              this.active++;
-            })
-            .catch((response) => {
-              loading.close();
-            });
-        }) .catch((response) => {
+        })
+          .then(() => {
+            addAccount(this.form)
+              .then((response) => {
+                loading.close();
+                this.msgSuccess("申请成功");
+                this.active++;
+              })
+              .catch((response) => {
+                loading.close();
+              });
+          })
+          .catch((response) => {
             loading.close();
           });
       } else if (this.active == 2) {

+ 8 - 8
front-vue/src/views/system/fundSide/fundSide.vue

@@ -407,9 +407,9 @@ export default {
             trigger: ["change", "blur"],
           },
           {
-            pattern: /^[\u2E80-\u9FFF]|\w|[,,\.。]+$/,
+            pattern: /^[0-9A-Z\u4E00-\u9FFF《》()()-]+$/,
             message: "资金方名称不能含有特殊字符",
-            trigger: "blur",
+            trigger:  ["change", "blur"],
           },
         ],
         smiAddress: [
@@ -419,9 +419,9 @@ export default {
             trigger: ["change", "blur"],
           },
                   {
-            pattern: /^[\u2E80-\u9FFF]|\w|[,,\.。]+$/,
+            pattern: /^[\u4e00-\u9fa5\(\)()\da-zA-Z&]{2,50}$/gi,
             message: "资金方网点不能含有特殊字符",
-            trigger: "blur",
+            trigger:  ["change", "blur"],
           },
         ],
         smiType: [
@@ -452,9 +452,9 @@ export default {
             trigger: ["change", "blur"],
           },
           {
-            pattern: /^[\u2E80-\u9FFF]|\w|[,,\.。]+$/,
+            pattern: /^[\u4e00-\u9fa5\(\)()\da-zA-Z&]{2,50}$/gi,
             message: "客户经理不能含有特殊字符",
-            trigger: "blur",
+            trigger:  ["change", "blur"],
           },
         ],
         smiContract: [
@@ -464,9 +464,9 @@ export default {
             trigger: ["change", "blur"],
           },
           {
-            pattern: /^[\u2E80-\u9FFF]|\w|[,,\.。]+$/,
+            pattern: /^[\u4e00-\u9fa5\(\)()\da-zA-Z&]{2,50}$/gi,
             message: "联系人姓名不能含有特殊字符",
-            trigger: "blur",
+            trigger: ["change", "blur"],
           },
         ],
         smiContractPhone: [