diff --git a/src/apps/AppMonitoringObject/Add.vue b/src/apps/AppMonitoringObject/Add.vue index 73a41d48..3f3ca902 100644 --- a/src/apps/AppMonitoringObject/Add.vue +++ b/src/apps/AppMonitoringObject/Add.vue @@ -23,8 +23,9 @@ 选择户主
- - 请选择 + + 请选择 + {{ userList[0].name }}
@@ -86,7 +87,7 @@ 现住址
- +
{{ form.currentAreaName }} 请选择 @@ -159,7 +160,7 @@
-
+
@@ -219,7 +220,7 @@ -
+
@@ -292,7 +293,7 @@
-

*备注说明

+

备注说明

@@ -359,11 +360,28 @@ export default { isEdit: false, id: '', girdInfo: {}, - photo: [] + photo: [], + userList: [], + flag:false, } }, computed: { ...mapState(['user']), + + userChange() { + if(this.userList.length) { + this.isEdit = true; + this.form.name = this.userList[0].name + this.form.idNumber = this.userList[0].idNumber + return [this.isEdit,this.form.name,this.form.idNumber] + } + }, + sexChange() { + if(this.form.idNumber) { + return this.form.sex = this.form.idNumber.substr(16, 1) % 2 == 0 ? '1' : '0' + } + } + }, onLoad(query) { @@ -420,8 +438,8 @@ export default { if (this.form.phone.length == 11 && !regTel.test(this.form.phone)) { return this.$u.toast('请输入正确的手机号') } - if(!/[^0]0{6,7}$/.test(this.form.currentAreaId)) { - return this.$u.toast('现住址必须选到县级') + if(!/[^0]0{0,2}$/.test(this.form.currentAreaId)) { + return this.$u.toast('现住址必须选到村级') } if(this.form.files.length) { @@ -444,9 +462,9 @@ export default { return this.$u.toast('请选择风险因素') } - if(!this.form.detail) { - return this.$u.toast('请输入备注说明') - } + // if(!this.form.detail) { + // return this.$u.toast('请输入备注说明') + // } this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', { ...this.form, @@ -725,5 +743,8 @@ export default { .border-b0{ border-bottom: 0!important; } + ::v-deep .AiSelect .display .selectedLabel { + font-size: 28px; + } }