27110 27122
This commit is contained in:
@@ -39,7 +39,7 @@ export default {
|
|||||||
isGirdUser() {
|
isGirdUser() {
|
||||||
this.isAdmin = false
|
this.isAdmin = false
|
||||||
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
||||||
if (res.code == 0) {
|
if (res?.data) {
|
||||||
if (res.data.appGirdInfo.checkType != '0') {
|
if (res.data.appGirdInfo.checkType != '0') {
|
||||||
this.isAdmin = true
|
this.isAdmin = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,14 +61,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class="label"><span class="tips">*</span>详细地址</span>
|
<span class="label"><span class="tips"></span>详细地址</span>
|
||||||
<div class="value">
|
<div class="value">
|
||||||
<u-input type="text" placeholder="请输入" v-model="form.address" input-align="right"
|
<u-input type="text" placeholder="请输入" v-model="form.address" input-align="right"
|
||||||
placeholder-style="color:#999;font-size:16px;" height="48"/>
|
placeholder-style="color:#999;font-size:16px;" height="48"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class="label"><span class="tips">*</span>所属网格</span>
|
<span class="label"><span class="tips"></span>所属网格</span>
|
||||||
<div class="value" @click="showGird=true">
|
<div class="value" @click="showGird=true">
|
||||||
<span
|
<span
|
||||||
:class="form.girdName === '' ? 'color-999' : ''">{{
|
:class="form.girdName === '' ? 'color-999' : ''">{{
|
||||||
@@ -412,7 +412,9 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
changeIdNumber() {
|
changeIdNumber() {
|
||||||
if (this.form.idNumber.length == 18) {
|
if (this.form.idNumber.length != 18) {
|
||||||
|
return this.$u.toast('请输入正确的身份证号码')
|
||||||
|
} else {
|
||||||
var people = this.$idCardNoUtil.getIdCardInfo(this.form.idNumber)
|
var people = this.$idCardNoUtil.getIdCardInfo(this.form.idNumber)
|
||||||
this.form.birth = people.birthday
|
this.form.birth = people.birthday
|
||||||
this.form.gender = people.gender
|
this.form.gender = people.gender
|
||||||
@@ -425,9 +427,8 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
changePhone() {
|
changePhone() {
|
||||||
let regTel = /^1(3\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\d|9[0-35-9])\d{8}$/
|
if (this.form.phone.length != 11) {
|
||||||
if (!regTel.test(this.form.phone)) {
|
return this.$u.toast('请输入正确的联系电话')
|
||||||
return this.$u.toast('请输入正确的手机号')
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
confirmGirdSelect(e) {
|
confirmGirdSelect(e) {
|
||||||
@@ -457,18 +458,20 @@ export default {
|
|||||||
if (!this.form.idNumber) {
|
if (!this.form.idNumber) {
|
||||||
return this.$u.toast('请输入身份证号')
|
return this.$u.toast('请输入身份证号')
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.form.idNumber)
|
||||||
|
) {
|
||||||
|
return this.$u.toast("请输入正确的身份证账号");
|
||||||
|
}
|
||||||
if (!this.form.phone) {
|
if (!this.form.phone) {
|
||||||
return this.$u.toast('请输入联系电话')
|
return this.$u.toast('请输入联系电话')
|
||||||
}
|
}
|
||||||
|
if (!/^1[0-9]{10,10}$/.test(this.form.phone)) {
|
||||||
|
return this.$u.toast("请输入正确的联系电话");
|
||||||
|
}
|
||||||
if (!this.form.areaName) {
|
if (!this.form.areaName) {
|
||||||
return this.$u.toast('请选择区域')
|
return this.$u.toast('请选择区域')
|
||||||
}
|
}
|
||||||
if (!this.form.address) {
|
|
||||||
return this.$u.toast('请输入详细地址')
|
|
||||||
}
|
|
||||||
if (!this.form.girdName) {
|
|
||||||
return this.$u.toast('请选择网格')
|
|
||||||
}
|
|
||||||
|
|
||||||
var urlList = ['app/appspecialdisabled/addOrUpdate', 'app/appspecialmental/addOrUpdate', 'app/appspecialadjustment/addOrUpdate',
|
var urlList = ['app/appspecialdisabled/addOrUpdate', 'app/appspecialmental/addOrUpdate', 'app/appspecialadjustment/addOrUpdate',
|
||||||
'app/appspecialdrug/addOrUpdate','app/appspecialprison/addOrUpdate']
|
'app/appspecialdrug/addOrUpdate','app/appspecialprison/addOrUpdate']
|
||||||
|
|||||||
Reference in New Issue
Block a user