Commit 513e79c2 by 刘泽奇

123

parent 9a1b94ef
...@@ -327,7 +327,7 @@ ...@@ -327,7 +327,7 @@
<div style="clear:both;"></div> <div style="clear:both;"></div>
<el-form-item v-if="apply.customerType==\'person\'" label-width="140px" label="身份证号码" <el-form-item v-if="apply.customerType==\'person\'" label-width="140px" label="身份证号码"
style="width:493px;float:left;padding-right:50px;" prop="identityCardNo"> style="width:493px;float:left;padding-right:50px;" prop="identityCardNo">
<el-input placeHolder="请输入身份证号码" v-model="apply.identityCardNo"> </el-input> <el-input @input="maxCardNo" placeHolder="请输入身份证号码" v-model="apply.identityCardNo"> </el-input>
</el-form-item> </el-form-item>
<div style="clear:both;"></div> <div style="clear:both;"></div>
<el-form-item v-if="apply.customerType==\'person\'" label-width="140px" label="身份证住址" <el-form-item v-if="apply.customerType==\'person\'" label-width="140px" label="身份证住址"
......
...@@ -461,6 +461,12 @@ ...@@ -461,6 +461,12 @@
this.apply.zipCode = this.apply.zipCode.substring(0, 6); this.apply.zipCode = this.apply.zipCode.substring(0, 6);
} }
}, },
maxCardNo(){
if (this.apply.identityCardNo.length > 18) {
console.log(this.apply.identityCardNo);
this.apply.identityCardNo = this.apply.identityCardNo.substring(0, 18);
}
},
maxPhoneNumber(){ maxPhoneNumber(){
if (this.apply.mobile.length > 11) { if (this.apply.mobile.length > 11) {
this.apply.mobile = this.apply.mobile.substring(0, 11); this.apply.mobile = this.apply.mobile.substring(0, 11);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment