crm-客户:公海抽离,完善跟进

This commit is contained in:
puhui999
2024-01-14 20:57:06 +08:00
parent d29dfef7c7
commit 5151824110
10 changed files with 414 additions and 86 deletions

View File

@ -67,13 +67,18 @@ const props = withDefaults(defineProps<{ contactIds: number[] }>(), {
contactIds: () => []
})
const list = ref<ContactApi.ContactVO[]>([] as ContactApi.ContactVO[])
const getContactList = async () => {
list.value = (await ContactApi.getContactListByIds(
props.contactIds
)) as unknown as ContactApi.ContactVO[]
}
watch(
() => props.contactIds,
(val) => {
if (!val || val.length === 0) {
return
}
list.value = ContactApi.getContactListByIds(val) as unknown as ContactApi.ContactVO[]
getContactList()
}
)
const emits = defineEmits<{