编辑身份证号

This commit is contained in:
liuye
2022-11-25 14:46:35 +08:00
parent 878bbcb0e0
commit bbac54d155

View File

@@ -155,7 +155,9 @@
<div class="label"> <div class="label">
<span class="tips">*</span>身份证号 <span class="tips">*</span>身份证号
</div> </div>
<div class="value color-999">{{form.idNumber}}</div> <div class="value">
<u-input type="number" input-align="right" height="32" maxlength="18" v-model="info.idNumber" :custom-style="{'font-size': '17px'}" />
</div>
</div> </div>
<div class="item solid"> <div class="item solid">
<div class="label"> <div class="label">
@@ -438,6 +440,31 @@ export default {
current: img current: img
}) })
}, },
idNumberChange(e) {
if(e.detail.value.length) {
this.getOwnerInfo(e.detail.value)
}
},
// 获取个人信息
getOwnerInfo(idNumber) {
this.$http.post(`/app/appepidemicpreventionregisterinfo/queryDetailByIdNumber`, null, {
params: {
idNumber: idNumber,
}
}).then(res => {
if(res?.data) {
this.form.name = res.data.name || ''
this.form.phone = res.data.phone || ''
this.form.startAreaId = res.data.startAreaId
this.form.startAreaName = res.data.startAreaName
this.form.description = res.data.description || ''
this.form.arriveAreaId = res.data.arriveAreaId
this.form.arriveAreaName = res.data.arriveAreaName
this.form.startAddress = res.data.startAddress || ''
this.form.arriveAddress = res.data.arriveAddress || ''
}
})
},
}, },
} }
</script> </script>