From 293dd724205b9f2a94bbcc8e4b62299e35571832 Mon Sep 17 00:00:00 2001
From: wersd <1523826083@qq.com>
Date: Sun, 8 Jun 2025 20:12:31 +0800
Subject: [PATCH] =?UTF-8?q?CRM=20=E5=AE=A2=E6=88=B7=E7=AE=A1=E7=90=86=20?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9D=83=E9=99=90=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.test | 2 +-
src/views/crm/contract/ContractForm.vue | 31 -------------------
src/views/crm/customer/detail/index.vue | 15 +++++----
src/views/crm/customer/index.vue | 10 ------
.../permission/components/TransferForm.vue | 7 ++---
5 files changed, 10 insertions(+), 55 deletions(-)
diff --git a/.env.test b/.env.test
index 3436f5776..80763d8ff 100644
--- a/.env.test
+++ b/.env.test
@@ -4,7 +4,7 @@ NODE_ENV=production
VITE_DEV=true
# 请求路径
-VITE_BASE_URL='http://www.woyaoshouchong.asia:88'
+VITE_BASE_URL='http://www.sujieguanli.top:88'
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务
VITE_UPLOAD_TYPE=client
diff --git a/src/views/crm/contract/ContractForm.vue b/src/views/crm/contract/ContractForm.vue
index db2eec9bf..de1f52d24 100644
--- a/src/views/crm/contract/ContractForm.vue
+++ b/src/views/crm/contract/ContractForm.vue
@@ -53,23 +53,6 @@
-
-
-
-
-
-
-
@@ -288,8 +271,6 @@ const open = async (type: string, id?: number) => {
}
// 获取联系人
contactList.value = await ContactApi.getSimpleContactList()
- // 获得商机列表
- businessList.value = await BusinessApi.getSimpleBusinessList()
}
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
@@ -349,21 +330,9 @@ const handleCustomerChange = () => {
formData.value.products = []
}
-/** 处理商机变化 */
-const handleBusinessChange = async (businessId: number) => {
- const business = await BusinessApi.getBusiness(businessId)
- business.products.forEach((item) => {
- item.contractPrice = item.businessPrice
- })
- formData.value.products = business.products
-}
/** 动态获取客户联系人 */
const getContactOptions = computed(() =>
contactList.value.filter((item) => item.customerId == formData.value.customerId)
)
-/** 动态获取商机 */
-const getBusinessOptions = computed(() =>
- businessList.value.filter((item) => item.customerId == formData.value.customerId)
-)
diff --git a/src/views/crm/customer/detail/index.vue b/src/views/crm/customer/detail/index.vue
index 93e65fb9b..bc97ba819 100644
--- a/src/views/crm/customer/detail/index.vue
+++ b/src/views/crm/customer/detail/index.vue
@@ -1,35 +1,34 @@
编辑
-
+
转移
解锁
锁定
- 领取
+
@@ -42,7 +41,7 @@
-
+
diff --git a/src/views/crm/customer/index.vue b/src/views/crm/customer/index.vue
index e574b9176..3fc8f922a 100644
--- a/src/views/crm/customer/index.vue
+++ b/src/views/crm/customer/index.vue
@@ -91,11 +91,6 @@
-
-
-
-
-
{
- queryParams.sceneType = tab.paneName as string
- handleQuery()
-}
/** 查询列表 */
const getList = async () => {
diff --git a/src/views/crm/permission/components/TransferForm.vue b/src/views/crm/permission/components/TransferForm.vue
index a97abbbca..892bb6d0f 100644
--- a/src/views/crm/permission/components/TransferForm.vue
+++ b/src/views/crm/permission/components/TransferForm.vue
@@ -18,7 +18,7 @@
/>
-
+
确 定
@@ -68,9 +68,6 @@ const oldOwnerHandler = ref(false) // 老负责人的处理方式
const formData = ref({} as TransferReqVO)
const formRules = reactive({
newOwnerUserId: [{ required: true, message: '新负责人不能为空', trigger: 'blur' }],
- oldOwnerPermissionLevel: [
- { required: true, message: '老负责人加入团队后的权限级别不能为空', trigger: 'blur' }
- ]
})
const formRef = ref() // 表单 Ref