zy 2025-05-01 18:21:44 +08:00
commit 3b22398ae7
4 changed files with 12 additions and 2 deletions

View File

@ -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 })

View File

@ -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 })

View File

@ -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());

View File

@ -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({