From 34a796de89b9d5e1fb660eb5bd4154a33ebf76f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=B5=A9=E6=B5=A9?= <1036606149@qq.com> Date: Wed, 31 Jan 2024 23:37:21 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E5=95=86?= =?UTF-8?q?=E4=B8=9A=E6=99=BA=E8=83=BD-=E6=8E=92=E8=A1=8C=E6=A6=9C?= =?UTF-8?q?=EF=BC=8C=E5=90=88=E5=90=8C=E9=87=91=E9=A2=9D=E6=8E=92=E8=A1=8C?= =?UTF-8?q?=E5=92=8C=E5=9B=9E=E6=AC=BE=E9=87=91=E9=A2=9D=E6=8E=92=E8=A1=8C?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=9D=A1=E4=BB=B6=E5=92=8C=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/bi/ranking.ts | 8 +++-- .../components/RankingContractStatistics.vue | 14 ++++++-- .../RankingReceivablesStatistics.vue | 16 +++++++-- src/views/crm/bi/ranking/index.vue | 34 ++++++++++++------- 4 files changed, 52 insertions(+), 20 deletions(-) diff --git a/src/api/crm/bi/ranking.ts b/src/api/crm/bi/ranking.ts index 53c09e63..f68c2dd0 100644 --- a/src/api/crm/bi/ranking.ts +++ b/src/api/crm/bi/ranking.ts @@ -12,7 +12,9 @@ export interface BiReceivablesRanKingRespVO { } export interface BiRankReqVO { deptId: number - type: string + orderDate: Date[] + startTime: Date + endTime: Date } // 排行 API @@ -20,14 +22,14 @@ export const RankingStatisticsApi = { // 获得合同排行榜 contractAmountRanking: (params: any) => { return request.get({ - url: '/bi/ranking/contract-ranking', + url: '/crm/bi-ranking/contract-ranking', params }) }, // 获得回款排行榜 receivablesAmountRanking: (params: any) => { return request.get({ - url: '/bi/ranking/receivables-ranking', + url: '/crm/bi-ranking/receivables-ranking', params }) } diff --git a/src/views/crm/bi/ranking/components/RankingContractStatistics.vue b/src/views/crm/bi/ranking/components/RankingContractStatistics.vue index b560131c..cf0c22f9 100644 --- a/src/views/crm/bi/ranking/components/RankingContractStatistics.vue +++ b/src/views/crm/bi/ranking/components/RankingContractStatistics.vue @@ -18,14 +18,21 @@ - diff --git a/src/views/crm/bi/ranking/components/RankingReceivablesStatistics.vue b/src/views/crm/bi/ranking/components/RankingReceivablesStatistics.vue deleted file mode 100644 index c56d94c7..00000000 --- a/src/views/crm/bi/ranking/components/RankingReceivablesStatistics.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - From 6d0e242387476f7cff3902b1a07e4e224843a397 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sat, 3 Feb 2024 20:47:50 +0800 Subject: [PATCH 4/9] =?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 --- 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 @@ - +