Prechádzať zdrojové kódy

企业认证流程修改

cuixq 3 rokov pred
rodič
commit
ba5b8d506b
1 zmenil súbory, kde vykonal 145 pridanie a 121 odobranie
  1. 145 121
      front-vue/src/views/system/company/certification.vue

+ 145 - 121
front-vue/src/views/system/company/certification.vue

@@ -1043,126 +1043,127 @@ export default {
     },
     /** 查询企业状态 */
     getList() {
-      cashBack().then((response) => {
-        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;
+      cashBack()
+        .then((response) => {
+          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.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){
+            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) {
+              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);
             }
-            this.$set(this.form, "handler", response.data.user.nickName);
-          }
-          if (response.data.list.scyStatus == "03") {
-            this.$set(
-              this.form,
-              "pbaiBankaccountId",
-              response.data.data[0].pbaiBankaccountId
-            );
-            this.$set(
-              this.form,
-              "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.form,
-              "handlerCard",
-              response.data.userCompany[0].sucrCard
-            );
-            if (response.data) {
+            if (response.data.list.scyStatus == "03") {
+                    this.active = 1;
+            } else if (response.data.list.scyStatus == "04") {
+              this.$set(
+                this.form,
+                "pbaiBankaccountId",
+                response.data.data[0].pbaiBankaccountId
+              );
+              this.$set(
+                this.form,
+                "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.form,
+                "handlerCard",
+                response.data.userCompany[0].sucrCard
+              );
+              if (response.data) {
+              }
+              this.active = 2;
+            } else if (response.data.list.scyStatus == "05") {
+              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
+              );
+              this.active = 3;
             }
-            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
-            );
-            this.active = 3;
           }
-        }
-      }).catch((response) => {
-        console.log("response"+response)
-        if(response == "Error: 登录状态已过期"){
-         this.$router.push({ path: this.redirect || "/" });
-        }
+        })
+        .catch((response) => {
+          if (response == "Error: 登录状态已过期") {
+            this.$router.push({ path: this.redirect || "/" });
+          }
         });
     },
     //查询银行名称
@@ -1625,9 +1626,9 @@ export default {
     },
     //保存
     preservation() {
-      this.$store.dispatch('LogOut').then(() => {
-        location.href = '/login';
-      })
+      this.$store.dispatch("LogOut").then(() => {
+        location.href = "/login";
+      });
     },
     // 下一步
     next() {
@@ -1660,11 +1661,33 @@ export default {
           addAuthentication(this.form)
             .then((response) => {
               loading.close();
-              this.msgSuccess("验证成功");
-              this.$set(this.form, "scyId", response.data.scyId);
-              this.active++;
+              if (response.data == "skip") {
+                this.$confirm("四要素未通过,是否跳过?", "提示", {
+                  confirmButtonText: "跳过",
+                  cancelButtonText: "不跳过",
+                  type: "warning",
+                }).then(() => {
+                  this.form.skip = "00";
+                  addAuthentication(this.form)
+                    .then((response) => {
+                      loading.close();
+                      this.msgSuccess("验证成功");
+                      this.$set(this.form, "scyId", response.data.scyId);
+                      this.active++;
+                    })
+                    .catch((response) => {
+                      loading.close();
+                    });
+                });
+              } else {
+                console.log(response);
+                this.msgSuccess("验证成功");
+                this.$set(this.form, "scyId", response.data.scyId);
+                this.active++;
+              }
             })
             .catch((response) => {
+              console.log(response);
               loading.close();
             });
         }
@@ -1709,6 +1732,7 @@ export default {
         });
         verification(this.form)
           .then((response) => {
+            console.log(response);
             loading.close();
             this.msgSuccess("验证成功");
             this.active++;