index.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import request from '@/config/axios'
  2. export interface ReceivablePlanVO {
  3. id: number
  4. period: number
  5. receivableId: number
  6. status: number
  7. checkStatus: string
  8. processInstanceId: number
  9. price: number
  10. returnTime: Date
  11. remindDays: number
  12. remindTime: Date
  13. customerId: number
  14. contractId: number
  15. ownerUserId: number
  16. sort: number
  17. remark: string
  18. }
  19. // 查询回款计划列表
  20. export const getReceivablePlanPage = async (params) => {
  21. return await request.get({ url: `/crm/receivable-plan/page`, params })
  22. }
  23. // 查询回款计划列表
  24. export const getReceivablePlanPageByCustomer = async (params) => {
  25. return await request.get({ url: `/crm/receivable-plan/page-by-customer`, params })
  26. }
  27. // 查询回款计划详情
  28. export const getReceivablePlan = async (id: number) => {
  29. return await request.get({ url: `/crm/receivable-plan/get?id=` + id })
  30. }
  31. // 新增回款计划
  32. export const createReceivablePlan = async (data: ReceivablePlanVO) => {
  33. return await request.post({ url: `/crm/receivable-plan/create`, data })
  34. }
  35. // 修改回款计划
  36. export const updateReceivablePlan = async (data: ReceivablePlanVO) => {
  37. return await request.put({ url: `/crm/receivable-plan/update`, data })
  38. }
  39. // 删除回款计划
  40. export const deleteReceivablePlan = async (id: number) => {
  41. return await request.delete({ url: `/crm/receivable-plan/delete?id=` + id })
  42. }
  43. // 导出回款计划 Excel
  44. export const exportReceivablePlan = async (params) => {
  45. return await request.download({ url: `/crm/receivable-plan/export-excel`, params })
  46. }