From 1cbc8a29dadb52a9c7fae97beb1f6fbb29367400 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sat, 3 Feb 2024 20:47:50 +0800 Subject: [PATCH] =?UTF-8?q?CRM-=E5=90=88=E5=90=8C=EF=BC=9A=E5=AE=8C?= =?UTF-8?q?=E5=96=84=20TODO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 6d0e242387476f7cff3902b1a07e4e224843a397) --- src/api/crm/business/index.ts | 5 +- src/api/crm/clue/index.ts | 6 ++ src/api/crm/contact/index.ts | 4 +- src/api/crm/contract/index.ts | 9 +-- src/api/crm/customer/index.ts | 4 +- src/components/Table/src/TableSelectForm.vue | 2 +- src/views/crm/contact/detail/index.vue | 2 +- src/views/crm/contract/ContractForm.vue | 7 +- .../crm/contract/components/ProductList.vue | 44 ++++++++++--- .../contract/detail/ContractDetailsHeader.vue | 20 +++--- .../contract/detail/ContractDetailsInfo.vue | 35 +++++++++- .../contract/detail/ContractProductList.vue | 64 +++++++++++++++++++ src/views/crm/contract/detail/index.vue | 25 +++----- src/views/crm/contract/index.vue | 38 ++++------- src/views/crm/customer/detail/index.vue | 2 +- src/views/crm/customer/index.vue | 7 +- 16 files changed, 194 insertions(+), 80 deletions(-) create mode 100644 src/views/crm/contract/detail/ContractProductList.vue 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 @@ - +