crm 报价 商机 合同 三块整改
parent
f5f0249b42
commit
7898d17c4d
|
|
@ -61,6 +61,11 @@ export const getSimpleBusinessList = async () => {
|
||||||
return await request.get({ url: `/crm/business/simple-all-list` })
|
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 商机
|
// 新增 CRM 商机
|
||||||
export const createBusiness = async (data: BusinessVO) => {
|
export const createBusiness = async (data: BusinessVO) => {
|
||||||
return await request.post({ url: `/crm/business/create`, data })
|
return await request.post({ url: `/crm/business/create`, data })
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,11 @@ export const getCustomerSimpleList = async () => {
|
||||||
return await request.get({ url: `/crm/customer/simple-list` })
|
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) => {
|
export const getCompanyList = async (params) => {
|
||||||
return await request.get({ url: `/crm/customer/fuzzyQueryCompany`, params })
|
return await request.get({ url: `/crm/customer/fuzzyQueryCompany`, params })
|
||||||
|
|
|
||||||
|
|
@ -432,7 +432,7 @@ onMounted(async () => {
|
||||||
formData.value.ownerUserId = customerId ? '' : useUserStore().getUser.id;
|
formData.value.ownerUserId = customerId ? '' : useUserStore().getUser.id;
|
||||||
formType.value = route.query.id || route.params.id;
|
formType.value = route.query.id || route.params.id;
|
||||||
if (formType.value) open(formType.value, customerId)
|
if (formType.value) open(formType.value, customerId)
|
||||||
customerList.value = await CustomerApi.getCustomerSimpleList();
|
customerList.value = await CustomerApi.getSelfCustomerSimpleList();
|
||||||
statusTypeList.value = await BusinessStatusApi.getBusinessStatusTypeSimpleList();
|
statusTypeList.value = await BusinessStatusApi.getBusinessStatusTypeSimpleList();
|
||||||
userOptions.value = await UserApi.getSimpleUserList();
|
userOptions.value = await UserApi.getSimpleUserList();
|
||||||
deptTree.value = handleTree(await DeptApi.getSimpleDeptList());
|
deptTree.value = handleTree(await DeptApi.getSimpleDeptList());
|
||||||
|
|
|
||||||
|
|
@ -662,7 +662,7 @@ onMounted(async () => {
|
||||||
pageSize: 1000,
|
pageSize: 1000,
|
||||||
})
|
})
|
||||||
templateOptions.value = data.list
|
templateOptions.value = data.list
|
||||||
businessList.value = await BusinessApi.getSimpleBusinessList()
|
businessList.value = await BusinessApi.getSelfSimpleBusinessList()
|
||||||
// 获得部门树
|
// 获得部门树
|
||||||
deptTree.value = handleTree(await DeptApi.getSimpleDeptList())
|
deptTree.value = handleTree(await DeptApi.getSimpleDeptList())
|
||||||
const org = await ContractApi.getOrg({
|
const org = await ContractApi.getOrg({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue