diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index 6a89856e..49ccb08a 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -50,6 +50,11 @@ export const updateCustomer = async (data: CustomerVO) => { return await request.put({ url: `/crm/customer/update`, data }) } +// 更新客户的成交状态 +export const updateCustomerDealStatus = async (id: number, dealStatus: boolean) => { + return await request.put({ url: `/crm/customer/update-deal-status`, params: { id, dealStatus } }) +} + // 删除客户 export const deleteCustomer = async (id: number) => { return await request.delete({ url: `/crm/customer/delete?id=` + id }) diff --git a/src/views/crm/clue/ClueForm.vue b/src/views/crm/clue/ClueForm.vue index 11e43387..82a13204 100644 --- a/src/views/crm/clue/ClueForm.vue +++ b/src/views/crm/clue/ClueForm.vue @@ -102,12 +102,14 @@ - diff --git a/src/views/crm/clue/detail/ClueDetailsHeader.vue b/src/views/crm/clue/detail/ClueDetailsHeader.vue index c1178ced..41552c70 100644 --- a/src/views/crm/clue/detail/ClueDetailsHeader.vue +++ b/src/views/crm/clue/detail/ClueDetailsHeader.vue @@ -35,7 +35,7 @@ import { DICT_TYPE } from '@/utils/dict' import * as ClueApi from '@/api/crm/clue' import { formatDate } from '@/utils/formatTime' -defineOptions({ name: 'ClueDetailsHeader' }) +defineOptions({ name: 'CrmClueDetailsHeader' }) defineProps<{ clue: ClueApi.ClueVO // 线索信息 loading: boolean // 加载中 diff --git a/src/views/crm/clue/detail/ClueDetailsInfo.vue b/src/views/crm/clue/detail/ClueDetailsInfo.vue index 9aec591a..5a1d01fc 100644 --- a/src/views/crm/clue/detail/ClueDetailsInfo.vue +++ b/src/views/crm/clue/detail/ClueDetailsInfo.vue @@ -62,7 +62,7 @@ import * as ClueApi from '@/api/crm/clue' import { DICT_TYPE } from '@/utils/dict' import { formatDate } from '@/utils/formatTime' -defineOptions({ name: 'ClueDetailsInfo' }) +defineOptions({ name: 'CrmClueDetailsInfo' }) const { clue } = defineProps<{ clue: ClueApi.ClueVO // 线索明细 }>() diff --git a/src/views/crm/customer/CustomerForm.vue b/src/views/crm/customer/CustomerForm.vue index 69a8d86e..82869719 100644 --- a/src/views/crm/customer/CustomerForm.vue +++ b/src/views/crm/customer/CustomerForm.vue @@ -102,12 +102,14 @@ - @@ -117,7 +119,6 @@ - diff --git a/src/views/crm/customer/detail/CustomerDetailsHeader.vue b/src/views/crm/customer/detail/CustomerDetailsHeader.vue index 700c32e7..514ec612 100644 --- a/src/views/crm/customer/detail/CustomerDetailsHeader.vue +++ b/src/views/crm/customer/detail/CustomerDetailsHeader.vue @@ -24,18 +24,18 @@ {{ customer.dealStatus ? '已成交' : '未成交' }} {{ customer.ownerUserName }} - - - - {{ customer.mobile }} + + {{ formatDate(customer.createTime) }} +