@@ -289,7 +304,7 @@
@@ -356,11 +371,29 @@ export default {
isEdit: false,
id: '',
girdInfo: {},
- photo: []
+ photo: [],
+ userList: [],
+ flag: false,
+ helthList: [],
}
},
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) {
@@ -368,13 +401,22 @@ export default {
this.$dict.load(['fpType','fpRiskType', 'riskEliminationMethod', 'fpRiskType', 'fpYesOrNo', 'fpNation', 'fpEducation', 'fpStudentsInSchool', 'fpHealth',
'fpLaborSkills', 'fpPoliticalOutlook', 'sex', 'fpHealth']).then(() => {
if (query.id) {
- this.isEdit = true
+ this.flag = true
this.id = query.id
this.getInfo(this.id)
+ // this.photo = this.form.files[0].url
}else {
this.form.currentAreaId = this.user.areaId
}
})
+ // var dictList = []
+ // console.log(this.$dict.getDict('fpHealth'));
+ // this.$dict.getDict('fpHealth').map((item) => {
+ // dictList.push(item.dictValue)
+ // })
+ // return helthList = dictList.join(',')
+ // console.log(dictList.join(','));
+
},
@@ -383,11 +425,6 @@ export default {
},
methods: {
- toSelect() {
- // uni.navigateTo({
- // url: './residentList'
- // })
- },
rules() {
return {
objectType: '请选择监测对象类型',
@@ -398,12 +435,6 @@ export default {
}
},
- getResidentList() {
- this.$http.post('').then(res => {
-
- })
- },
-
getResidentList() {
uni.navigateTo({
url: './residentList'
@@ -445,10 +476,6 @@ export default {
if(!this.form.riskType) {
return this.$u.toast('请选择风险因素')
}
-
- if(!this.form.detail) {
- return this.$u.toast('请输入备注说明')
- }
this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', {
...this.form,
@@ -573,6 +600,11 @@ export default {
border-bottom: 1px solid #E4E5E6;
}
+ .checkbox {
+ display: flex;
+
+ }
+
.right {
height: 112px;
line-height: 112px;
@@ -637,12 +669,6 @@ export default {
font-size: 32px;
}
}
-
- // &:last-child {
- // .form-item__wrapper {
- // border: none;
- // }
- // }
}
}
@@ -727,5 +753,8 @@ export default {
.border-b0{
border-bottom: 0!important;
}
+ ::v-deep .AiSelect .display .selectedLabel {
+ font-size: 28px;
+ }
}
diff --git a/src/apps/AppMonitoringObject/Detail.vue b/src/apps/AppMonitoringObject/Detail.vue
index 9c88f882..1f9b6bb8 100644
--- a/src/apps/AppMonitoringObject/Detail.vue
+++ b/src/apps/AppMonitoringObject/Detail.vue
@@ -16,7 +16,8 @@
{{ info.phone }}