diff --git a/src/api/crm/customercompany/index.ts b/src/api/crm/customercompany/index.ts new file mode 100644 index 000000000..6d6f675db --- /dev/null +++ b/src/api/crm/customercompany/index.ts @@ -0,0 +1,47 @@ +import request from '@/config/axios' + +// 客户关联单位 VO +export interface CustomerCompanyVO { + id: number // ID + customerId: number // 客户ID + companyName: string // 单位名称 + unifiedCreditCode: string // 统一社会信用代码 + invoicingAddress: string // 开票地址 + invoicingTelephone: string // 开票电话 + companyBank: string // 开户行 + companyAccount: string // 开户账号 + companyAddress: string // 通讯地址 +} + +// 客户关联单位 API +export const CustomerCompanyApi = { + // 查询客户关联单位分页 + getCustomerCompanyPage: async (params: any) => { + return await request.get({ url: `/crm/customer-company/page`, params }) + }, + + // 查询客户关联单位详情 + getCustomerCompany: async (id: number) => { + return await request.get({ url: `/crm/customer-company/get?id=` + id }) + }, + + // 新增客户关联单位 + createCustomerCompany: async (data: CustomerCompanyVO) => { + return await request.post({ url: `/crm/customer-company/create`, data }) + }, + + // 修改客户关联单位 + updateCustomerCompany: async (data: CustomerCompanyVO) => { + return await request.put({ url: `/crm/customer-company/update`, data }) + }, + + // 删除客户关联单位 + deleteCustomerCompany: async (id: number) => { + return await request.delete({ url: `/crm/customer-company/delete?id=` + id }) + }, + + // 导出客户关联单位 Excel + exportCustomerCompany: async (params) => { + return await request.download({ url: `/crm/customer-company/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/src/views/crm/customercompany/CustomerCompanyForm.vue b/src/views/crm/customercompany/CustomerCompanyForm.vue new file mode 100644 index 000000000..15c1bb254 --- /dev/null +++ b/src/views/crm/customercompany/CustomerCompanyForm.vue @@ -0,0 +1,130 @@ + + \ No newline at end of file diff --git a/src/views/crm/customercompany/index.vue b/src/views/crm/customercompany/index.vue new file mode 100644 index 000000000..738c4b705 --- /dev/null +++ b/src/views/crm/customercompany/index.vue @@ -0,0 +1,264 @@ + + + \ No newline at end of file