[feat] 新增项目信息管理模块

This commit is contained in:
2024-07-06 20:22:49 +08:00
parent 265dc4cdc8
commit 14a8fc6434
8 changed files with 758 additions and 45 deletions

View File

@@ -1,43 +1,48 @@
import request from '@/config/axios'
// 客户公司 VO
export interface CustomerCompanyVO {
id: number // 主键
contacts: string // 联系人
name: string // 公司名称
address: string // 地址
phone: string // 电话
}
// 客户公司 API
export const CustomerCompanyApi = {
// 查询客户公司分页
getCustomerCompanyPage: async (params: any) => {
return await request.get({ url: `/cms/customer-company/page`, params })
},
// 查询客户公司详情
getCustomerCompany: async (id: number) => {
return await request.get({ url: `/cms/customer-company/get?id=` + id })
},
// 新增客户公司
createCustomerCompany: async (data: CustomerCompanyVO) => {
return await request.post({ url: `/cms/customer-company/create`, data })
},
// 修改客户公司
updateCustomerCompany: async (data: CustomerCompanyVO) => {
return await request.put({ url: `/cms/customer-company/update`, data })
},
// 删除客户公司
deleteCustomerCompany: async (id: number) => {
return await request.delete({ url: `/cms/customer-company/delete?id=` + id })
},
// 导出客户公司 Excel
exportCustomerCompany: async (params) => {
return await request.download({ url: `/cms/customer-company/export-excel`, params })
},
}
import request from '@/config/axios'
// 客户公司 VO
export interface CustomerCompanyVO {
id: number // 主键
contacts: string // 联系人
name: string // 公司名称
address: string // 地址
phone: string // 电话
}
// 客户公司 API
export const CustomerCompanyApi = {
// 查询客户公司分页
getCustomerCompanyPage: async (params: any) => {
return await request.get({ url: `/cms/customer-company/page`, params })
},
// 查询客户公司详情
getCustomerCompany: async (id: number) => {
return await request.get({ url: `/cms/customer-company/get?id=` + id })
},
// 新增客户公司
createCustomerCompany: async (data: CustomerCompanyVO) => {
return await request.post({ url: `/cms/customer-company/create`, data })
},
// 修改客户公司
updateCustomerCompany: async (data: CustomerCompanyVO) => {
return await request.put({ url: `/cms/customer-company/update`, data })
},
// 删除客户公司
deleteCustomerCompany: async (id: number) => {
return await request.delete({ url: `/cms/customer-company/delete?id=` + id })
},
// 导出客户公司 Excel
exportCustomerCompany: async (params) => {
return await request.download({ url: `/cms/customer-company/export-excel`, params })
},
// 获取客户公司列表
getCustomerCompanyList: async () => {
return await request.get({ url: `/cms/customer-company/list`})
},
}

View File

@@ -43,3 +43,8 @@ export const createFile = (data: any) => {
export const updateFile = (data: any) => {
return request.upload({ url: '/infra/file/upload', data })
}
// 上传文件
export const updateFileEx = (data: any) => {
return request.upload({ url: '/infra/file/uploadEx', data })
}

View File

@@ -0,0 +1,66 @@
import request from '@/config/axios'
// 项目基本信息 VO
export interface ProjectVO {
id: number // 主键
name: string // 名称
code: string // 项目编号
customerUser: string // 客户联系人
drawingCompany: string // 出图公司
trackingDepId: number // 跟踪部门id
endTime: Date // 落地时间
possibility: string // 落地可能性
funnelExpectation: string // 漏斗预期
entrustMethod: string // 委托方式
reason: string // 未落地原因
processStatus: string // 审批状态
trackingCode: string // 跟踪编号
type: string // 类型
customerCompanyId: number // 客户公司id
projectManagerId: number // 项目经理id
startTime: Date // 开始时间
situation: string // 跟踪情况
reviewFileUrl: string // 评审附件
confirmation: boolean // 是否落地
winFileUrl: string // 中标附件
contractAmount: string // 预计合同金额
customerPhone: string // 客户电话
provinceId: number // 省份id
cityId: number // 城市id
trackingDeptName: string // 跟踪部门名称
projectManagerName: string // 项目经理名称
customerCompanyName: string // 客户公司名称
}
// 项目基本信息 API
export const ProjectApi = {
// 查询项目基本信息分页
getProjectPage: async (params: any) => {
return await request.get({ url: `/pms/project/page`, params })
},
// 查询项目基本信息详情
getProject: async (id: number) => {
return await request.get({ url: `/pms/project/get?id=` + id })
},
// 新增项目基本信息
createProject: async (data: ProjectVO) => {
return await request.post({ url: `/pms/project/create`, data })
},
// 修改项目基本信息
updateProject: async (data: ProjectVO) => {
return await request.put({ url: `/pms/project/update`, data })
},
// 删除项目基本信息
deleteProject: async (id: number) => {
return await request.delete({ url: `/pms/project/delete?id=` + id })
},
// 导出项目基本信息 Excel
exportProject: async (params) => {
return await request.download({ url: `/pms/project/export-excel`, params })
},
}