diff --git a/src/api/crm/business/index.ts b/src/api/crm/business/index.ts index 79568dec..bc3abe62 100644 --- a/src/api/crm/business/index.ts +++ b/src/api/crm/business/index.ts @@ -73,7 +73,6 @@ export const getBusinessListByIds = async (val: number[]) => { } // 商机转移 -// TODO @puhui999:transferBusiness -export const transfer = async (data: TransferReqVO) => { - return await request.put({ url: '/crm/business/transfer', data }) +export const transferBusiness = async (data: TransferReqVO) => { + return await request.put({ url: '/crm/business/transfer-business', data }) } diff --git a/src/api/crm/clue/index.ts b/src/api/crm/clue/index.ts index 39da03d3..711a5041 100644 --- a/src/api/crm/clue/index.ts +++ b/src/api/crm/clue/index.ts @@ -1,4 +1,5 @@ import request from '@/config/axios' +import { TransferReqVO } from '@/api/crm/customer' export interface ClueVO { id: number @@ -44,3 +45,8 @@ export const deleteClue = async (id: number) => { export const exportClue = async (params) => { return await request.download({ url: `/crm/clue/export-excel`, params }) } + +// 线索转移 +export const transferClue = async (data: TransferReqVO) => { + return await request.put({ url: '/crm/clue/transfer-clue', data }) +} diff --git a/src/api/crm/contact/index.ts b/src/api/crm/contact/index.ts index 6edb90a1..b728c80a 100644 --- a/src/api/crm/contact/index.ts +++ b/src/api/crm/contact/index.ts @@ -88,6 +88,6 @@ export const deleteContactBusinessList = async (data: ContactBusinessReqVO) => { } // 联系人转移 -export const transfer = async (data: TransferReqVO) => { - return await request.put({ url: '/crm/contact/transfer', data }) +export const transferContact = async (data: TransferReqVO) => { + return await request.put({ url: '/crm/contact/transfer-contact', data }) } diff --git a/src/api/crm/contract/index.ts b/src/api/crm/contract/index.ts index 58f63631..bb4c7a7e 100644 --- a/src/api/crm/contract/index.ts +++ b/src/api/crm/contract/index.ts @@ -7,6 +7,7 @@ export interface ContractVO { name: string customerId: number businessId: number + businessName: string processInstanceId: number orderDate: Date ownerUserId: number @@ -18,8 +19,9 @@ export interface ContractVO { productPrice: number contactId: number signUserId: number + signUserName: string contactLastTime: Date - status: number + auditStatus: number remark: string productItems: ProductExpandVO[] creatorName: string @@ -71,7 +73,6 @@ export const handleApprove = async (id: number) => { } // 合同转移 -// TODO @puhui999:transfer 相关方法,这块要补充下; -export const transfer = async (data: TransferReqVO) => { - return await request.put({ url: '/crm/contract/transfer', data }) +export const transferContract = async (data: TransferReqVO) => { + return await request.put({ url: '/crm/contract/transfer-contract', data }) } diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index a6fb489b..d867e415 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -82,8 +82,8 @@ export interface TransferReqVO { } // 客户转移 -export const transfer = async (data: TransferReqVO) => { - return await request.put({ url: '/crm/customer/transfer', data }) +export const transferCustomer = async (data: TransferReqVO) => { + return await request.put({ url: '/crm/customer/transfer-customer', data }) } // 锁定/解锁客户 diff --git a/src/components/Table/src/TableSelectForm.vue b/src/components/Table/src/TableSelectForm.vue index fde540cd..7fece2d2 100644 --- a/src/components/Table/src/TableSelectForm.vue +++ b/src/components/Table/src/TableSelectForm.vue @@ -1,4 +1,4 @@ - +