From 7898d17c4dac65e36f1af3603bdc572e16519c1e Mon Sep 17 00:00:00 2001 From: quu Date: Thu, 1 May 2025 19:03:18 +0900 Subject: [PATCH] =?UTF-8?q?crm=20=E6=8A=A5=E4=BB=B7=20=E5=95=86=E6=9C=BA?= =?UTF-8?q?=20=E5=90=88=E5=90=8C=20=E4=B8=89=E5=9D=97=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/business/index.ts | 5 +++++ src/api/crm/customer/index.ts | 5 +++++ src/views/crm/business/BusinessForm.vue | 2 +- src/views/crm/quotation/QuotationForm.vue | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) 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({