|
|
|
|
@ -189,7 +189,7 @@
|
|
|
|
|
<u-form-item label="单位名称" labelWidth="80" prop="unit" required>
|
|
|
|
|
<u-input placeholder="请输入单位名称" v-model="form.unit"></u-input>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item label="证件类型" labelWidth="80" prop="card_type1" required>
|
|
|
|
|
<!-- <u-form-item label="证件类型" labelWidth="80" prop="card_type1" required>
|
|
|
|
|
|
|
|
|
|
<u-cell-group :border="false">
|
|
|
|
|
<u-cell @click="showCards" :title="card_type_names" :isLink="true"
|
|
|
|
|
@ -198,7 +198,7 @@
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item label="证件号码" labelWidth="80" prop="from.idcard" required>
|
|
|
|
|
<u-input placeholder="请输入证件号码" v-model="form.idcard"></u-input>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</u-form-item> -->
|
|
|
|
|
</block>
|
|
|
|
|
<u-form-item label="手机号" labelWidth="80" prop="mobile" ref="mobile" required>
|
|
|
|
|
<u-input readonly placeholder="请输入手机号" v-model="form.mobile"></u-input>
|
|
|
|
|
@ -228,7 +228,7 @@
|
|
|
|
|
<u-form-item label="姓名" labelWidth="80" prop="name" ref="name" required>
|
|
|
|
|
<u-input placeholder="请输入姓名" v-model="formUser.name"></u-input>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item label="证件类型" labelWidth="80" prop="card_type1" ref="card_type" required>
|
|
|
|
|
<!-- <u-form-item label="证件类型" labelWidth="80" prop="card_type1" ref="card_type" required>
|
|
|
|
|
|
|
|
|
|
<u-cell-group :border="false">
|
|
|
|
|
<u-cell @click="showCard" :title="card_type_name" :isLink="true" arrow-direction="down">
|
|
|
|
|
@ -237,7 +237,7 @@
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item label="证件号码" labelWidth="80" prop="idcard" ref="idcard" required>
|
|
|
|
|
<u-input placeholder="请输入证件号码" v-model="formUser.idcard"></u-input>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</u-form-item> -->
|
|
|
|
|
<u-form-item label="行动不便者" labelWidth="80" prop="is_disability" ref="is_disability">
|
|
|
|
|
<u-radio-group v-model="formUser.is_disability">
|
|
|
|
|
<u-radio width="100%" activeColor="#cf995a" v-for="(item, index) in disabilitys"
|
|
|
|
|
@ -374,16 +374,16 @@
|
|
|
|
|
message: '请输入姓名',
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
}],
|
|
|
|
|
idcard: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请输入证件号',
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
}],
|
|
|
|
|
card_type: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择证件类型',
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
}]
|
|
|
|
|
// idcard: [{
|
|
|
|
|
// required: true,
|
|
|
|
|
// message: '请输入证件号',
|
|
|
|
|
// trigger: 'blur'
|
|
|
|
|
// }],
|
|
|
|
|
// card_type: [{
|
|
|
|
|
// required: true,
|
|
|
|
|
// message: '请选择证件类型',
|
|
|
|
|
// trigger: 'change'
|
|
|
|
|
// }]
|
|
|
|
|
},
|
|
|
|
|
listVistor: [{}, {}],
|
|
|
|
|
showAdd: false,
|
|
|
|
|
@ -707,23 +707,23 @@
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.util.isNull(this.form.idcard)) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: "请填写证件号"
|
|
|
|
|
})
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.form.card_type == 1) {
|
|
|
|
|
if (!this.util.isValidCardID(this.form.idcard)) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: "请正确输入身份证号"
|
|
|
|
|
})
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// if (this.util.isNull(this.form.idcard)) {
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
// icon: "none",
|
|
|
|
|
// title: "请填写证件号"
|
|
|
|
|
// })
|
|
|
|
|
// return false;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// if (this.form.card_type == 1) {
|
|
|
|
|
// if (!this.util.isValidCardID(this.form.idcard)) {
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
// icon: "none",
|
|
|
|
|
// title: "请正确输入身份证号"
|
|
|
|
|
// })
|
|
|
|
|
// return false;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -827,13 +827,13 @@
|
|
|
|
|
this.$refs.formUser.validate().then(res => {
|
|
|
|
|
if (that.formUser.card_type == 1) {
|
|
|
|
|
that.formUser.idcard = that.formUser.idcard.toUpperCase();
|
|
|
|
|
if (!that.util.isValidCardID(that.formUser.idcard)) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: "none",
|
|
|
|
|
title: "请正确输入身份证号"
|
|
|
|
|
})
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
// if (!that.util.isValidCardID(that.formUser.idcard)) {
|
|
|
|
|
// uni.showToast({
|
|
|
|
|
// icon: "none",
|
|
|
|
|
// title: "请正确输入身份证号"
|
|
|
|
|
// })
|
|
|
|
|
// return false;
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!this.util.isNull(this.formUser.mobile)) {
|
|
|
|
|
|