diff --git a/src/api/crm/business/index.ts b/src/api/crm/business/index.ts index b6661765..24204255 100644 --- a/src/api/crm/business/index.ts +++ b/src/api/crm/business/index.ts @@ -1,5 +1,5 @@ import request from '@/config/axios' -import { TransferReqVO } from '@/api/crm/customer' +import { TransferReqVO } from '@/api/crm/permission' export interface BusinessVO { id: number diff --git a/src/api/crm/clue/index.ts b/src/api/crm/clue/index.ts index 170f244d..9736514d 100644 --- a/src/api/crm/clue/index.ts +++ b/src/api/crm/clue/index.ts @@ -1,5 +1,5 @@ import request from '@/config/axios' -import { TransferReqVO } from '@/api/crm/customer' +import { TransferReqVO } from '@/api/crm/permission' export interface ClueVO { id: number // 编号 diff --git a/src/api/crm/contact/index.ts b/src/api/crm/contact/index.ts index 67036194..7c24dfa9 100644 --- a/src/api/crm/contact/index.ts +++ b/src/api/crm/contact/index.ts @@ -1,5 +1,5 @@ import request from '@/config/axios' -import { TransferReqVO } from '@/api/crm/customer' +import { TransferReqVO } from '@/api/crm/permission' export interface ContactVO { id: number // 编号 diff --git a/src/api/crm/contract/index.ts b/src/api/crm/contract/index.ts index faee9495..7028b774 100644 --- a/src/api/crm/contract/index.ts +++ b/src/api/crm/contract/index.ts @@ -1,5 +1,5 @@ import request from '@/config/axios' -import { TransferReqVO } from '@/api/crm/customer' +import { TransferReqVO } from '@/api/crm/permission' export interface ContractVO { id: number diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index c684e98d..d149d4e7 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -1,4 +1,5 @@ import request from '@/config/axios' +import { TransferReqVO } from '@/api/crm/permission' export interface CustomerVO { id: number // 编号 @@ -102,12 +103,6 @@ export const getCustomerSimpleList = async () => { // ======================= 业务操作 ======================= -export interface TransferReqVO { - id: number | undefined // 客户编号 - newOwnerUserId: number | undefined // 新负责人的用户编号 - oldOwnerPermissionLevel: number | undefined // 老负责人加入团队后的权限级别 -} - // 客户转移 export const transferCustomer = async (data: TransferReqVO) => { return await request.put({ url: '/crm/customer/transfer', data }) diff --git a/src/api/crm/permission/index.ts b/src/api/crm/permission/index.ts index 31f9e18d..e1f31747 100644 --- a/src/api/crm/permission/index.ts +++ b/src/api/crm/permission/index.ts @@ -6,6 +6,7 @@ export interface PermissionVO { bizType: number // Crm 类型 bizId: number // Crm 类型数据编号 level: number // 权限级别 + toBizTypes?: number[] // 同时添加至 deptName?: string // 部门名称 nickname?: string // 用户昵称 postNames?: string[] // 岗位名称数组 @@ -13,6 +14,13 @@ export interface PermissionVO { ids?: number[] } +export interface TransferReqVO { + bizId: number // 模块编号 + newOwnerUserId: number // 新负责人的用户编号 + oldOwnerPermissionLevel: number // 老负责人加入团队后的权限级别 + toBizTypes?: number[] // 转移客户时,需要额外有【联系人】【商机】【合同】的 checkbox 选择 +} + /** * CRM 业务类型枚举 * diff --git a/src/api/crm/receivable/index.ts b/src/api/crm/receivable/index.ts index 069d6c4a..32ecd25a 100644 --- a/src/api/crm/receivable/index.ts +++ b/src/api/crm/receivable/index.ts @@ -3,18 +3,20 @@ import request from '@/config/axios' export interface ReceivableVO { id: number no: string - planId: number - customerId: number + planId?: number + customerId?: number customerName?: string - contractId: number + contractId?: number contract?: { + id?: number + name?: string no: string totalPrice: number } auditStatus: number processInstanceId: number returnTime: Date - returnType: string + returnType: number price: number ownerUserId: number ownerUserName?: string diff --git a/src/api/crm/receivable/plan/index.ts b/src/api/crm/receivable/plan/index.ts index 6e0cab4a..770b3477 100644 --- a/src/api/crm/receivable/plan/index.ts +++ b/src/api/crm/receivable/plan/index.ts @@ -11,7 +11,7 @@ export interface ReceivablePlanVO { remindTime: Date customerId: number customerName?: string - contractId: number + contractId?: number contractNo?: string ownerUserId: number ownerUserName?: string diff --git a/src/views/crm/business/detail/index.vue b/src/views/crm/business/detail/index.vue index 6b86a41e..0c280734 100644 --- a/src/views/crm/business/detail/index.vue +++ b/src/views/crm/business/detail/index.vue @@ -4,8 +4,8 @@ 编辑 @@ -53,13 +53,12 @@ - - - + + + diff --git a/src/views/crm/clue/detail/index.vue b/src/views/crm/clue/detail/index.vue index f9074c14..8f005e1c 100644 --- a/src/views/crm/clue/detail/index.vue +++ b/src/views/crm/clue/detail/index.vue @@ -18,7 +18,7 @@ > 转化为客户 - 已转化客户 + 已转化客户 @@ -45,7 +45,7 @@ - + diff --git a/src/views/crm/contract/detail/index.vue b/src/views/crm/contract/detail/index.vue index bd30489a..f3b038ed 100644 --- a/src/views/crm/contract/detail/index.vue +++ b/src/views/crm/contract/detail/index.vue @@ -48,7 +48,7 @@ - +