diff --git a/src/api/crm/business/index.ts b/src/api/crm/business/index.ts index 5361cdb59..4c748e345 100644 --- a/src/api/crm/business/index.ts +++ b/src/api/crm/business/index.ts @@ -61,6 +61,11 @@ export const getSimpleBusinessList = async () => { return await request.get({ url: `/crm/business/simple-all-list` }) } +// 获得 CRM 我的商机列表 +export const getSelfSimpleBusinessList = async () => { + return await request.get({ url: `/crm/business/self-simple-list` }) +} + // 新增 CRM 商机 export const createBusiness = async (data: BusinessVO) => { return await request.post({ url: `/crm/business/create`, data }) diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index 6dbfc49d6..b93f62e29 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -101,6 +101,11 @@ export const getCustomerSimpleList = async () => { return await request.get({ url: `/crm/customer/simple-list` }) } +// 我的客户列表 +export const getSelfCustomerSimpleList = async () => { + return await request.get({ url: `/crm/customer/self-simple-list` }) +} + // 模糊查询公司 export const getCompanyList = async (params) => { return await request.get({ url: `/crm/customer/fuzzyQueryCompany`, params }) diff --git a/src/views/crm/business/BusinessForm.vue b/src/views/crm/business/BusinessForm.vue index 0cfbf4c67..6e114fe63 100644 --- a/src/views/crm/business/BusinessForm.vue +++ b/src/views/crm/business/BusinessForm.vue @@ -432,7 +432,7 @@ onMounted(async () => { formData.value.ownerUserId = customerId ? '' : useUserStore().getUser.id; formType.value = route.query.id || route.params.id; if (formType.value) open(formType.value, customerId) - customerList.value = await CustomerApi.getCustomerSimpleList(); + customerList.value = await CustomerApi.getSelfCustomerSimpleList(); statusTypeList.value = await BusinessStatusApi.getBusinessStatusTypeSimpleList(); userOptions.value = await UserApi.getSimpleUserList(); deptTree.value = handleTree(await DeptApi.getSimpleDeptList()); diff --git a/src/views/crm/quotation/QuotationForm.vue b/src/views/crm/quotation/QuotationForm.vue index 865c4531e..3f29c9801 100644 --- a/src/views/crm/quotation/QuotationForm.vue +++ b/src/views/crm/quotation/QuotationForm.vue @@ -662,7 +662,7 @@ onMounted(async () => { pageSize: 1000, }) templateOptions.value = data.list - businessList.value = await BusinessApi.getSimpleBusinessList() + businessList.value = await BusinessApi.getSelfSimpleBusinessList() // 获得部门树 deptTree.value = handleTree(await DeptApi.getSimpleDeptList()) const org = await ContractApi.getOrg({