|
|
@ -296,8 +296,11 @@ export default { |
|
|
|
} |
|
|
|
let initForm = (obj, arr) => { |
|
|
|
let _form = {} |
|
|
|
console.log('formInfo---arr', arr) |
|
|
|
console.log('formInfo---obj', obj) |
|
|
|
if (Object.keys(obj).length > 0) { |
|
|
|
for(const n in obj) { |
|
|
|
if (obj[n] == null) obj[n] = '' |
|
|
|
} |
|
|
|
_form = { ...obj } |
|
|
|
return _form |
|
|
|
} |
|
|
@ -355,6 +358,8 @@ export default { |
|
|
|
} |
|
|
|
return { |
|
|
|
openSearch: false, |
|
|
|
isParty: false, |
|
|
|
partyInfo: [], |
|
|
|
fixedForm: { |
|
|
|
GRID_ID: '', |
|
|
|
VILLAGE_ID: '', |
|
|
@ -533,7 +538,10 @@ export default { |
|
|
|
// console.log('columnName', item.columnName, columnName) |
|
|
|
if (item.columnName === columnName && item.itemType === 'radio' && item.childGroup) { |
|
|
|
console.log('columnName', item.columnName, columnName) |
|
|
|
this.$emit('changegroup', { value, childGroup: item.childGroup }) |
|
|
|
if (this.isParty) { |
|
|
|
this.$emit('changegroup', { value, partyInfo: this.partyInfo, childGroup: item.childGroup }) |
|
|
|
} else this.$emit('changegroup', { value, childGroup: item.childGroup }) |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
@ -672,7 +680,7 @@ export default { |
|
|
|
if (this.supportAdd) newForm = this.handlerMuscForm() |
|
|
|
return newForm |
|
|
|
}, |
|
|
|
validateIdcard (idCard) { |
|
|
|
validateIdcard (idCard, type) { |
|
|
|
this.$http |
|
|
|
.post('/epmetuser/icresiuser/getUserRoleByIdCard', { idCard }) |
|
|
|
.then(({ data: res }) => { |
|
|
@ -680,10 +688,23 @@ export default { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} else { |
|
|
|
console.log('获取查询详情成功', res.data) |
|
|
|
|
|
|
|
if (res.data.isVolunteer == '1') this.form.IS_VOLUNTEER = '1' |
|
|
|
else this.form.IS_VOLUNTEER = '0' |
|
|
|
if (res.data.isPartyMember == '1') this.form.IS_PARTY = '1' |
|
|
|
else this.form.IS_PARTY = '0' |
|
|
|
|
|
|
|
if (res.data.isPartyMember == '1') { |
|
|
|
this.form.IS_PARTY = '1' |
|
|
|
this.isParty = true |
|
|
|
this.partyInfo = res.data.detail.ic_party_member |
|
|
|
} else this.form.IS_PARTY = '0' |
|
|
|
|
|
|
|
// if (type == 'vol') { |
|
|
|
// this.isParty = false |
|
|
|
|
|
|
|
// } else if (res.data.isPartyMember == '1' && val == 'party') { |
|
|
|
// this.isParty = true |
|
|
|
// } |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|