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] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=E5=9B=9E?=
=?UTF-8?q?=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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+