dev-cl
parent
f45123126d
commit
f56305505f
@ -0,0 +1,41 @@ |
||||
import request from '@/config/axios' |
||||
|
||||
// 获取提成结算参数
|
||||
export const getCommissionParams = async () => { |
||||
return await request.get({ url: '/admin-api/oa/percentage/get-percentage-param' }) |
||||
} |
||||
|
||||
// 创建
|
||||
export const createPlan = (data) => { |
||||
return request.post({ url: '/admin-api/oa/percentage/create', data, isSubmitForm: true }) |
||||
} |
||||
|
||||
// 修改
|
||||
export const updatePlan = (data) => { |
||||
return request.put({ url: '/admin-api/oa/percentage/update', data }) |
||||
} |
||||
|
||||
// 修改状态
|
||||
export const updatePlanStatus = (data) => { |
||||
return request.put({ url: '/admin-api/oa/percentage/status/update', data }) |
||||
} |
||||
|
||||
// 分页
|
||||
export const getPlanPage = (params) => { |
||||
return request.get({ url: '/admin-api/oa/percentage/page', params }) |
||||
} |
||||
|
||||
// 列表
|
||||
export const getPlanSimpleList = (params) => { |
||||
return request.get({ url: '/admin-api/oa/percentage/simple-list', params }) |
||||
} |
||||
|
||||
// 详情
|
||||
export const getPlanDetail = (id) => { |
||||
return request.get({ url: '/admin-api/oa/percentage/get', params: { id } }) |
||||
} |
||||
|
||||
// 删除
|
||||
export const deletePlan = (id) => { |
||||
return request.delete({ url: '/admin-api/oa/percentage/delete', params: { id } }) |
||||
} |
@ -0,0 +1,36 @@ |
||||
import request from '@/config/axios' |
||||
|
||||
// 创建
|
||||
export const createSalary = (data) => { |
||||
return request.post({ url: '/admin-api/oa/user-salary/create', data, isSubmitForm: true }) |
||||
} |
||||
|
||||
// 修改
|
||||
export const updateSalary = (data) => { |
||||
return request.put({ url: '/admin-api/oa/user-salary/update', data }) |
||||
} |
||||
|
||||
// 修改状态
|
||||
export const updateSalaryStatus = (data) => { |
||||
return request.put({ url: '/admin-api/oa/user-salary/status/update', data }) |
||||
} |
||||
|
||||
// 分页
|
||||
export const getSalaryPage = (params) => { |
||||
return request.get({ url: '/admin-api/oa/user-salary/page', params }) |
||||
} |
||||
|
||||
// 列表
|
||||
export const getSalarySimpleList = (params) => { |
||||
return request.get({ url: '/admin-api/oa/user-salary/simple-list', params }) |
||||
} |
||||
|
||||
// 详情
|
||||
export const getSalaryDetail = (id) => { |
||||
return request.get({ url: '/admin-api/oa/user-salary/get', params: { id } }) |
||||
} |
||||
|
||||
// 删除
|
||||
export const deleteSalary = (id) => { |
||||
return request.delete({ url: '/admin-api/oa/user-salary/delete', params: { id } }) |
||||
} |
@ -1,20 +0,0 @@ |
||||
import request from '@/config/axios' |
||||
// 线索情况
|
||||
export const getUserClueCount = async (params) => { |
||||
return await request.get({ url: '/admin-api/crm/home/get-user-count', params }) |
||||
} |
||||
|
||||
// 成交率
|
||||
export const getClueSignSignRate = async (params) => { |
||||
return await request.get({ url: '/admin-api/crm/home/get-sign-rate', params }) |
||||
} |
||||
|
||||
// 成交率
|
||||
export const getClueSignSignRank = async (params) => { |
||||
return await request.get({ url: '/admin-api/crm/home/get-sign-top10', params }) |
||||
} |
||||
|
||||
// 成交率
|
||||
export const getClueFollowRank = async (params) => { |
||||
return await request.get({ url: '/admin-api/crm/home/get-follow-top10', params }) |
||||
} |
@ -0,0 +1,20 @@ |
||||
import request from '@/config/axios' |
||||
// 生成工资条
|
||||
export const createSalarySlip = async (data) => { |
||||
return await request.post({ url: '/admin-api/oa/user-salary-grant/create', data }) |
||||
} |
||||
|
||||
// 导入工资条
|
||||
export const importSalarySlip = async (params) => { |
||||
return await request.get({ url: '/admin-api/oa/user-salary-grant/import', params }) |
||||
} |
||||
|
||||
// 修改工资条
|
||||
export const updateSalarySlip = async (data) => { |
||||
return await request.put({ url: '/admin-api/oa/user-salary-grant/update', data }) |
||||
} |
||||
|
||||
// 封存
|
||||
export const sealupSalarySlip = async (data) => { |
||||
return await request.post({ url: '/admin-api/oa/user-salary-grant/confirm', data }) |
||||
} |
Loading…
Reference in new issue