|
@@ -18,7 +18,7 @@
|
|
|
<jp-picker v-model="inputForm.sex" rangeKey="label" rangeValue="value" :range="$dictUtils.getDictList('sex')"></jp-picker>
|
|
|
</u-form-item> -->
|
|
|
<u-form-item label="身份证号码" borderBottom prop="idCard" :required="true">
|
|
|
- <u--input placeholder='请填写身份证号码' v-model="inputForm.idCard" @change="idCardOnly(inputForm.idCard)" ></u--input>
|
|
|
+ <u--input placeholder='请填写身份证号码' v-model="inputForm.idCard" @blur="idCardOnly(inputForm.idCard)" ></u--input>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="性别" borderBottom prop="sex">
|
|
|
<jp-picker v-model="inputForm.sex" rangeKey="label" :disabled="true" rangeValue="value" :range="[
|
|
@@ -80,7 +80,7 @@
|
|
|
</u-form-item>
|
|
|
|
|
|
<u-form-item label="联系电话" borderBottom prop="mobilePhone" :required="true">
|
|
|
- <u--input placeholder='请填写联系电话' @change="mobilePhoneOnly(inputForm.mobilePhone)" maxlength="11" v-model="inputForm.mobilePhone"></u--input>
|
|
|
+ <u--input placeholder='请填写联系电话' @blur="mobilePhoneOnly(inputForm.mobilePhone)" maxlength="11" v-model="inputForm.mobilePhone"></u--input>
|
|
|
</u-form-item>
|
|
|
|
|
|
<u-form-item label="家庭住址" borderBottom prop="homeAddress" >
|
|
@@ -357,7 +357,7 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- saveForm () {
|
|
|
+ async saveForm () {
|
|
|
var flag = false
|
|
|
//定义表单规则
|
|
|
if (this.isNotEmpty(this.inputForm.socialSecurityNumber) && (this.isEmpty(this.inputForm.socialSecurityBankNumber) || isEmpty(this.inputForm.socialSecurityPictureFront))) {
|
|
@@ -397,7 +397,7 @@
|
|
|
this.inputForm.endTime = this.formatDate(this.inputForm.endTime);
|
|
|
}
|
|
|
|
|
|
- enrollmentRegistrationService.findIdCardOnly(this.inputForm.idCard).then((data) => {
|
|
|
+ await enrollmentRegistrationService.findIdCardOnly(this.inputForm.idCard).then((data) => {
|
|
|
if (data !== 0) {
|
|
|
uni.showToast({
|
|
|
title: '身份证号码已存在,请重新确认',
|
|
@@ -406,7 +406,7 @@
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- enrollmentRegistrationService.findMobilePhoneOnly(this.inputForm.mobilePhone).then((data) => {
|
|
|
+ await enrollmentRegistrationService.findMobilePhoneOnly(this.inputForm.mobilePhone).then((data) => {
|
|
|
if (data !== 0) {
|
|
|
uni.showToast({
|
|
|
title: '联系电话已存在,请重新填写',
|