Merge branch 'master' of https://gitee.com/guochang-hongyun/warm-kingdom-vue3-oa
commit
3b22398ae7
|
|
@ -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 })
|
||||
|
|
|
|||
|
|
@ -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 })
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue