CRM:完善回款计划

This commit is contained in:
puhui999
2024-02-24 23:01:29 +08:00
parent 8f8591fc45
commit 6725318f27
6 changed files with 232 additions and 193 deletions

View File

@ -65,6 +65,13 @@ export const getContract = async (id: number) => {
return await request.get({ url: `/crm/contract/get?id=` + id })
}
// 查询 CRM 合同下拉列表
export const getCrmContractSimpleListByCustomerId = async (customerId: number) => {
return await request.get({
url: `/crm/contract/list-all-simple-by-customer?customerId=${customerId}`
})
}
// 新增 CRM 合同
export const createContract = async (data: ContractVO) => {
return await request.post({ url: `/crm/contract/create`, data })

View File

@ -90,6 +90,11 @@ export const importCustomerTemplate = () => {
return request.download({ url: '/crm/customer/get-import-template' })
}
// 导入客户
export const handleImport = async (formData) => {
return await request.upload({ url: `/crm/customer/import`, data: formData })
}
// 客户列表
export const getCustomerSimpleList = async () => {
return await request.get({ url: `/crm/customer/simple-list` })

View File

@ -4,8 +4,7 @@ export interface ReceivablePlanVO {
id: number
period: number
receivableId: number
status: number
checkStatus: string
finishStatus: number
processInstanceId: number
price: number
returnTime: Date
@ -14,7 +13,6 @@ export interface ReceivablePlanVO {
customerId: number
contractId: number
ownerUserId: number
sort: number
remark: string
}