diff --git a/src/api/crm/quotation/index.ts b/src/api/crm/quotation/index.ts index b9dd497bb..41b6c6bb3 100644 --- a/src/api/crm/quotation/index.ts +++ b/src/api/crm/quotation/index.ts @@ -45,8 +45,9 @@ export const QuotationApi = { return await request.get({ url: `/crm/quotation/simple-all-list` }) }, // 获得 CRM 方案营收分析 - getRevenueList : async () => { - return await request.get({ url: `/crm/quotation/get-revenue-analysis` }) + getRevenueList : async (data: any) => { + return await request.post({ url: `/crm/quotation/get-revenue-analysis`, + data }) }, // 获得 CRM 方案列表(精简) diff --git a/src/api/task/briefWork/index.ts b/src/api/task/briefWork/index.ts new file mode 100644 index 000000000..f4f9a7828 --- /dev/null +++ b/src/api/task/briefWork/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +// 工作简报 VO +export interface BriefWorkVO { + id: number // 唯一主键 + briefType: number // 简报类型:1-日报,2-周报,3-月报 + briefCount: number // 周报为周数/月报为月数 + briefStartDate: Date // 简报开始日期 + briefEndDate: Date // 简报结束日期 + selectCustomer: boolean // 是否选择客户 + workComplate: string // 本周期完成工作 + workPlan: string // 下周期工作计划 + workAssistance: string // 工作困难及协助 + workExperience: string // 工作心得分享 + attachment: string // 附件 + processInstanceId: string // 工作流编号 + auditStatus: number // 审批状态 +} + +// 工作简报 API +export const BriefWorkApi = { + // 查询工作简报分页 + getBriefWorkPage: async (params: any) => { + return await request.get({ url: `/tts/brief-work/page`, params }) + }, + + // 查询工作简报详情 + getBriefWork: async (params: any) => { + return await request.get({ url: `/tts/brief-work/get`, params}) + }, + + // 新增工作简报 + createBriefWork: async (data: BriefWorkVO) => { + return await request.post({ url: `/tts/brief-work/create`, data }) + }, + + // 修改工作简报 + updateBriefWork: async (data: BriefWorkVO) => { + return await request.put({ url: `/tts/brief-work/update`, data }) + }, + + // 删除工作简报 + deleteBriefWork: async (id: number) => { + return await request.delete({ url: `/tts/brief-work/delete?id=` + id }) + }, + + // 导出工作简报 Excel + exportBriefWork: async (params) => { + return await request.download({ url: `/tts/brief-work/export-excel`, params }) + } +} \ No newline at end of file diff --git a/src/api/task/briefWorkCustomer/index.ts b/src/api/task/briefWorkCustomer/index.ts new file mode 100644 index 000000000..c2dd93583 --- /dev/null +++ b/src/api/task/briefWorkCustomer/index.ts @@ -0,0 +1,40 @@ +import request from '@/config/axios' + +// 工作简报客户 VO +export interface BriefWorkCustomerVO { + briefId: number // 简报ID + customerId: number // 客户Id +} + +// 工作简报客户 API +export const BriefWorkCustomerApi = { + // 查询工作简报客户分页 + getBriefWorkCustomerPage: async (params: any) => { + return await request.get({ url: `/tts/brief-work-customer/page`, params }) + }, + + // 查询工作简报客户详情 + getBriefWorkCustomer: async (id: number) => { + return await request.get({ url: `/tts/brief-work-customer/get?id=` + id }) + }, + + // 新增工作简报客户 + createBriefWorkCustomer: async (data: BriefWorkCustomerVO) => { + return await request.post({ url: `/tts/brief-work-customer/create`, data }) + }, + + // 修改工作简报客户 + updateBriefWorkCustomer: async (data: BriefWorkCustomerVO) => { + return await request.put({ url: `/tts/brief-work-customer/update`, data }) + }, + + // 删除工作简报客户 + deleteBriefWorkCustomer: async (id: number) => { + return await request.delete({ url: `/tts/brief-work-customer/delete?id=` + id }) + }, + + // 导出工作简报客户 Excel + exportBriefWorkCustomer: async (params) => { + return await request.download({ url: `/tts/brief-work-customer/export-excel`, params }) + } +} \ No newline at end of file diff --git a/src/components/Task/index.vue b/src/components/Task/index.vue new file mode 100644 index 000000000..3cc0ffc86 --- /dev/null +++ b/src/components/Task/index.vue @@ -0,0 +1,176 @@ + + + diff --git a/src/components/customer/index.vue b/src/components/customer/index.vue new file mode 100644 index 000000000..841c49306 --- /dev/null +++ b/src/components/customer/index.vue @@ -0,0 +1,171 @@ + + + diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index c2f26a2e2..c34e7256c 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -882,6 +882,50 @@ const remainingRouter: AppRouteRecordRaw[] = [ }, component: () => import('@/views/task/online/OnlineApplicationDetail.vue') }, + { + path: 'briefWork/BriefWorkDetail', + name: 'DayReportDetail', + meta: { + title: '日报详情', + noCache: true, + hidden: true, + activeMenu: '/project/briefWork' + }, + component: () => import('@/views/task/briefWork/BriefWorkDetail.vue') + }, + { + path: 'briefWork/BriefWorkForm', + name: 'DayReportAdd', + meta: { + title: '日报新增', + noCache: true, + hidden: true, + activeMenu: '/project/briefWork' + }, + component: () => import('@/views/task/briefWork/BriefWorkForm.vue') + }, + { + path: 'briefWeekWork/BriefworkWeekDetail', + name: 'WeekReportDetail', + meta: { + title: '周报详情', + noCache: true, + hidden: true, + activeMenu: '/project/bridfWeekWork' + }, + component: () => import('@/views/task/briefWeekWork/BriefWorkWeekDetail.vue') + }, + { + path: 'briefWeekWork/BriefWorkWeekForm', + name: 'WeekReportAdd', + meta: { + title: '周报新增', + noCache: true, + hidden: true, + activeMenu: '/project/bridfWeekWork' + }, + component: () => import('@/views/task/briefWeekWork/BriefWorkWeekForm.vue') + }, ] }, { diff --git a/src/views/crm/business/index.vue b/src/views/crm/business/index.vue index 233d76caf..ca79b9e61 100644 --- a/src/views/crm/business/index.vue +++ b/src/views/crm/business/index.vue @@ -46,11 +46,11 @@ - +