fix 80416

This commit is contained in:
danshihao
2024-01-05 17:09:33 +08:00
parent 9892ac70e3
commit 575e7027c9
@@ -473,6 +473,19 @@ export default {
'remark'
)
)
/* fix:80416 如果联系人找不到就回显空,而不是显示id */
// 查找企业联系人,找不到就置空
this.$refs.selectContacts.getContactsList().finally(() => {
if (!this.$refs.selectContacts.contactsList.find(item => item.id === this.model.companyContactId)) {
this.form.setFieldsValue({ companyContactId: undefined })
}
})
// 查找邮寄联系人,找不到就置空
this.$refs.selectMailContacts.getContactsList().finally(() => {
if (!this.$refs.selectMailContacts.contactsList.find(item => item.id === this.model.postContactId)) {
this.form.setFieldsValue({ postContactId: undefined })
}
})
})
},
// 选择企业联系人 带出邮寄联系人