CRM-合同:新增合同详情

This commit is contained in:
puhui999
2024-01-28 01:32:49 +08:00
parent 90e0baf5bc
commit 668da2fa86
7 changed files with 245 additions and 6 deletions

View File

@ -1,5 +1,6 @@
import request from '@/config/axios'
import { ProductExpandVO } from '@/api/crm/product'
import { TransferReqVO } from '@/api/crm/customer'
export interface ContractVO {
id: number
@ -21,6 +22,12 @@ export interface ContractVO {
status: number
remark: string
productItems: ProductExpandVO[]
creatorName: string
updateTime?: Date
createTime?: Date
customerName: string
contactName: string
ownerUserName: string
}
// 查询 CRM 合同列表
@ -62,3 +69,8 @@ export const exportContract = async (params) => {
export const handleApprove = async (id: number) => {
return await request.put({ url: `/crm/contract/approve?id=${id}` })
}
// 合同转移
export const transfer = async (data: TransferReqVO) => {
return await request.put({ url: '/crm/contract/transfer', data })
}