|
|
|
|
@ -492,13 +492,6 @@
|
|
|
|
|
message: "手机号格式错误",
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
idcard: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请输入身份证号'
|
|
|
|
|
},{
|
|
|
|
|
pattern: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
|
|
|
|
|
message: '身份证格式错误'
|
|
|
|
|
}],
|
|
|
|
|
company_name: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请输入单位名称'
|
|
|
|
|
@ -637,7 +630,20 @@
|
|
|
|
|
},
|
|
|
|
|
submit() {
|
|
|
|
|
let that = this
|
|
|
|
|
console.log("that.carsList",that.carsList)
|
|
|
|
|
if(that.form.credent==1){
|
|
|
|
|
const regtest = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
|
|
|
|
|
if(!regtest.test(that.form.idcard)){
|
|
|
|
|
this.$successMessage('身份证格式错误', '','warning')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(that.form.credent==2){
|
|
|
|
|
const regtest = /^([a-zA-z]|[0-9]){5,17}$/
|
|
|
|
|
if(!regtest.test(that.form.idcard)){
|
|
|
|
|
this.$successMessage('护照格式错误', '','warning')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
that.form.follw_people = that.followList
|
|
|
|
|
let _car = []
|
|
|
|
|
for(var k of that.carsList){
|
|
|
|
|
|