CRM:合同的 code review

This commit is contained in:
YunaiV
2024-02-01 13:38:14 +08:00
parent a5f8c3d79c
commit 956f19d9d0
16 changed files with 77 additions and 28 deletions

View File

@ -32,9 +32,11 @@ export const getModelPage = async (params) => {
export const getModel = async (id: number) => {
return await request.get({ url: '/bpm/model/get?id=' + id })
}
export const getModelByKey = async (key: string) => {
return await request.get({ url: '/bpm/model/get-by-key?key=' + key })
}
export const updateModel = async (data: ModelVO) => {
return await request.put({ url: '/bpm/model/update', data: data })
}

View File

@ -5,11 +5,13 @@ export interface BiContractRanKingRespVO {
nickname: string
deptName: string
}
export interface BiReceivablesRanKingRespVO {
price: number
nickname: string
deptName: string
}
export interface BiRankReqVO {
deptId: number
type: string

View File

@ -73,6 +73,7 @@ export const getBusinessListByIds = async (val: number[]) => {
}
// 商机转移
// TODO @puhui999transferBusiness
export const transfer = async (data: TransferReqVO) => {
return await request.put({ url: '/crm/business/transfer', data })
}

View File

@ -71,6 +71,7 @@ export const handleApprove = async (id: number) => {
}
// 合同转移
// TODO @puhui999transfer 相关方法,这块要补充下;
export const transfer = async (data: TransferReqVO) => {
return await request.put({ url: '/crm/contract/transfer', data })
}