mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-15 03:15:07 +08:00
Merge remote-tracking branch 'yudao/dev' into dev-crm
This commit is contained in:
@ -1,22 +0,0 @@
|
||||
import request from '@/config/axios'
|
||||
// TODO 芋艿:融合下
|
||||
|
||||
// 5. 获得待审核合同数量
|
||||
export const getCheckContractCount = async () => {
|
||||
return await request.get({ url: '/crm/contract/check-contract-count' })
|
||||
}
|
||||
|
||||
// 6. 获得待审核回款数量
|
||||
export const getCheckReceivablesCount = async () => {
|
||||
return await request.get({ url: '/crm/receivable/check-receivables-count' })
|
||||
}
|
||||
|
||||
// 7. 获得待回款提醒数量
|
||||
export const getRemindReceivablePlanCount = async () => {
|
||||
return await request.get({ url: '/crm/receivable-plan/remind-receivable-plan-count' })
|
||||
}
|
||||
|
||||
// 8. 获得即将到期的合同数量
|
||||
export const getEndContractCount = async () => {
|
||||
return await request.get({ url: '/crm/contract/end-contract-count' })
|
||||
}
|
@ -21,6 +21,7 @@ export interface ContractVO {
|
||||
totalProductPrice: number
|
||||
discountPercent: number
|
||||
totalPrice: number
|
||||
totalReceivablePrice: number
|
||||
signContactId: number
|
||||
signContactName?: string
|
||||
signUserId: number
|
||||
@ -66,9 +67,9 @@ export const getContract = async (id: number) => {
|
||||
}
|
||||
|
||||
// 查询 CRM 合同下拉列表
|
||||
export const getCrmContractSimpleListByCustomerId = async (customerId: number) => {
|
||||
export const getContractSimpleList = async (customerId: number) => {
|
||||
return await request.get({
|
||||
url: `/crm/contract/list-all-simple-by-customer?customerId=${customerId}`
|
||||
url: `/crm/contract/simple-list?customerId=${customerId}`
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -5,14 +5,24 @@ export interface ReceivableVO {
|
||||
no: string
|
||||
planId: number
|
||||
customerId: number
|
||||
customerName?: string
|
||||
contractId: number
|
||||
contract?: {
|
||||
no: string
|
||||
totalPrice: number
|
||||
}
|
||||
auditStatus: number
|
||||
processInstanceId: number
|
||||
returnTime: Date
|
||||
returnType: string
|
||||
price: number
|
||||
ownerUserId: number
|
||||
ownerUserName?: string
|
||||
remark: string
|
||||
creator: string // 创建人
|
||||
creatorName?: string // 创建人名称
|
||||
createTime: Date // 创建时间
|
||||
updateTime: Date // 更新时间
|
||||
}
|
||||
|
||||
// 查询回款列表
|
||||
@ -54,3 +64,8 @@ export const exportReceivable = async (params) => {
|
||||
export const submitReceivable = async (id: number) => {
|
||||
return await request.put({ url: `/crm/receivable/submit?id=${id}` })
|
||||
}
|
||||
|
||||
// 获得待审核回款数量
|
||||
export const getAuditReceivableCount = async () => {
|
||||
return await request.get({ url: '/crm/receivable/audit-count' })
|
||||
}
|
||||
|
@ -4,16 +4,26 @@ export interface ReceivablePlanVO {
|
||||
id: number
|
||||
period: number
|
||||
receivableId: number
|
||||
finishStatus: number
|
||||
processInstanceId: number
|
||||
price: number
|
||||
returnTime: Date
|
||||
remindDays: number
|
||||
returnType: number
|
||||
remindTime: Date
|
||||
customerId: number
|
||||
customerName?: string
|
||||
contractId: number
|
||||
contractNo?: string
|
||||
ownerUserId: number
|
||||
ownerUserName?: string
|
||||
remark: string
|
||||
creator: string // 创建人
|
||||
creatorName?: string // 创建人名称
|
||||
createTime: Date // 创建时间
|
||||
updateTime: Date // 更新时间
|
||||
receivable?: {
|
||||
price: number
|
||||
returnTime: Date
|
||||
}
|
||||
}
|
||||
|
||||
// 查询回款计划列表
|
||||
@ -32,9 +42,9 @@ export const getReceivablePlan = async (id: number) => {
|
||||
}
|
||||
|
||||
// 查询回款计划下拉数据
|
||||
export const getReceivablePlanListByContractId = async (customerId: number, contractId: number) => {
|
||||
export const getReceivablePlanSimpleList = async (customerId: number, contractId: number) => {
|
||||
return await request.get({
|
||||
url: `/crm/receivable-plan/list-all-simple-by-customer?customerId=${customerId}&contractId=${contractId}`
|
||||
url: `/crm/receivable-plan/simple-list?customerId=${customerId}&contractId=${contractId}`
|
||||
})
|
||||
}
|
||||
|
||||
@ -57,3 +67,8 @@ export const deleteReceivablePlan = async (id: number) => {
|
||||
export const exportReceivablePlan = async (params) => {
|
||||
return await request.download({ url: `/crm/receivable-plan/export-excel`, params })
|
||||
}
|
||||
|
||||
// 获得待回款提醒数量
|
||||
export const getReceivablePlanRemindCount = async () => {
|
||||
return await request.get({ url: '/crm/receivable-plan/remind-count' })
|
||||
}
|
||||
|
Reference in New Issue
Block a user