CRM:完善回款 plan 新增/修改

This commit is contained in:
YunaiV
2024-02-25 16:09:22 +08:00
parent fee444d191
commit 56d92e5bfb
4 changed files with 72 additions and 54 deletions

View File

@ -66,9 +66,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}`
})
}

View File

@ -5,10 +5,10 @@ export interface ReceivablePlanVO {
period: number
receivableId: number
finishStatus: number
processInstanceId: number
price: number
returnTime: Date
remindDays: number
returnType: number
remindTime: Date
customerId: number
customerName?: string
@ -43,6 +43,7 @@ export const getReceivablePlan = async (id: number) => {
}
// 查询回款计划下拉数据
// TODO @芋艿:再看看这里
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}`