Browse Source

身份证有效期格式,添加负责人信息

gcz 2 years ago
parent
commit
d59c08142d
1 changed files with 29 additions and 0 deletions
  1. 29 0
      src/views/register.vue

+ 29 - 0
src/views/register.vue

@@ -81,6 +81,7 @@
                 <el-date-picker
                   v-model="form.idcardStartDate"
                   type="date"
+                  value-format="yyyy-MM-dd"
                   placeholder="请选择身份证有效期开始时间"
                 >
                 </el-date-picker>
@@ -91,6 +92,7 @@
                 <el-date-picker
                   v-model="form.idcardEndDate"
                   type="date"
+                  value-format="yyyy-MM-dd"
                   placeholder="请选择身份证有效期结束时间"
                 >
                 </el-date-picker>
@@ -211,6 +213,24 @@
                       placeholder="企业简称"
                     ></el-input>
                   </div> </el-form-item
+              ></el-col>
+               <el-col :span="12"
+                ><el-form-item label="">
+                  <div class="inner-wrap">
+                    <el-input
+                      v-model="form.linkUser"
+                      placeholder="负责人"
+                    ></el-input>
+                  </div> </el-form-item
+              ></el-col>
+              <el-col :span="12"
+                ><el-form-item label="" prop="linkPhone">
+                  <div class="inner-wrap">
+                    <el-input
+                      v-model="form.linkPhone"
+                      placeholder="负责人联系电话"
+                    ></el-input>
+                  </div> </el-form-item
               ></el-col>
               <el-col :span="24"
                 ><el-form-item label="">
@@ -426,6 +446,14 @@ export default {
             trigger: "blur",
           },
         ],
+        linkPhone: [
+          {
+            required: true,
+            pattern: /^(?:(?:\+|00)86)?1\d{10}$/,
+            message: "请输入正确手机号",
+            trigger: "blur",
+          },
+        ],
         registerCode: [
           { required: true, message: "请输入验证码", trigger: "blur" },
         ],
@@ -478,6 +506,7 @@ export default {
   },
   methods: {
     goStep2() {
+      console.log('form',this.form);
       this.$refs["form"].validate((valid) => {
         if (valid) {
           this.stepActive = 2;