|
|
@ -84,12 +84,12 @@ |
|
|
|
v-model="formData.mobile"> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="身份证号" |
|
|
|
<el-form-item label="证件号" |
|
|
|
prop="idCard" |
|
|
|
label-width="150px" |
|
|
|
style="display: block"> |
|
|
|
<el-input class="item_width_2" |
|
|
|
placeholder="请输入身份证号" |
|
|
|
placeholder="请输入身份证号或护照号" |
|
|
|
clearable |
|
|
|
:disabled="isFromResi" |
|
|
|
v-model="formData.idCard"> |
|
|
@ -249,9 +249,9 @@ export default { |
|
|
|
icNatId: '', |
|
|
|
formData: { |
|
|
|
icNatId: '', |
|
|
|
agencyId: '',//当前网格所属组织Id |
|
|
|
userId: '',//居民端小程序的用户id、数字社区的icResiUserId、其他情况无值 |
|
|
|
userType: 'icresi',//居民端小程序的人:resi;数字社区的居民:icresi;导入的:import;同步的:synchro |
|
|
|
agencyId: '',//当前网格所属组织Id |
|
|
|
userId: '',//居民端小程序的用户id、数字社区的icResiUserId、其他情况无值 |
|
|
|
userType: 'icresi',//居民端小程序的人:resi;数字社区的居民:icresi;导入的:import;同步的:synchro |
|
|
|
name: '', |
|
|
|
idCard: '', |
|
|
|
mobile: '', |
|
|
@ -262,9 +262,9 @@ export default { |
|
|
|
channel: [], |
|
|
|
content: '', |
|
|
|
|
|
|
|
fileName: '',//附件名 |
|
|
|
attachmentType: '',//附件类型((图片 - image、 视频 - video、 语音 - voice、 文档 - doc)) |
|
|
|
attachmentUrl: '',//附件地址 |
|
|
|
fileName: '',//附件名 |
|
|
|
attachmentType: '',//附件类型((图片 - image、 视频 - video、 语音 - voice、 文档 - doc)) |
|
|
|
attachmentUrl: '',//附件地址 |
|
|
|
}, |
|
|
|
|
|
|
|
fileList: [], |
|
|
@ -449,12 +449,12 @@ export default { |
|
|
|
}) |
|
|
|
return false; |
|
|
|
} |
|
|
|
const regCard = /(^\d{15}$)|(^\d{17}(\d|X)$)/; //身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X |
|
|
|
const regCard = /(^\d{15}$)|(^\d{17}(\d|X)$)|(^[a-zA-Z]{2}\d{7}$|^[a-zA-Z]{1}\d{8}$))/; //证件号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X |
|
|
|
if (regCard.test(this.formData.idCard) === false) { |
|
|
|
this.btnDisable = false |
|
|
|
this.$message({ |
|
|
|
type: 'warning', |
|
|
|
message: '请输入正确的身份证号码' |
|
|
|
message: '请输入正确的证件号码' |
|
|
|
}) |
|
|
|
return false; |
|
|
|
} |
|
|
@ -581,9 +581,9 @@ export default { |
|
|
|
|
|
|
|
this.formData = { |
|
|
|
icNatId: '', |
|
|
|
agencyId: '',//当前网格所属组织Id |
|
|
|
userId: '',//居民端小程序的用户id、数字社区的icResiUserId、其他情况无值 |
|
|
|
userType: 'icresi',//居民端小程序的人:resi;数字社区的居民:icresi;导入的:import;同步的:synchro |
|
|
|
agencyId: '',//当前网格所属组织Id |
|
|
|
userId: '',//居民端小程序的用户id、数字社区的icResiUserId、其他情况无值 |
|
|
|
userType: 'icresi',//居民端小程序的人:resi;数字社区的居民:icresi;导入的:import;同步的:synchro |
|
|
|
name: '', |
|
|
|
idCard: '', |
|
|
|
mobile: '', |
|
|
@ -594,9 +594,9 @@ export default { |
|
|
|
channel: [], |
|
|
|
content: '', |
|
|
|
|
|
|
|
fileName: '',//附件名 |
|
|
|
attachmentType: '',//附件类型((图片 - image、 视频 - video、 语音 - voice、 文档 - doc)) |
|
|
|
attachmentUrl: '',//附件地址 |
|
|
|
fileName: '',//附件名 |
|
|
|
attachmentType: '',//附件类型((图片 - image、 视频 - video、 语音 - voice、 文档 - doc)) |
|
|
|
attachmentUrl: '',//附件地址 |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
@ -623,7 +623,7 @@ export default { |
|
|
|
{ required: true, message: '姓名不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
idCard: [ |
|
|
|
{ required: true, message: '身份证号不能为空', trigger: 'blur' } |
|
|
|
{ required: true, message: '证件号不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
mobile: [ |
|
|
|
{ required: true, message: '手机号不能为空', trigger: 'blur' }, |
|
|
|