【bug】 添加参会人编辑企业重置上一次的选择的数据

This commit is contained in:
fengachen
2021-10-21 19:04:34 +08:00
parent 9ea6826292
commit ba9d828204
2 changed files with 12 additions and 0 deletions
@@ -229,6 +229,13 @@ export default {
}
})
},
/*
* 清空邮寄联系人 地址 邮编
* */
clearFormItem(){
// 选择企业清空 姓名 手机号
this.form.resetFields(['postContactId','postContactAddress','postCode'])
},
/*
* 选择了联系人后给邮寄联系人和地址赋值
@@ -377,6 +377,11 @@ export default {
* */
changeCompany(value) {
this.selectedCompany = value
// 选择企业清空 姓名 手机号
this.form.resetFields(['companyContactId','phone'])
if(this.$refs.formother ){
this.$refs.formother.clearFormItem()
}
},
/*
* 选择联系人获取信息