Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2022-04-29 19:55:58 +08:00
2 changed files with 14 additions and 3 deletions

View File

@@ -635,9 +635,12 @@ export default {
}, },
submit() { submit() {
if(!this.isEdit) {
if (!this.form.riskType) { if (!this.form.riskType) {
return this.$u.toast('请选择风险因素') return this.$u.toast('请选择风险因素')
} }
}
this.basicsCheckList.map((item, index) => { this.basicsCheckList.map((item, index) => {
if (item.checked) { if (item.checked) {

View File

@@ -532,6 +532,13 @@ export default {
} else { } else {
this.form.files = [] this.form.files = []
} }
res.data.healthyStatusList = res.data.healthyStatus.split(',')
res.data.healthyStatusList.map((item) => {
this.helthList.map(items => {
items.checked = item == items.dictValue
})
})
} }
}) })
}, },
@@ -620,7 +627,8 @@ export default {
...this.form, ...this.form,
id: this.id || '', id: this.id || '',
girdId: this.user.girdCheckType == 1 ? this.user.girdId : '', girdId: this.user.girdCheckType == 1 ? this.user.girdId : '',
householdIdNumber: this.householdIdNumber householdIdNumber: this.householdIdNumber,
isHousehold: '0',
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$u.toast(this.isEdit ? '保存成功' : '提交成功') this.$u.toast(this.isEdit ? '保存成功' : '提交成功')