diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index 50eebd64..a025e346 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -59,7 +59,7 @@ export const deleteCustomer = async (id: number) => { } // 导出客户 Excel -export const exportCustomer = async (params) => { +export const exportCustomer = async (params: any) => { return await request.download({ url: `/crm/customer/export-excel`, params }) } @@ -69,6 +69,11 @@ export const queryAllList = async () => { } // 查询客户操作日志 -export const getOperateLogPage = async (params) => { +export const getOperateLogPage = async (params: any) => { return await request.get({ url: '/crm/customer/operate-log-page', params }) } + +// 锁定/解锁客户 +export const lockCustomer = async (id: number, lockStatus: boolean) => { + return await request.put({ url: `/crm/customer/lock`, data: { id, lockStatus } }) +} diff --git a/src/views/crm/business/components/BusinessList.vue b/src/views/crm/business/components/BusinessList.vue index ca7d02c6..65398480 100644 --- a/src/views/crm/business/components/BusinessList.vue +++ b/src/views/crm/business/components/BusinessList.vue @@ -75,7 +75,7 @@ defineOptions({ name: 'CrmBusinessList' }) const props = defineProps<{ bizType: number // 业务类型 bizId: number // 业务编号 - customerId: number // 关联联系人与商机时,需要传入 customerId 进行筛选 + customerId?: number // 关联联系人与商机时,需要传入 customerId 进行筛选 }>() const loading = ref(true) // 列表的加载中 diff --git a/src/views/crm/customer/detail/CustomerDetailsHeader.vue b/src/views/crm/customer/detail/CustomerDetailsHeader.vue index 78f2d652..b8efbe96 100644 --- a/src/views/crm/customer/detail/CustomerDetailsHeader.vue +++ b/src/views/crm/customer/detail/CustomerDetailsHeader.vue @@ -11,11 +11,19 @@