From 7ad1457f799cf7af8252316dc6cda36165062a53 Mon Sep 17 00:00:00 2001
From: liuhongfeng <291117974@qq.com>
Date: Fri, 20 Oct 2023 22:17:05 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91?=
=?UTF-8?q?=E5=9B=9E=E6=AC=BE=E7=AE=A1=E7=90=86=20=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/crm/receivable/index.ts | 51 +++
src/utils/dict.ts | 6 +-
src/views/crm/receivable/ReceivableForm.vue | 187 ++++++++++
src/views/crm/receivable/index.vue | 365 ++++++++++++++++++++
4 files changed, 608 insertions(+), 1 deletion(-)
create mode 100644 src/api/crm/receivable/index.ts
create mode 100644 src/views/crm/receivable/ReceivableForm.vue
create mode 100644 src/views/crm/receivable/index.vue
diff --git a/src/api/crm/receivable/index.ts b/src/api/crm/receivable/index.ts
new file mode 100644
index 00000000..0828bf4b
--- /dev/null
+++ b/src/api/crm/receivable/index.ts
@@ -0,0 +1,51 @@
+import request from '@/config/axios'
+
+export interface ReceivableVO {
+ id: number
+ no: string
+ planId: number
+ customerId: number
+ contractId: number
+ checkStatus: number
+ processInstanceId: number
+ returnTime: Date
+ returnType: string
+ price: number
+ ownerUserId: number
+ batchId: number
+ sort: number
+ dataScope: number
+ dataScopeDeptIds: string
+ status: number
+ remark: string
+}
+
+// 查询回款管理列表
+export const getReceivablePage = async (params) => {
+ return await request.get({ url: `/crm/receivable/page`, params })
+}
+
+// 查询回款管理详情
+export const getReceivable = async (id: number) => {
+ return await request.get({ url: `/crm/receivable/get?id=` + id })
+}
+
+// 新增回款管理
+export const createReceivable = async (data: ReceivableVO) => {
+ return await request.post({ url: `/crm/receivable/create`, data })
+}
+
+// 修改回款管理
+export const updateReceivable = async (data: ReceivableVO) => {
+ return await request.put({ url: `/crm/receivable/update`, data })
+}
+
+// 删除回款管理
+export const deleteReceivable = async (id: number) => {
+ return await request.delete({ url: `/crm/receivable/delete?id=` + id })
+}
+
+// 导出回款管理 Excel
+export const exportReceivable = async (params) => {
+ return await request.download({ url: `/crm/receivable/export-excel`, params })
+}
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index 1fc0ab27..448a03dd 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -182,5 +182,9 @@ export enum DICT_TYPE {
PROMOTION_ACTIVITY_STATUS = 'promotion_activity_status', // 优惠活动的状态
PROMOTION_CONDITION_TYPE = 'promotion_condition_type', // 营销的条件类型枚举
PROMOTION_BARGAIN_RECORD_STATUS = 'promotion_bargain_record_status', // 砍价记录的状态
- PROMOTION_COMBINATION_RECORD_STATUS = 'promotion_combination_record_status' // 拼团记录的状态
+ PROMOTION_COMBINATION_RECORD_STATUS = 'promotion_combination_record_status', // 拼团记录的状态
+
+ // ========== CRM - 客户管理模块 ==========
+ CRM_RECEIVABLE_CHECK_STATUS = 'crm_receivable_check_status',
+ CRM_RETURN_TYPE = 'crm_return_type'
}
diff --git a/src/views/crm/receivable/ReceivableForm.vue b/src/views/crm/receivable/ReceivableForm.vue
new file mode 100644
index 00000000..2b9278fe
--- /dev/null
+++ b/src/views/crm/receivable/ReceivableForm.vue
@@ -0,0 +1,187 @@
+
+
+
+
diff --git a/src/views/crm/receivable/index.vue b/src/views/crm/receivable/index.vue
new file mode 100644
index 00000000..8a07fdda
--- /dev/null
+++ b/src/views/crm/receivable/index.vue
@@ -0,0 +1,365 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
From 26780c3525405b9e9109854edea2cee6f75c3d93 Mon Sep 17 00:00:00 2001
From: liuhongfeng <291117974@qq.com>
Date: Fri, 20 Oct 2023 23:48:39 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91?=
=?UTF-8?q?=E5=9B=9E=E6=AC=BE=E8=AE=A1=E5=88=92=20=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/crm/receivablePlan/index.ts | 49 +++
.../crm/receivablePlan/ReceivablePlanForm.vue | 181 ++++++++++
src/views/crm/receivablePlan/index.vue | 326 ++++++++++++++++++
3 files changed, 556 insertions(+)
create mode 100644 src/api/crm/receivablePlan/index.ts
create mode 100644 src/views/crm/receivablePlan/ReceivablePlanForm.vue
create mode 100644 src/views/crm/receivablePlan/index.vue
diff --git a/src/api/crm/receivablePlan/index.ts b/src/api/crm/receivablePlan/index.ts
new file mode 100644
index 00000000..178b21b5
--- /dev/null
+++ b/src/api/crm/receivablePlan/index.ts
@@ -0,0 +1,49 @@
+import request from '@/config/axios'
+
+export interface ReceivablePlanVO {
+ id: number
+ indexNo: number
+ receivableId: number
+ status: number
+ checkStatus: string
+ processInstanceId: number
+ price: number
+ returnTime: Date
+ remindDays: number
+ remindTime: Date
+ customerId: number
+ contractId: number
+ ownerUserId: number
+ sort: number
+ remark: string
+}
+
+// 查询回款计划列表
+export const getReceivablePlanPage = async (params) => {
+ return await request.get({ url: `/crm/receivable-plan/page`, params })
+}
+
+// 查询回款计划详情
+export const getReceivablePlan = async (id: number) => {
+ return await request.get({ url: `/crm/receivable-plan/get?id=` + id })
+}
+
+// 新增回款计划
+export const createReceivablePlan = async (data: ReceivablePlanVO) => {
+ return await request.post({ url: `/crm/receivable-plan/create`, data })
+}
+
+// 修改回款计划
+export const updateReceivablePlan = async (data: ReceivablePlanVO) => {
+ return await request.put({ url: `/crm/receivable-plan/update`, data })
+}
+
+// 删除回款计划
+export const deleteReceivablePlan = async (id: number) => {
+ return await request.delete({ url: `/crm/receivable-plan/delete?id=` + id })
+}
+
+// 导出回款计划 Excel
+export const exportReceivablePlan = async (params) => {
+ return await request.download({ url: `/crm/receivable-plan/export-excel`, params })
+}
diff --git a/src/views/crm/receivablePlan/ReceivablePlanForm.vue b/src/views/crm/receivablePlan/ReceivablePlanForm.vue
new file mode 100644
index 00000000..22022ea0
--- /dev/null
+++ b/src/views/crm/receivablePlan/ReceivablePlanForm.vue
@@ -0,0 +1,181 @@
+
+
+
+
diff --git a/src/views/crm/receivablePlan/index.vue b/src/views/crm/receivablePlan/index.vue
new file mode 100644
index 00000000..46857dcd
--- /dev/null
+++ b/src/views/crm/receivablePlan/index.vue
@@ -0,0 +1,326 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+