详情
This commit is contained in:
@@ -45,15 +45,12 @@
|
||||
<div class="form-item" v-if="id">
|
||||
<div class="form-item__wrapper">
|
||||
<div class="left">
|
||||
<i style="width: 8px;"></i>
|
||||
<i>*</i>
|
||||
<span>成员姓名</span>
|
||||
</div>
|
||||
<div class="right">
|
||||
<AiPagePicker class="select" :selected.sync="userList">
|
||||
<span v-if="!userList.length">请选择</span>
|
||||
<span v-if="userList.length" style="color: #333;">{{ userList[0].name }}</span>
|
||||
<u-icon name="arrow-right" color="#DDD" size="28"></u-icon>
|
||||
</AiPagePicker>
|
||||
<input placeholder="请输入" type="text" v-model="form.name" :maxlength="8"
|
||||
placeholder-style="color: #999; font-size: 30rpx;" disabled />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -77,7 +74,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<input placeholder="请输入" type="idcard" v-model="form.idNumber" :maxlength="18"
|
||||
placeholder-style="color: #999; font-size: 30rpx;" @input="changeIdNumber" :disabled="isEdit" />
|
||||
placeholder-style="color: #999; font-size: 30rpx;" @input="changeIdNumber" :disabled="id" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -608,6 +605,7 @@ export default {
|
||||
this.form.currentAreaId = this.user.areaId
|
||||
}
|
||||
})
|
||||
console.log(this.helthList);
|
||||
},
|
||||
|
||||
onShow() {
|
||||
@@ -638,9 +636,7 @@ export default {
|
||||
} else {
|
||||
this.helthList[i].checked = false // 取消
|
||||
this.namelist.map((item, index) => {
|
||||
// 判断当前项是否取消
|
||||
if (item.dictValue == row.dictValue) {
|
||||
// 如果当前项取消了,就删掉当前项
|
||||
this.namelist.splice(index, 1)
|
||||
}
|
||||
})
|
||||
@@ -703,7 +699,6 @@ export default {
|
||||
}
|
||||
|
||||
this.basicsCheckList.map((item, index) => {
|
||||
console.log(item.checked,index);
|
||||
if (item.checked) {
|
||||
this.basicsList.push(index)
|
||||
}
|
||||
@@ -735,17 +730,19 @@ export default {
|
||||
|
||||
this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', {
|
||||
...this.form,
|
||||
id: this.isEdit ? this.id : ''
|
||||
id: this.id || '',
|
||||
girdId: this.user.girdCheckType == 1? this.user.girdId:'',
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast(this.isEdit ? '保存成功' : '提交成功')
|
||||
uni.$emit('reload')
|
||||
uni.navigateTo({url: './serviceResult'})
|
||||
uni.navigateBack({
|
||||
delta: 2
|
||||
})
|
||||
}
|
||||
}).catch((err) => {
|
||||
this.$u.toast(err)
|
||||
})
|
||||
// console.log(this.form);
|
||||
},
|
||||
|
||||
onAreaChange(e) {
|
||||
@@ -759,6 +756,26 @@ export default {
|
||||
getInfo(id) {
|
||||
this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${id}`).then(res => {
|
||||
if (res.code === 0) {
|
||||
res.data.basicsCheckList = res.data.basicsCheck.split(',')
|
||||
res.data.basicsCheckList.map((item,index)=> {
|
||||
this.basicsCheckList[index].checked = true
|
||||
})
|
||||
res.data.guaranteeCheckList = res.data.guaranteeCheck.split(',')
|
||||
res.data.guaranteeCheckList.map((item,index)=> {
|
||||
this.guaranteeCheckList[index].checked = true
|
||||
})
|
||||
|
||||
res.data.healthyStatusList = res.data.healthyStatus.split(',')
|
||||
|
||||
res.data.healthyStatusList.map((item)=>{
|
||||
this.helthList.map(items=>{
|
||||
if(item == items.dictValue) {
|
||||
items.checked = true
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
this.form = {
|
||||
...this.form,
|
||||
...res.data
|
||||
|
||||
Reference in New Issue
Block a user