From 956f19d9d08930f2617ca76a96e841e86b7a9e91 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 1 Feb 2024 13:38:14 +0800 Subject: [PATCH] =?UTF-8?q?CRM=EF=BC=9A=E5=90=88=E5=90=8C=E7=9A=84=20code?= =?UTF-8?q?=20review?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bpm/model/index.ts | 2 + src/api/crm/bi/ranking.ts | 2 + src/api/crm/business/index.ts | 1 + src/api/crm/contract/index.ts | 1 + src/components/Table/src/TableSelectForm.vue | 1 + src/views/crm/backlog/index.vue | 2 +- src/views/crm/bi/ranking/index.vue | 5 ++- src/views/crm/contact/detail/index.vue | 12 +++--- src/views/crm/contract/ContractForm.vue | 42 ++++++++++++------- .../crm/contract/components/ProductList.vue | 16 ++++++- .../contract/detail/ContractDetailsHeader.vue | 1 + .../contract/detail/ContractDetailsInfo.vue | 1 + src/views/crm/contract/detail/index.vue | 11 ++++- .../crm/contract/oa/ContractDetail/index.vue | 1 + src/views/crm/customer/CustomerImportForm.vue | 3 +- src/views/crm/customer/index.vue | 4 ++ 16 files changed, 77 insertions(+), 28 deletions(-) diff --git a/src/api/bpm/model/index.ts b/src/api/bpm/model/index.ts index fea5ecf0..d0547207 100644 --- a/src/api/bpm/model/index.ts +++ b/src/api/bpm/model/index.ts @@ -32,9 +32,11 @@ export const getModelPage = async (params) => { export const getModel = async (id: number) => { return await request.get({ url: '/bpm/model/get?id=' + id }) } + export const getModelByKey = async (key: string) => { return await request.get({ url: '/bpm/model/get-by-key?key=' + key }) } + export const updateModel = async (data: ModelVO) => { return await request.put({ url: '/bpm/model/update', data: data }) } diff --git a/src/api/crm/bi/ranking.ts b/src/api/crm/bi/ranking.ts index 53c09e63..aa0b7fdb 100644 --- a/src/api/crm/bi/ranking.ts +++ b/src/api/crm/bi/ranking.ts @@ -5,11 +5,13 @@ export interface BiContractRanKingRespVO { nickname: string deptName: string } + export interface BiReceivablesRanKingRespVO { price: number nickname: string deptName: string } + export interface BiRankReqVO { deptId: number type: string diff --git a/src/api/crm/business/index.ts b/src/api/crm/business/index.ts index 314eb389..79568dec 100644 --- a/src/api/crm/business/index.ts +++ b/src/api/crm/business/index.ts @@ -73,6 +73,7 @@ export const getBusinessListByIds = async (val: number[]) => { } // 商机转移 +// TODO @puhui999:transferBusiness export const transfer = async (data: TransferReqVO) => { return await request.put({ url: '/crm/business/transfer', data }) } diff --git a/src/api/crm/contract/index.ts b/src/api/crm/contract/index.ts index 731750c1..58f63631 100644 --- a/src/api/crm/contract/index.ts +++ b/src/api/crm/contract/index.ts @@ -71,6 +71,7 @@ export const handleApprove = async (id: number) => { } // 合同转移 +// TODO @puhui999:transfer 相关方法,这块要补充下; export const transfer = async (data: TransferReqVO) => { return await request.put({ url: '/crm/contract/transfer', data }) } diff --git a/src/components/Table/src/TableSelectForm.vue b/src/components/Table/src/TableSelectForm.vue index 55b2855e..fde540cd 100644 --- a/src/components/Table/src/TableSelectForm.vue +++ b/src/components/Table/src/TableSelectForm.vue @@ -1,3 +1,4 @@ +