diff --git a/src/api/crm/business/index.ts b/src/api/crm/business/index.ts index 37304f5a..8dd06563 100644 --- a/src/api/crm/business/index.ts +++ b/src/api/crm/business/index.ts @@ -4,22 +4,29 @@ import { TransferReqVO } from '@/api/crm/customer' export interface BusinessVO { id: number name: string - statusTypeId: number - statusId: number - contactNextTime: Date customerId: number - dealTime: Date - price: number - discountPercent: number - productPrice: number - remark: string + customerName?: string + followUpStatus: boolean + contactLastTime: Date + contactNextTime: Date ownerUserId: number - roUserIds: string - rwUserIds: string + ownerUserName?: string // 负责人的用户名称 + ownerUserDept?: string // 负责人的部门名称 + statusTypeId: number + statusTypeName?: string + statusId: number + statusName?: string endStatus: number endRemark: string - contactLastTime: Date - followUpStatus: number + dealTime: Date + totalProductPrice: number + totalPrice: number + discountPercent: number + remark: string + creator: string // 创建人 + creatorName?: string // 创建人名称 + createTime: Date // 创建时间 + updateTime: Date // 更新时间 } // 查询 CRM 商机列表 diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 4f845d0d..08d5db98 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -104,7 +104,6 @@ const remainingRouter: AppRouteRecordRaw[] = [ } ] }, - { path: '/dict', component: Layout, @@ -518,6 +517,17 @@ const remainingRouter: AppRouteRecordRaw[] = [ }, component: () => import('@/views/crm/customer/detail/index.vue') }, + { + path: 'business/detail/:id', + name: 'CrmBusinessDetail', + meta: { + title: '商机详情', + noCache: true, + hidden: true, + activeMenu: '/crm/business' + }, + component: () => import('@/views/crm/business/detail/index.vue') + }, { path: 'contract/detail/:id', name: 'CrmContractDetail', diff --git a/src/views/crm/business/detail/BusinessDetailsHeader.vue b/src/views/crm/business/detail/BusinessDetailsHeader.vue new file mode 100644 index 00000000..50d1efea --- /dev/null +++ b/src/views/crm/business/detail/BusinessDetailsHeader.vue @@ -0,0 +1,37 @@ + + + + + + + {{ business.name }} + + + + + + + + + + + + {{ business.customerName }} + + {{ erpPriceInputFormatter(business.totalPrice) }} + + {{ business.statusTypeName }} + {{ business.ownerUserName }} + + {{ formatDate(business.createTime) }} + + + + + diff --git a/src/views/crm/business/detail/BusinessDetailsInfo.vue b/src/views/crm/business/detail/BusinessDetailsInfo.vue new file mode 100644 index 00000000..a2c9ce18 --- /dev/null +++ b/src/views/crm/business/detail/BusinessDetailsInfo.vue @@ -0,0 +1,61 @@ + + + + + + 基本信息 + + + {{ business.name }} + {{ business.customerName }} + + {{ erpPriceInputFormatter(business.totalPrice) }} + + + {{ formatDate(business.dealTime) }} + + + {{ formatDate(business.contactNextTime) }} + + + {{ business.statusTypeName }} + + {{ business.statusName }} + {{ business.remark }} + + + + + 系统信息 + + + {{ business.ownerUserName }} + + {{ formatDate(business.contactLastTime) }} + + + + {{ business.creatorName }} + + {{ formatDate(business.createTime) }} + + + {{ formatDate(business.updateTime) }} + + + + + + + diff --git a/src/views/crm/business/detail/index.vue b/src/views/crm/business/detail/index.vue new file mode 100644 index 00000000..a0aa89ee --- /dev/null +++ b/src/views/crm/business/detail/index.vue @@ -0,0 +1,121 @@ + + + + 编辑 + + + 转移 + + + + + + + + + + + + + + + + + + + + + + + + + +