From cc90ed98b1b5ce399d7b2e12affd280dd7d5ac42 Mon Sep 17 00:00:00 2001
From: wangzhen <15712990964@163.com>
Date: Mon, 26 May 2025 09:52:07 +0800
Subject: [PATCH] =?UTF-8?q?CRM=E5=AE=A2=E6=88=B7=E5=85=B3=E8=81=94?=
=?UTF-8?q?=E5=8D=95=E4=BD=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/crm/customercompany/index.ts | 47 ++++
.../customercompany/CustomerCompanyForm.vue | 130 +++++++++
src/views/crm/customercompany/index.vue | 264 ++++++++++++++++++
3 files changed, 441 insertions(+)
create mode 100644 src/api/crm/customercompany/index.ts
create mode 100644 src/views/crm/customercompany/CustomerCompanyForm.vue
create mode 100644 src/views/crm/customercompany/index.vue
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