111
lkk
2025-04-09 e4717b437f7b4ef27c9801508f252f811fc65b3e
src/views/system/tijianall/index.vue
@@ -120,7 +120,7 @@
              ]"
            >
              <el-input
              @input="form.cusName = $event.replace(/\s/g, '')"
                @input="form.cusName = $event.replace(/\s/g, '')"
                v-model="form.cusName"
                placeholder="请输入姓名"
                style="width: 99%"
@@ -180,9 +180,12 @@
                  trigger: 'blur',
                },
              ]"
            >
              <el-input v-model="form.cusPhone" placeholder="请输入电话"   @input="form.cusPhone = $event.replace(/\s/g, '')"/>
            >
              <el-input
                v-model="form.cusPhone"
                placeholder="请输入电话"
                @input="form.cusPhone = $event.replace(/\s/g, '')"
              />
            </el-form-item>
            <el-form-item label="婚姻" prop="cusMarryStatus">
@@ -228,7 +231,6 @@
                placeholder="请输入身份证号"
                @input="handleIdCardInput"
                style="width: 190px"
              />
              <!-- <i
                style="font-size: 17px; margin-left: 3px"
@@ -246,8 +248,11 @@
            label-width="106px"
          >
            <el-form-item label="邮箱" prop="cusEmail">
              <el-input v-model="form.cusEmail" placeholder="请输入邮箱"      @input="form.cusEmail = $event.replace(/\s/g, '')"/>
              <el-input
                v-model="form.cusEmail"
                placeholder="请输入邮箱"
                @input="form.cusEmail = $event.replace(/\s/g, '')"
              />
            </el-form-item>
            <el-form-item label="民族" prop="cusNational">
              <el-select
@@ -294,7 +299,11 @@
            label-width="106px"
          >
            <el-form-item label="卡号" prop="indexCard">
              <el-input v-model="form.indexCard" placeholder="请输入卡号"   @input="form.indexCard = $event.replace(/\s/g, '')"/>
              <el-input
                v-model="form.indexCard"
                placeholder="请输入卡号"
                @input="form.indexCard = $event.replace(/\s/g, '')"
              />
            </el-form-item>
            <el-form-item label="职业" prop="career">
              <el-select
@@ -1486,7 +1495,7 @@
        // 如果 dictCompId 没有变化,重置为空
        if (this.form.dictCompId === originalCompId) {
          this.form.dictCompId = '';
          this.form.dictCompId = "";
        }
      }
    },
@@ -1503,9 +1512,9 @@
      }
    },
    handleIdCardInput(value) {
  this.form.cusIdcard = value.replace(/\s/g, '');
  this.inputChange(); // 保留原有的身份证输入处理逻辑
},
      this.form.cusIdcard = value.replace(/\s/g, "");
      this.inputChange(); // 保留原有的身份证输入处理逻辑
    },
    inputChange() {
      const reg =
        /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;