123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import request from '@/config/axios'
- export interface ReceivablePlanVO {
- id: number
- period: number
- receivableId: number
- finishStatus: number
- processInstanceId: number
- price: number
- returnTime: Date
- remindDays: number
- remindTime: Date
- customerId: number
- contractId: number
- ownerUserId: number
- remark: string
- receivable?: {
- price: number
- returnTime: Date
- }
- }
- // 查询回款计划列表
- export const getReceivablePlanPage = async (params) => {
- return await request.get({ url: `/crm/receivable-plan/page`, params })
- }
- // 查询回款计划列表
- export const getReceivablePlanPageByCustomer = async (params) => {
- return await request.get({ url: `/crm/receivable-plan/page-by-customer`, params })
- }
- // 查询回款计划详情
- export const getReceivablePlan = async (id: number) => {
- return await request.get({ url: `/crm/receivable-plan/get?id=` + id })
- }
- // 查询回款计划下拉数据
- export const getReceivablePlanListByContractId = async (customerId: number, contractId: number) => {
- return await request.get({
- url: `/crm/receivable-plan/list-all-simple-by-customer?customerId=${customerId}&contractId=${contractId}`
- })
- }
- // 新增回款计划
- export const createReceivablePlan = async (data: ReceivablePlanVO) => {
- return await request.post({ url: `/crm/receivable-plan/create`, data })
- }
- // 修改回款计划
- export const updateReceivablePlan = async (data: ReceivablePlanVO) => {
- return await request.put({ url: `/crm/receivable-plan/update`, data })
- }
- // 删除回款计划
- export const deleteReceivablePlan = async (id: number) => {
- return await request.delete({ url: `/crm/receivable-plan/delete?id=` + id })
- }
- // 导出回款计划 Excel
- export const exportReceivablePlan = async (params) => {
- return await request.download({ url: `/crm/receivable-plan/export-excel`, params })
- }
|