Browse Source

企业认证bug修改

cuixq 3 years ago
parent
commit
e2773e6282

+ 58 - 11
front-vue/src/views/system/company/certification.vue

@@ -193,6 +193,8 @@
                     >
                     </el-date-picker> -->
                     <el-date-picker
+                      v-if="!term"
+                      :disabled='term'
                       :clearable="false"
                       v-model="form.scyEndTime"
                       value-format="yyyy-MM-dd"
@@ -200,7 +202,16 @@
                       type="date"
                       style="width: 206px"
                     ></el-date-picker>
-                    <el-checkbox v-model="term">长期有效</el-checkbox>
+                    <el-date-picker
+                    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>
                   </div>
                 </el-col>
               </el-row>
@@ -326,14 +337,14 @@
               </el-main>
             </el-container>
           </el-main>
-          <el-main>
-            <el-row style="margin-top: 3%" v-if="legalHandle==false">
+          <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 v-if="legalHandle==false">
+            <el-container >
               <el-aside width="220px" style="background-color: #fff">
                 <span style="font-size: 14px"
                   ><span class="separation"></span>身份证人像面</span
@@ -662,7 +673,7 @@
                   v-model="form.pbaiBankaccountId"
                   placeholder="请输入银行账号"
                   style="width: 65%"
-                  maxlength="20"
+                  maxlength="25"
                 ></el-input>
               </el-col>
             </el-row>
@@ -675,11 +686,11 @@
           <el-main>
             <el-row>
               <el-col :span="8"
-                >打款金额:<el-input
+                >打款金额(元):<el-input
                   v-model="form.amount"
-                  placeholder="请输入打款金额"
+                  placeholder="请输入打款金额(元)"
                   style="width: 65%"
-                  maxlength="2"
+                  maxlength="4"
                 ></el-input>
               </el-col>
               <el-col :span="8"
@@ -747,9 +758,10 @@
                   placeholder="请输入内容"
                   style="width: 62%"
                 ></el-input>
-                <el-button type="primary" @click="submitForm"
+                <el-button type="primary" @click="submitForm" v-if="!verification"
                   >获取验证码</el-button
                 >
+                <el-button v-if="verification">{{count}}秒后重试</el-button>
               </el-col>
             </el-row>
           </el-main>
@@ -810,7 +822,9 @@ export default {
   name: "GoodsAdd",
   data() {
     return {
-      //图片预览
+     codeShow: true,  //判断显示隐藏
+     count: '',     //显示时的文字内容
+     timer: null,    
       // 表单参数
       form: {},
       //法人经办
@@ -821,6 +835,8 @@ export default {
       confirm:false,
       //无法输入
       disabled: true,
+      //验证码
+      verification:false,
       // 完成跳转
       redirect: undefined,
            // 弹出层标题
@@ -1483,8 +1499,31 @@ export default {
       this.open = true;
       this.title = "融信协议";
     },
-    /** 提交按钮 */
+    /** 发送验证码 */
     submitForm() {
+      //点击获取验证码
+      const TIME_COUNT = 5;  //倒计时60秒
+      console.log(TIME_COUNT)
+      if (!this.timer) {
+        this.count = TIME_COUNT;
+        this.codeShow = false;
+        console.log(this.count)
+        this.timer = setInterval(() => {
+          if (this.count > 0 && this.count <= TIME_COUNT) {
+            this.count--;
+            if(this.count==0){
+              this.verification =false; 
+               clearInterval(this.timer);
+              this.timer = null;
+            }
+          } else {
+            this.codeShow = true;
+            clearInterval(this.timer);
+            this.timer = null;
+          }
+        }, 1000);
+      }
+      this.verification =true;
       const loading = this.$loading({
         lock: true,
         text: "Loading",
@@ -1524,6 +1563,14 @@ export default {
         this.form.frsqsList = this.frsqsList;
         this.form.szzssqList = this.szzssqList;
         this.form.qtfjList = this.qtfjList;
+        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",

+ 14 - 0
front-vue/src/views/system/fundSide/fundSide.vue

@@ -410,6 +410,20 @@ export default {
             trigger: ["change", "blur"],
           },
         ],
+          smiType: [
+          {
+            required: true,
+            message: "资金方类型不能为空",
+            trigger: ["change", "blur"],
+          },
+        ],
+        smiAgreementType: [
+          {
+            required: true,
+            message: "合作协议签署不能为空",
+            trigger: ["change", "blur"],
+          },
+        ],
         scySocialCode: [
           {
             required: true,