CRM-合同:完善合同表单

This commit is contained in:
puhui999
2024-01-27 23:11:43 +08:00
parent a64d4240a3
commit ed94205fa7
7 changed files with 375 additions and 115 deletions

View File

@ -1,4 +1,5 @@
import request from '@/config/axios'
import { TransferReqVO } from '@/api/crm/customer'
export interface BusinessVO {
id: number
@ -70,3 +71,8 @@ export const getBusinessPageByContact = async (params) => {
export const getBusinessListByIds = async (val: number[]) => {
return await request.get({ url: '/crm/business/list-by-ids', params: { ids: val.join(',') } })
}
// 商机转移
export const transfer = async (data: TransferReqVO) => {
return await request.put({ url: '/crm/business/transfer', data })
}

View File

@ -1,4 +1,5 @@
import request from '@/config/axios'
import { ProductExpandVO } from '@/api/crm/product'
export interface ContractVO {
id: number
@ -20,6 +21,7 @@ export interface ContractVO {
signUserId: number
contactLastTime: Date
remark: string
productItems: ProductExpandVO[]
}
// 查询 CRM 合同列表

View File

@ -12,6 +12,12 @@ export interface ProductVO {
ownerUserId: number
}
export interface ProductExpandVO extends ProductVO {
count: number
discountPercent: number
totalPrice: number
}
// 查询产品列表
export const getProductPage = async (params) => {
return await request.get({ url: `/crm/product/page`, params })