From 236c99ad92c4a78bde98ce03be18f2eb1ea2fe11 Mon Sep 17 00:00:00 2001
From: "PC-202311141343\\Administrator" <505354293@qq.com>
Date: Mon, 18 Aug 2025 16:30:52 +0800
Subject: [PATCH 1/9] =?UTF-8?q?=E6=8E=A8=E9=80=81=E5=B8=82=E5=9C=BA?=
=?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=A8=A1=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/crm/api_ys.js | 79 ++++
.../CRM/marketInformation/beCurrent.vue | 5 +
.../CRM/marketInformation/beCurrentDetail.vue | 12 +-
.../CRM/marketInformation/competitor.vue | 10 +-
.../marketInformation/competitorDetail.vue | 12 +-
.../CRM/marketInformation/infomationView.vue | 411 ++++++++++++++++++
.../marketInformation/informationDetail.vue | 288 ++++++++++++
.../CRM/marketInformation/keyModelTasks.vue | 5 +
.../marketInformation/keyModelTasksDetail.vue | 12 +-
.../CRM/marketInformation/majorMatter.vue | 5 +
.../marketInformation/majorMatterDetail.vue | 12 +-
.../marketInformation/marketInformation.vue | 35 +-
.../marketInformationReview.vue | 249 +++++++++++
.../marketInformationReviewDetail.vue | 385 ++++++++++++++++
.../marketInformation/marketOpportunities.vue | 23 +-
.../marketOpportunitiesDetail.vue | 11 +-
.../marketInformation/personnelChanges.vue | 43 +-
.../personnelChangesDetail.vue | 12 +-
18 files changed, 1542 insertions(+), 67 deletions(-)
create mode 100644 src/pages/business/CRM/marketInformation/infomationView.vue
create mode 100644 src/pages/business/CRM/marketInformation/informationDetail.vue
create mode 100644 src/pages/business/CRM/marketInformation/marketInformationReview.vue
create mode 100644 src/pages/business/CRM/marketInformation/marketInformationReviewDetail.vue
diff --git a/src/api/crm/api_ys.js b/src/api/crm/api_ys.js
index ef47b5e..67413af 100644
--- a/src/api/crm/api_ys.js
+++ b/src/api/crm/api_ys.js
@@ -56,4 +56,83 @@ import request from "@/utils/request"
data
})
}
+ //市场信息查询接口
+ export function viewingMarketInfForAllMembers(data) {
+ return request.get({
+ url: '/app/informationMarketInformation/viewList',
+ data
+ })
+ }
+ //市场信息详情查询接口
+ export function viewingMarketInfgetDetail(data) {
+ return request.get({
+ url: '/app/informationMarketInformation/getDetail',
+ data
+ })
+ }
+ //市场信审核列表接口
+ export function approvalMarketInfget(data) {
+ return request.get({
+ url: 'app/informationMarketInformation/Approval',
+ data
+ })
+ }
+ //回款模块列表查询
+ export function getPaymentList(data) {
+ return request.get({
+ url: '/app/InformationReviewController/getPaymentList',
+ data
+ })
+ }
+ //回款新增接口
+ export function addPaymentCollection(data) {
+ return request.post({
+ url: '/app/InformationReviewController/addPaymentCollection',
+ data
+ })
+ }
+ //回款更新接口
+ export function updatePaymentDetail(data) {
+ return request.post({
+ url: '/app/InformationReviewController/updatePaymentDetail',
+ data
+ })
+ }
+ //回款删除接口
+ export function deletePaymentDetail(data) {
+ return request.post({
+ url: '/app/InformationReviewController/deletePaymentDetail',
+ data
+ })
+ }
+
+ //全员查询回款接口
+ export function getFullStaffStatisticsViewingTable(data) {
+ return request.get({
+ url: '/app/InformationReviewController/getFullStaffStatisticsViewingTable',
+ data
+ })
+ }
+ //个人查询回款接口
+ export function getPersonalPaymentCollectionTable(data) {
+ return request.get({
+ url: '/app/InformationReviewController/getPersonalPaymentCollectionTable',
+ data
+ })
+ }
+
+ //市场信息审核通过接口
+ export function crmMarketInformationApprovalSuccess(data) {
+ return request.get({
+ url: '/app/informationMarketInformation/ApprovalSuccess',
+ data
+ })
+ }
+ //市场信息审核驳回接口
+ export function crmMarketInformationApprovalUnSuccess(data) {
+ return request.get({
+ url: '/app/informationMarketInformation/ApprovalUnSuccess',
+ data
+ })
+ }
\ No newline at end of file
diff --git a/src/pages/business/CRM/marketInformation/beCurrent.vue b/src/pages/business/CRM/marketInformation/beCurrent.vue
index 048a5d2..313a875 100644
--- a/src/pages/business/CRM/marketInformation/beCurrent.vue
+++ b/src/pages/business/CRM/marketInformation/beCurrent.vue
@@ -174,6 +174,11 @@
title: '提交成功',
icon: 'success'
})
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
+
console.log('表单数据:', formData.value)
} catch (err) {
console.log('表单验证失败:', err)
diff --git a/src/pages/business/CRM/marketInformation/beCurrentDetail.vue b/src/pages/business/CRM/marketInformation/beCurrentDetail.vue
index 7481d4a..31b78e6 100644
--- a/src/pages/business/CRM/marketInformation/beCurrentDetail.vue
+++ b/src/pages/business/CRM/marketInformation/beCurrentDetail.vue
@@ -179,8 +179,10 @@
title: '提交成功',
icon: 'success'
})
- uni.$emit('refreshMarketOpportunityList')
- uni.navigateBack(1)
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
} catch (err) {
console.log('表单验证失败:', err)
}
@@ -216,8 +218,10 @@ onMounted(() => {
title: '删除成功',
icon: 'success'
})
- uni.$emit('refreshMarketOpportunityList')
- uni.navigateBack(1)
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
} catch (err) {
console.log('表单验证失败:', err)
}
diff --git a/src/pages/business/CRM/marketInformation/competitor.vue b/src/pages/business/CRM/marketInformation/competitor.vue
index 5c460e0..e83c481 100644
--- a/src/pages/business/CRM/marketInformation/competitor.vue
+++ b/src/pages/business/CRM/marketInformation/competitor.vue
@@ -327,15 +327,12 @@ const dynamicPlaceholder = computed(() => {
// 当前选中的信息类型
const competitorLevelOneIndex = ref(0)
const competitorLevelOne = ref('基本信息')
-
+ const competitorLevelTwo = ref('资质情况')
// 当前选中的具体分类索引
const competitorLevelTwoIndex = ref(0)
// 当前显示的具体分类选项数组(动态切换 array2 / array3)
const currentCompetitorLevelTwoArray = ref(array2.value)
-
- // 当前选中的具体分类名称
- const competitorLevelTwo = ref('')
// 表单引用 & 客户选择器引用
const formRef = ref(null)
@@ -374,6 +371,11 @@ const dynamicPlaceholder = computed(() => {
title: '提交成功',
icon: 'success'
})
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
+
console.log('表单数据:', formData.value)
} catch (err) {
console.log('表单验证失败:', err)
diff --git a/src/pages/business/CRM/marketInformation/competitorDetail.vue b/src/pages/business/CRM/marketInformation/competitorDetail.vue
index afa4bb7..42bf8ce 100644
--- a/src/pages/business/CRM/marketInformation/competitorDetail.vue
+++ b/src/pages/business/CRM/marketInformation/competitorDetail.vue
@@ -379,8 +379,10 @@ const dynamicPlaceholder = computed(() => {
title: '提交成功',
icon: 'success'
})
- uni.$emit('refreshMarketOpportunityList')
- uni.navigateBack(1)
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
} catch (err) {
console.log('表单验证失败:', err)
}
@@ -448,8 +450,10 @@ const dynamicPlaceholder = computed(() => {
title: '删除成功',
icon: 'success'
})
- uni.$emit('refreshMarketOpportunityList')
- uni.navigateBack(1)
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
} catch (err) {
console.log('表单验证失败:', err)
}
diff --git a/src/pages/business/CRM/marketInformation/infomationView.vue b/src/pages/business/CRM/marketInformation/infomationView.vue
new file mode 100644
index 0000000..41d8790
--- /dev/null
+++ b/src/pages/business/CRM/marketInformation/infomationView.vue
@@ -0,0 +1,411 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{selCategory.val||'全部'}}
+
+
+
+
+ {{item.categoryName}}
+
+
+
+
+
+
+ {{'搜索'}}
+
+
+
+
+
+ 信息类型:{{ item.informationType }}
+
+
+
+ 公司名称:{{ item.cusName }}
+ {{item.myselfBrowsing==0?'未读':'已读'}}
+
+
+
+
+
+
+ 报告人
+ {{ item.createName }}
+
+
+
+ 报告日期
+ {{ item.createTime }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/business/CRM/marketInformation/informationDetail.vue b/src/pages/business/CRM/marketInformation/informationDetail.vue
new file mode 100644
index 0000000..98a4fe2
--- /dev/null
+++ b/src/pages/business/CRM/marketInformation/informationDetail.vue
@@ -0,0 +1,288 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ detailList.informationType }}
+
+ {{ detailList.cusName }}
+
+
+
+ 报告人
+ {{ detailList.createName }}
+
+
+
+ 创建日期
+ {{ detailList.createTime }}
+
+
+
+ 创建时间
+ {{ detailList.createTime }}
+
+
+
+
+ 机会类型
+ {{ detailList.opportunityType }}
+
+
+
+
+ 了解途径
+ {{ detailList.understandTheWay }}
+
+
+
+
+ 机会描述
+ {{ detailList.opportunityDescription }}
+
+
+
+
+ 机会所处状态
+ {{ detailList.opportunityStatus }}
+
+
+
+
+ 预测金额或情况
+ {{ detailList.predictedAmount }}
+
+
+
+
+ 竞争情况
+ {{ detailList.competitionSituation }}
+
+
+
+
+ 重大事项类型
+ {{ detailList.majorTypesOfMatters }}
+
+
+
+
+ 产生的影响
+ {{ detailList.theImpactGenerated }}
+
+
+
+
+ 公司应对策略
+ {{ detailList.companyResponseStrategy }}
+
+
+
+
+ 竞争单位
+ {{ detailList.competitiveUnits }}
+
+
+
+
+ 信息类型
+ {{ detailList.competitorLevelOne }}
+
+
+
+
+ 具体分类
+ {{ detailList.competitorLevelTwo }}
+
+
+
+
+ 具体事情
+ {{ detailList.specificMatters }}
+
+
+
+
+ 原职务
+ {{ detailList.originalPosition }}
+
+
+
+
+ 现职务
+ {{ detailList.currentPosition }}
+
+
+
+
+ 现职务是否与我公司业务相关
+ {{ detailList.positionOfOurCompany }}
+
+
+
+
+ 攻关力度
+ {{ detailList.developmentEfforts }}
+
+
+
+
+ 继任者
+ {{ detailList.successor }}
+
+
+
+
+ 重点型号
+ {{ detailList.keyModels }}
+
+
+
+
+ 目前状态
+ {{ detailList.currentStatus }}
+
+
+
+
+ 批产计划
+ {{ detailList.batchProductionPlan }}
+
+
+
+
+ 外协、外包、上级单位情况
+ {{ detailList.situation }}
+
+
+
+
+ 下级配套单位
+ {{ detailList.subordinateSupportingUnits }}
+
+
+
+
+ 通用表单类型
+ {{ detailList.generalFormType }}
+
+
+
+
+ 信息内容
+ {{ detailList.informationContent }}
+
+
+
+ 备注
+ {{ detailList.remark }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/business/CRM/marketInformation/keyModelTasks.vue b/src/pages/business/CRM/marketInformation/keyModelTasks.vue
index 2de48b5..3756522 100644
--- a/src/pages/business/CRM/marketInformation/keyModelTasks.vue
+++ b/src/pages/business/CRM/marketInformation/keyModelTasks.vue
@@ -178,6 +178,11 @@
title: '提交成功',
icon: 'success'
})
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
+
console.log('表单数据:', formData.value)
} catch (err) {
console.log('表单验证失败:', err)
diff --git a/src/pages/business/CRM/marketInformation/keyModelTasksDetail.vue b/src/pages/business/CRM/marketInformation/keyModelTasksDetail.vue
index 9cadf4a..221ac5d 100644
--- a/src/pages/business/CRM/marketInformation/keyModelTasksDetail.vue
+++ b/src/pages/business/CRM/marketInformation/keyModelTasksDetail.vue
@@ -183,8 +183,10 @@
title: '提交成功',
icon: 'success'
})
- uni.$emit('refreshMarketOpportunityList')
- uni.navigateBack(1)
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
} catch (err) {
console.log('表单验证失败:', err)
}
@@ -217,8 +219,10 @@
title: '删除成功',
icon: 'success'
})
- uni.$emit('refreshMarketOpportunityList')
- uni.navigateBack(1)
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
} catch (err) {
console.log('表单验证失败:', err)
}
diff --git a/src/pages/business/CRM/marketInformation/majorMatter.vue b/src/pages/business/CRM/marketInformation/majorMatter.vue
index b4927cd..0d4e999 100644
--- a/src/pages/business/CRM/marketInformation/majorMatter.vue
+++ b/src/pages/business/CRM/marketInformation/majorMatter.vue
@@ -203,6 +203,11 @@
title: '提交成功',
icon: 'success'
})
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
+
console.log('表单数据:', formData.value)
} catch (err) {
console.log('表单验证失败:', err)
diff --git a/src/pages/business/CRM/marketInformation/majorMatterDetail.vue b/src/pages/business/CRM/marketInformation/majorMatterDetail.vue
index fc959ff..3c99a93 100644
--- a/src/pages/business/CRM/marketInformation/majorMatterDetail.vue
+++ b/src/pages/business/CRM/marketInformation/majorMatterDetail.vue
@@ -210,8 +210,10 @@
title: '提交成功',
icon: 'success'
})
- uni.$emit('refreshMarketOpportunityList')
- uni.navigateBack(1)
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
} catch (err) {
console.log('表单验证失败:', err)
}
@@ -250,8 +252,10 @@
title: '删除成功',
icon: 'success'
})
- uni.$emit('refreshMarketOpportunityList')
- uni.navigateBack(1)
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
} catch (err) {
console.log('表单验证失败:', err)
}
diff --git a/src/pages/business/CRM/marketInformation/marketInformation.vue b/src/pages/business/CRM/marketInformation/marketInformation.vue
index b16f220..d693cf1 100644
--- a/src/pages/business/CRM/marketInformation/marketInformation.vue
+++ b/src/pages/business/CRM/marketInformation/marketInformation.vue
@@ -32,7 +32,7 @@
{{ item.cusName }}
{{ item.state }}
+ size="mini" @click.stop="itemView(item)">{{ item.state }}
机会类型:{{item.opportunityType}}
@@ -51,13 +51,13 @@
{{ item.cusName }}
{{ item.state }}
+ size="mini" @click.stop="itemView(item)">{{ item.state }}
产生的影响:{{item.theImpactGenerated}}
- 重大事项类型:{{item.majorTypesOfMatters}}
+ 重大事项类型:{{item.opportunityType}}
@@ -70,7 +70,7 @@
{{ item.competitiveUnits }}
{{ item.state }}
+ size="mini" @click.stop="itemView(item)">{{ item.state }}
@@ -89,7 +89,7 @@
{{ item.cusName }}
{{ item.state }}
+ size="mini" @click.stop="itemView(item)">{{ item.state }}
客户人员名称:{{item.cusUserName}}
@@ -110,7 +110,7 @@
{{ item.cusName }}
{{ item.state }}
+ size="mini" @click.stop="itemView(item)">{{ item.state }}
重点型号:{{item.keyModels}}
@@ -128,7 +128,7 @@
{{ item.cusName }}
{{ item.state }}
+ size="mini" @click.stop="itemView(item)">{{ item.state }}
标签:{{item.generalFormType}}
@@ -148,7 +148,8 @@
diff --git a/src/pages/business/CRM/marketInformation/marketInformationReviewDetail.vue b/src/pages/business/CRM/marketInformation/marketInformationReviewDetail.vue
new file mode 100644
index 0000000..f7c2907
--- /dev/null
+++ b/src/pages/business/CRM/marketInformation/marketInformationReviewDetail.vue
@@ -0,0 +1,385 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ detailList.informationType }}
+
+ {{ detailList.cusName }}
+
+
+
+ 报告人
+ {{ detailList.createName }}
+
+
+
+ 创建日期
+ {{ detailList.createTime }}
+
+
+
+
+
+ 机会类型
+ {{ detailList.opportunityType }}
+
+
+
+
+ 了解途径
+ {{ detailList.understandTheWay }}
+
+
+
+
+ 机会描述
+ {{ detailList.opportunityDescription }}
+
+
+
+
+ 机会所处状态
+ {{ detailList.opportunityStatus }}
+
+
+
+
+ 预测金额或情况
+ {{ detailList.predictedAmount }}
+
+
+
+
+ 竞争情况
+ {{ detailList.competitionSituation }}
+
+
+
+
+ 重大事项类型
+ {{ detailList.majorTypesOfMatters }}
+
+
+
+
+ 产生的影响
+ {{ detailList.theImpactGenerated }}
+
+
+
+
+ 公司应对策略
+ {{ detailList.companyResponseStrategy }}
+
+
+
+
+ 竞争单位
+ {{ detailList.competitiveUnits }}
+
+
+
+
+ 信息类型
+ {{ detailList.competitorLevelOne }}
+
+
+
+
+ 具体分类
+ {{ detailList.competitorLevelTwo }}
+
+
+
+
+ 具体事情
+ {{ detailList.specificMatters }}
+
+
+
+
+ 原职务
+ {{ detailList.originalPosition }}
+
+
+
+
+ 现职务
+ {{ detailList.currentPosition }}
+
+
+
+
+ 现职务是否与我公司业务相关
+ {{ detailList.positionOfOurCompany }}
+
+
+
+
+ 攻关力度
+ {{ detailList.developmentEfforts }}
+
+
+
+
+ 继任者
+ {{ detailList.successor }}
+
+
+
+
+ 重点型号
+ {{ detailList.keyModels }}
+
+
+
+
+ 目前状态
+ {{ detailList.currentStatus }}
+
+
+
+
+ 批产计划
+ {{ detailList.batchProductionPlan }}
+
+
+
+
+ 外协、外包、上级单位情况
+ {{ detailList.situation }}
+
+
+
+
+ 下级配套单位
+ {{ detailList.subordinateSupportingUnits }}
+
+
+
+
+ 通用表单类型
+ {{ detailList.generalFormType }}
+
+
+
+
+ 信息内容
+ {{ detailList.informationContent }}
+
+
+
+ 备注
+ {{ detailList.remark }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 驳回
+
+ 通过
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/business/CRM/marketInformation/marketOpportunities.vue b/src/pages/business/CRM/marketInformation/marketOpportunities.vue
index 90f91d1..952afa8 100644
--- a/src/pages/business/CRM/marketInformation/marketOpportunities.vue
+++ b/src/pages/business/CRM/marketInformation/marketOpportunities.vue
@@ -87,9 +87,6 @@
let customerUser = reactive({})
// 客户相关
const guestList = ref([])
- const guestArr = ref([])
- const guestIndex = ref(0)
-
// 表单数据
const formData = ref({
cusId: null,
@@ -186,7 +183,7 @@
const form = ref({
cusId: null,
cusName: null,
- opportunityType: "", // 机会类型
+ opportunityType: array.value[0].name, // 机会类型
understandTheWay: "", // 了解途径
opportunityDescription: "", // 机会描述
opportunityStatus: "", // 机会所处状态
@@ -243,7 +240,12 @@
//监听时间
onMounted(() => {
- uni.$on('onCustomerSelected', handleCustomerSelected)
+ // 设置机会类型的默认值
+ formData.value.opportunityType = array.value[0].name;
+ opportunityTypeIndex.value = 0;
+
+ // 原有的监听客户选择事件
+ uni.$on('onCustomerSelected', handleCustomerSelected);
})
//取消监听
onUnmounted(() => {
@@ -266,17 +268,18 @@
try {
// 表单校验
await formRef.value.validate()
- const res = await crmMarketInformationAdd(formData.value);
+ const res = await crmMarketInformationAdd(formData.value);
console.log(res)
uni.showToast({
title: '提交成功',
icon: 'success'
})
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
+
console.log('表单数据:', formData.value)
-
- // TODO: 在这里添加提交到后端的逻辑,比如调用 api.CrmMarketInformationAdd(formData.value)
- // 暂时只做校验提示
-
} catch (err) {
console.log('表单验证失败:', err)
}
diff --git a/src/pages/business/CRM/marketInformation/marketOpportunitiesDetail.vue b/src/pages/business/CRM/marketInformation/marketOpportunitiesDetail.vue
index d31a02e..a2d22d7 100644
--- a/src/pages/business/CRM/marketInformation/marketOpportunitiesDetail.vue
+++ b/src/pages/business/CRM/marketInformation/marketOpportunitiesDetail.vue
@@ -293,8 +293,10 @@ onMounted(() => {
title: '提交成功',
icon: 'success'
})
- uni.$emit('refreshMarketOpportunityList')
- uni.navigateBack(1)
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
} catch (err) {
console.log('表单验证失败:', err)
@@ -309,7 +311,10 @@ onMounted(() => {
title: '删除成功',
icon: 'success'
})
- uni.navigateBack(1)
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
} catch (err) {
console.log('表单验证失败:', err)
}
diff --git a/src/pages/business/CRM/marketInformation/personnelChanges.vue b/src/pages/business/CRM/marketInformation/personnelChanges.vue
index efc0064..50c46be 100644
--- a/src/pages/business/CRM/marketInformation/personnelChanges.vue
+++ b/src/pages/business/CRM/marketInformation/personnelChanges.vue
@@ -81,7 +81,10 @@
} from 'vue'
import customHeader from '@/components/customHeader.vue'
import cache from '@/utils/cache'
- import { onShow, onUnload } from '@dcloudio/uni-app';
+ import {
+ onShow,
+ onUnload
+ } from '@dcloudio/uni-app';
import {
getGuestList
} from '@/api/business.js'
@@ -227,23 +230,23 @@
url: '/pages/business/CRM/customerUserList?cusName=' + formData.value.cusName
})
}
-//页面渲染完成后,查询catch的get
-onShow(() => {
+ //页面渲染完成后,查询catch的get
+ onShow(() => {
- if (cache.get('checkedRCClientList') != null && cache.get('checkedRCClientList') != []) {
- formData.value.cusUserName = cache.get('checkedRCClientList')
- }
+ if (cache.get('checkedRCClientList') != null && cache.get('checkedRCClientList') != []) {
+ formData.value.cusUserName = cache.get('checkedRCClientList')
+ }
-})
-//页面卸载之后,删除缓存信息
-onUnload(() => {
- handleDeleteLocal()
-})
+ })
+ //页面卸载之后,删除缓存信息
+ onUnload(() => {
+ handleDeleteLocal()
+ })
-//删除缓存
-let handleDeleteLocal = () => {
- cache.remove('checkedRCClientList');
-}
+ //删除缓存
+ let handleDeleteLocal = () => {
+ cache.remove('checkedRCClientList');
+ }
// 提交表单
const submitForm = async () => {
@@ -251,7 +254,7 @@ let handleDeleteLocal = () => {
// 表单校验
await formRef.value.validate()
const cusUserName1 = formData.value.cusUserName;
- const stringOfNames = cusUserName1.join(",")
+ const stringOfNames = cusUserName1.join(",")
formData.value.cusUserName = stringOfNames
const res = await crmMarketInformationAdd(formData.value);
console.log(res)
@@ -259,10 +262,10 @@ let handleDeleteLocal = () => {
title: '提交成功',
icon: 'success'
})
- console.log('表单数据:', formData.value)
-
- // TODO: 在这里添加提交到后端的逻辑,比如调用 api.CrmMarketInformationAdd(formData.value)
- // 暂时只做校验提示
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
} catch (err) {
console.log('表单验证失败:', err)
diff --git a/src/pages/business/CRM/marketInformation/personnelChangesDetail.vue b/src/pages/business/CRM/marketInformation/personnelChangesDetail.vue
index f2fae25..3d084c4 100644
--- a/src/pages/business/CRM/marketInformation/personnelChangesDetail.vue
+++ b/src/pages/business/CRM/marketInformation/personnelChangesDetail.vue
@@ -263,8 +263,10 @@ let handleDeleteLocal = () => {
title: '提交成功',
icon: 'success'
})
- uni.$emit('refreshMarketOpportunityList')
- uni.navigateBack(1)
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
// TODO: 在这里添加提交到后端的逻辑,比如调用 api.CrmMarketInformationAdd(formData.value)
// 暂时只做校验提示
@@ -318,8 +320,10 @@ let handleDeleteLocal = () => {
title: '删除成功',
icon: 'success'
})
- uni.$emit('refreshMarketOpportunityList')
- uni.navigateBack(1)
+ uni.$emit('refreshMarketList');
+ setTimeout(() => {
+ uni.navigateBack(1);
+ }, 1500);
} catch (err) {
console.log('表单验证失败:', err)
}
From e6efc466d88a23a6fb3ebc1d37944ec3b6a19cf8 Mon Sep 17 00:00:00 2001
From: "PC-202311141343\\Administrator" <505354293@qq.com>
Date: Mon, 18 Aug 2025 16:34:43 +0800
Subject: [PATCH 2/9] =?UTF-8?q?=E8=A1=A5=E5=85=85json=E6=96=87=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages.json | 280 +++++++++++++++++++++++++++++++------------------
1 file changed, 176 insertions(+), 104 deletions(-)
diff --git a/src/pages.json b/src/pages.json
index 18cbffb..19be647 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -56,110 +56,182 @@
}
},
//市场信息管理(已更新)
- {
- "path": "pages/business/CRM/marketInformation/marketInformation",
- "style": {
- "navigationBarTitleText": "市场信息管理"
- }
- },
- //市场机会录入(已更新)
- {
- "path": "pages/business/CRM/marketInformation/marketOpportunities",
- "style": {
- "navigationBarTitleText": "市场机会录入"
- }
- },
- //市场机会修改(已更新)
- {
- "path": "pages/business/CRM/marketInformation/marketOpportunitiesDetail",
- "style": {
- "navigationBarTitleText": "市场机会修改"
- }
- },
- //重大事项录入(已更新)
- {
- "path": "pages/business/CRM/marketInformation/majorMatter",
- "style": {
- "navigationBarTitleText": "重大事项录入"
- }
- },
- //重大事项更改(已更新)
- {
- "path": "pages/business/CRM/marketInformation/majorMatterDetail",
- "style": {
- "navigationBarTitleText": "重大事项更改"
- }
- },
- //竞争对手信息录入(已更新)
- {
- "path": "pages/business/CRM/marketInformation/competitor",
- "style": {
- "navigationBarTitleText": "竞争对手信息录入"
- }
- },
- //竞争对手信息更改(已更新)
- {
- "path": "pages/business/CRM/marketInformation/competitorDetail",
- "style": {
- "navigationBarTitleText": "竞争对手信息更改"
- }
- },
- //人员变化信息录入(已更新)
- {
- "path": "pages/business/CRM/marketInformation/personnelChanges",
- "style": {
- "navigationBarTitleText": "人员变化信息录入"
- }
- },
- //人员变化信息更改(已更新)
- {
- "path": "pages/business/CRM/marketInformation/personnelChangesDetail",
- "style": {
- "navigationBarTitleText": "人员变化信息更改"
- }
- },
- //重点型号任务信息录入(已更新)
- {
- "path": "pages/business/CRM/marketInformation/keyModelTasks",
- "style": {
- "navigationBarTitleText": "重点型号任务信息录入"
- }
- },
- //重点型号任务信息更新(已更新)
- {
- "path": "pages/business/CRM/marketInformation/keyModelTasksDetail",
- "style": {
- "navigationBarTitleText": "重点型号任务信息更新"
- }
- },
- //通用信息录入(已更新)
- {
- "path": "pages/business/CRM/marketInformation/beCurrent",
- "style": {
- "navigationBarTitleText": "通用信息录入"
- }
- },
- //通用信息更新(已更新)
- {
- "path": "pages/business/CRM/marketInformation/beCurrentDetail",
- "style": {
- "navigationBarTitleText": "通用信息更新"
- }
- },
- //选择客户(已更新)
- {
- "path": "pages/business/CRM/chooseCus",
- "style": {
- "navigationBarTitleText": "客户选择"
- }
- },
- //选择客户人员(已更新)
- {
- "path": "pages/business/CRM/customerUserList",
- "style": {
- "navigationBarTitleText": "客户人员选择"
- }
- },
+ {
+ "path": "pages/business/CRM/marketInformation/marketInformation",
+ "style": {
+ "navigationBarTitleText": "市场信息管理"
+ }
+ },
+ //市场机会录入(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/marketOpportunities",
+ "style": {
+ "navigationBarTitleText": "市场机会录入"
+ }
+ },
+ //市场机会修改(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/marketOpportunitiesDetail",
+ "style": {
+ "navigationBarTitleText": "市场机会修改"
+ }
+ },
+ //重大事项录入(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/majorMatter",
+ "style": {
+ "navigationBarTitleText": "重大事项录入"
+ }
+ },
+ //重大事项更改(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/majorMatterDetail",
+ "style": {
+ "navigationBarTitleText": "重大事项更改"
+ }
+ },
+ //竞争对手信息录入(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/competitor",
+ "style": {
+ "navigationBarTitleText": "竞争对手信息录入"
+ }
+ },
+ //竞争对手信息更改(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/competitorDetail",
+ "style": {
+ "navigationBarTitleText": "竞争对手信息更改"
+ }
+ },
+ //人员变化信息录入(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/personnelChanges",
+ "style": {
+ "navigationBarTitleText": "人员变化信息录入"
+ }
+ },
+ //人员变化信息更改(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/personnelChangesDetail",
+ "style": {
+ "navigationBarTitleText": "人员变化信息更改"
+ }
+ },
+ //重点型号任务信息录入(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/keyModelTasks",
+ "style": {
+ "navigationBarTitleText": "重点型号任务信息录入"
+ }
+ },
+ //重点型号任务信息更新(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/keyModelTasksDetail",
+ "style": {
+ "navigationBarTitleText": "重点型号任务信息更新"
+ }
+ },
+ //通用信息录入(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/beCurrent",
+ "style": {
+ "navigationBarTitleText": "通用信息录入"
+ }
+ },
+ //通用信息更新(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/beCurrentDetail",
+ "style": {
+ "navigationBarTitleText": "通用信息更新"
+ }
+ },
+ //选择客户(已更新)
+ {
+ "path": "pages/business/CRM/chooseCus",
+ "style": {
+ "navigationBarTitleText": "客户选择"
+ }
+ },
+ //选择客户人员(已更新)
+ {
+ "path": "pages/business/CRM/customerUserList",
+ "style": {
+ "navigationBarTitleText": "客户人员选择"
+ }
+ },
+ //市场信息查看(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/infomationView",
+ "style": {
+ "navigationBarTitleText": "市场信息查看"
+ }
+ },
+ //市场信息详情(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/informationDetail",
+ "style": {
+ "navigationBarTitleText": "市场信息详情"
+ }
+ },
+ //市场信息审核(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/marketInformationReview",
+ "style": {
+ "navigationBarTitleText": "市场信息审核"
+ }
+ },
+ //市场信息审核详情(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/marketInformationReviewDetail",
+ "style": {
+ "navigationBarTitleText": "市场信息审核"
+ }
+ },
+
+
+ //回款首页查看(已更新)
+ {
+ "path": "pages/business/CRM/paymentCollection/index",
+ "style": {
+ "navigationBarTitleText": "回款首页查看"
+ }
+ },
+ //回款新增(已更新)
+ {
+ "path": "pages/business/CRM/paymentCollection/addPaymentCollection",
+ "style": {
+ "navigationBarTitleText": "回款新增"
+ }
+ },
+ //回款更新(已更新)
+ {
+ "path": "pages/business/CRM/paymentCollection/paymentDetail",
+ "style": {
+ "navigationBarTitleText": "回款新增"
+ }
+ },
+ //回款查看公用页面(已更新)
+ {
+ "path": "pages/business/CRM/paymentCollection/paymentCollectionCheck",
+ "style": {
+ "navigationBarTitleText": "回款查看"
+ }
+ },
+ //回款查看全员统计查看(已更新)
+ {
+ "path": "pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable",
+ "style": {
+ "navigationBarTitleText": "全员统计查看"
+ }
+ },
+ //回款查看个人详情查看(已更新)
+ {
+ "path": "pages/business/CRM/paymentCollection/personalPaymentCollectionTable",
+ "style": {
+ "navigationBarTitleText": "个人详情查看"
+ }
+ },
{
"path": "pages/business/CRM/weekPlanUpdate",//修改周计划
"style": {
From f9474ac01dcd86f3fdecc0df6415f080ab378789 Mon Sep 17 00:00:00 2001
From: wangzhuo
Date: Mon, 18 Aug 2025 17:08:38 +0800
Subject: [PATCH 3/9] =?UTF-8?q?feat:=20=E5=AE=A2=E6=88=B7=E4=BA=BA?=
=?UTF-8?q?=E5=91=98=E7=BC=96=E8=BE=91=E8=A1=A8=E5=8D=95=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../business/CRM/customer/customerAdd.vue | 8 +-
.../CRM/customer/customerUserBelong.vue | 317 ++++++++++++++++++
src/pages/business/CRM/customer/dataMap.js | 12 +-
.../business/CRM/customer/selectCustomer.vue | 6 +-
4 files changed, 337 insertions(+), 6 deletions(-)
create mode 100644 src/pages/business/CRM/customer/customerUserBelong.vue
diff --git a/src/pages/business/CRM/customer/customerAdd.vue b/src/pages/business/CRM/customer/customerAdd.vue
index 89bbb02..c392bb0 100644
--- a/src/pages/business/CRM/customer/customerAdd.vue
+++ b/src/pages/business/CRM/customer/customerAdd.vue
@@ -29,7 +29,7 @@
- {{ customerUser.cusName || '查询客户人员' }}
+ {{ customerUser.cusName || '查询客户名称' }}
@@ -485,7 +485,8 @@ let handleUserTypeChange = (e) => {
// 选择日期
function handleTenureTimeChange(e) {
- // console.log(e)
+ let {value} = e.detail;
+ formData.value.tenureTime = value;
}
// 需求层次索引
@@ -508,7 +509,8 @@ let handleDevelopChange = e => {
// 选择生日
function handleBirthdayChange(e) {
- // console.log(e)
+ let{value} = e.detail
+ formData.value.birthday = value;
}
// 爱好标签索引
diff --git a/src/pages/business/CRM/customer/customerUserBelong.vue b/src/pages/business/CRM/customer/customerUserBelong.vue
new file mode 100644
index 0000000..71450fb
--- /dev/null
+++ b/src/pages/business/CRM/customer/customerUserBelong.vue
@@ -0,0 +1,317 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.cusName }}
+ {{ item.nodeCode }}
+
+
+ 客户人员名称
+ {{ item.userName }}
+
+
+
+
+ 客户等级
+ {{ item.cusEstate }}
+
+
+
+
+ 职能
+ {{ item.function }}
+
+
+
+
+ 创建时间
+ {{ item.createTime }}
+
+
+
+
+ 业务员认定等级
+ {{ item.salesmanThinkLevel }}
+
+
+
+
+ 系统认定等级
+ {{ item.systemThinkLevel }}
+
+
+
+
+ 驳回原因
+ {{ item.opinion }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/business/CRM/customer/dataMap.js b/src/pages/business/CRM/customer/dataMap.js
index a8c1673..1084005 100644
--- a/src/pages/business/CRM/customer/dataMap.js
+++ b/src/pages/business/CRM/customer/dataMap.js
@@ -113,4 +113,14 @@ export const workingStatusList = [
{id: 1, name: '正常上班'},
{id: 2, name: '离职'},
{id: 3, name: '退休'}
-]
\ No newline at end of file
+]
+/**
+ * 人员所属审核状态字典
+ */
+export const statusColorMap = {
+ '提交': 'tijiao-deal',
+ '驳回': 'chaoqi-deal',
+ '超期': 'chaoqi-deal',
+ '完成': 'wancheng-deal',
+ '待审核': 'daishenhe-un-deal'
+}
\ No newline at end of file
diff --git a/src/pages/business/CRM/customer/selectCustomer.vue b/src/pages/business/CRM/customer/selectCustomer.vue
index 591053b..4bc1e46 100644
--- a/src/pages/business/CRM/customer/selectCustomer.vue
+++ b/src/pages/business/CRM/customer/selectCustomer.vue
@@ -2,7 +2,7 @@
-
+
@@ -117,7 +117,7 @@ let timerId = null;
// 搜索
watch(searchValue, (newValue, oldValue) => {
// console.log(`新值: ${newValue}, 旧值: ${oldValue}`);
- if(!timerId) clearTimeout(timerId);
+ if(timerId) clearTimeout(timerId);
cssFlag.value = true;
timerId = setTimeout(async ()=>{
handleSearch();
@@ -135,6 +135,7 @@ const downCallback = async (mescroll) => {
// 正确结束下拉刷新状态
mescroll.endSuccess(res.list.length, res.total >= upOption.value.page.size);
} catch (error) {
+ console.log(error)
// 发生错误时结束下拉刷新
mescroll.endErr();
}
@@ -152,6 +153,7 @@ const upCallback = async (mescroll) => {
// 正确结束上拉加载状态
mescroll.endSuccess(res.list.length, res.list.length >= mescroll.size);
} catch (error) {
+ console.log(error)
// 发生错误时结束上拉加载
mescroll.endErr();
}
From df29941de595caebba2d7a7c6baae2cf13a7ae68 Mon Sep 17 00:00:00 2001
From: wangzhuo
Date: Mon, 18 Aug 2025 21:43:28 +0800
Subject: [PATCH 4/9] =?UTF-8?q?fix:=20=E5=AE=A2=E6=88=B7=E4=BA=BA=E5=91=98?=
=?UTF-8?q?=E7=BC=96=E8=BE=91=E8=A1=A8=E5=8D=95=E7=BB=84=E4=BB=B6=20style:?=
=?UTF-8?q?=20=E5=AF=B9page.json=E4=BB=A3=E7=A0=81=E7=BC=A9=E8=BF=9B?=
=?UTF-8?q?=E5=AF=B9=E9=BD=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages.json | 945 +++++++++---------
.../customer/components/customerUserEdit.vue | 683 +++++++++++++
.../CRM/customer/customerUserBelong.vue | 27 +-
3 files changed, 1196 insertions(+), 459 deletions(-)
create mode 100644 src/pages/business/CRM/customer/components/customerUserEdit.vue
diff --git a/src/pages.json b/src/pages.json
index 19be647..edfcc8a 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -1,453 +1,496 @@
{
-
- "easycom": {
- "autoscan": true,
- "custom": {
- "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
- }
- },
- "pages": [
- {
- "path": "pages/loading/loading",
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/login/login",
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/home/home",
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/business",
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/visitorReport",//市场信息管理
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/visitorReportAdd",//走访报告添加
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/visitorReportDetail",//走访报告详情
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/visitorReportEnter",//走访报告内容录入
- "style": {
- "navigationBarTitleText": ""
- }
- },
- //市场信息管理(已更新)
- {
- "path": "pages/business/CRM/marketInformation/marketInformation",
- "style": {
- "navigationBarTitleText": "市场信息管理"
- }
- },
- //市场机会录入(已更新)
- {
- "path": "pages/business/CRM/marketInformation/marketOpportunities",
- "style": {
- "navigationBarTitleText": "市场机会录入"
- }
- },
- //市场机会修改(已更新)
- {
- "path": "pages/business/CRM/marketInformation/marketOpportunitiesDetail",
- "style": {
- "navigationBarTitleText": "市场机会修改"
- }
- },
- //重大事项录入(已更新)
- {
- "path": "pages/business/CRM/marketInformation/majorMatter",
- "style": {
- "navigationBarTitleText": "重大事项录入"
- }
- },
- //重大事项更改(已更新)
- {
- "path": "pages/business/CRM/marketInformation/majorMatterDetail",
- "style": {
- "navigationBarTitleText": "重大事项更改"
- }
- },
- //竞争对手信息录入(已更新)
- {
- "path": "pages/business/CRM/marketInformation/competitor",
- "style": {
- "navigationBarTitleText": "竞争对手信息录入"
- }
- },
- //竞争对手信息更改(已更新)
- {
- "path": "pages/business/CRM/marketInformation/competitorDetail",
- "style": {
- "navigationBarTitleText": "竞争对手信息更改"
- }
- },
- //人员变化信息录入(已更新)
- {
- "path": "pages/business/CRM/marketInformation/personnelChanges",
- "style": {
- "navigationBarTitleText": "人员变化信息录入"
- }
- },
- //人员变化信息更改(已更新)
- {
- "path": "pages/business/CRM/marketInformation/personnelChangesDetail",
- "style": {
- "navigationBarTitleText": "人员变化信息更改"
- }
- },
- //重点型号任务信息录入(已更新)
- {
- "path": "pages/business/CRM/marketInformation/keyModelTasks",
- "style": {
- "navigationBarTitleText": "重点型号任务信息录入"
- }
- },
- //重点型号任务信息更新(已更新)
- {
- "path": "pages/business/CRM/marketInformation/keyModelTasksDetail",
- "style": {
- "navigationBarTitleText": "重点型号任务信息更新"
- }
- },
- //通用信息录入(已更新)
- {
- "path": "pages/business/CRM/marketInformation/beCurrent",
- "style": {
- "navigationBarTitleText": "通用信息录入"
- }
- },
- //通用信息更新(已更新)
- {
- "path": "pages/business/CRM/marketInformation/beCurrentDetail",
- "style": {
- "navigationBarTitleText": "通用信息更新"
- }
- },
- //选择客户(已更新)
- {
- "path": "pages/business/CRM/chooseCus",
- "style": {
- "navigationBarTitleText": "客户选择"
- }
- },
- //选择客户人员(已更新)
- {
- "path": "pages/business/CRM/customerUserList",
- "style": {
- "navigationBarTitleText": "客户人员选择"
- }
- },
- //市场信息查看(已更新)
- {
- "path": "pages/business/CRM/marketInformation/infomationView",
- "style": {
- "navigationBarTitleText": "市场信息查看"
- }
- },
- //市场信息详情(已更新)
- {
- "path": "pages/business/CRM/marketInformation/informationDetail",
- "style": {
- "navigationBarTitleText": "市场信息详情"
- }
- },
- //市场信息审核(已更新)
- {
- "path": "pages/business/CRM/marketInformation/marketInformationReview",
- "style": {
- "navigationBarTitleText": "市场信息审核"
- }
- },
- //市场信息审核详情(已更新)
- {
- "path": "pages/business/CRM/marketInformation/marketInformationReviewDetail",
- "style": {
- "navigationBarTitleText": "市场信息审核"
- }
- },
-
-
- //回款首页查看(已更新)
- {
- "path": "pages/business/CRM/paymentCollection/index",
- "style": {
- "navigationBarTitleText": "回款首页查看"
- }
- },
- //回款新增(已更新)
- {
- "path": "pages/business/CRM/paymentCollection/addPaymentCollection",
- "style": {
- "navigationBarTitleText": "回款新增"
- }
- },
- //回款更新(已更新)
- {
- "path": "pages/business/CRM/paymentCollection/paymentDetail",
- "style": {
- "navigationBarTitleText": "回款新增"
- }
- },
- //回款查看公用页面(已更新)
- {
- "path": "pages/business/CRM/paymentCollection/paymentCollectionCheck",
- "style": {
- "navigationBarTitleText": "回款查看"
- }
- },
- //回款查看全员统计查看(已更新)
- {
- "path": "pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable",
- "style": {
- "navigationBarTitleText": "全员统计查看"
- }
- },
- //回款查看个人详情查看(已更新)
- {
- "path": "pages/business/CRM/paymentCollection/personalPaymentCollectionTable",
- "style": {
- "navigationBarTitleText": "个人详情查看"
- }
- },
- {
- "path": "pages/business/CRM/weekPlanUpdate",//修改周计划
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/plan/index",
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/plan/myPlan",//我的计划列表
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/plan/planEdit",//计划修改
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/plan/planView",//周计划查看
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/customer/customerAdd",//客户人员新增
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/customer/selectCustomer",//选择客户
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/vistorCheckin",//签到打卡
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/checkinStatistics",//打卡统计
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/paymentCollection",//回款查看
- "style": {
- "navigationBarTitleText": ""
- }
- },
-
- //===================================活动报告====================
- {
- "path": "pages/business/CRM/marketActivity/visitReport",//市场信息管理
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/marketActivity/visitorReportAdd",//走访报告添加
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/marketActivity/visitReportView",//走访报告查看
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/marketActivity/visitReportDetail",//走访报告查看具体明细
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/marketActivity/auditReport",//走访报告审批列表查看
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/marketActivity/detailForApproval",//走访报告明细审批
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/marketActivity/visitorReportEnter",//走访报告内容录入
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/marketActivity/auditReject",//走访报告驳回输入原因
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/marketActivity/customerUserList",//客户公司人员信息
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/marketActivity/myUserList",//我公司人员信息
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/marketActivity/activityTypeList",//活动类型
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/marketActivity/chooseCus",//选择客户单位
- "style": {
- "navigationBarTitleText": ""
- }
- },
- //====================地图======
- {
- "path": "pages/business/CRM/map/vistorCheckin",//签到打卡
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/map/addRearkSignIn",//签到备注
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/map/checkInView",//打卡信息(考勤查看)
- "style": {
- "navigationBarTitleText": ""
- }
- },
- {
- "path": "pages/business/CRM/map/checkinStatistics",//打卡统计
- "style": {
- "navigationBarTitleText": ""
- }
- },
- //===================================活动报告====================
- {
- "path": "pages/notice/notice",
- "style": {
- "navigationBarTitleText": "",
- "app-plus" : {
- "bounce" : "none" // 取消APP端iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle')
- },
- "mp-alipay":{"allowsBounceVertical":"NO"} // 取消支付宝和钉钉小程序的iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle')
- }
- },
- {
- "path": "pages/userinfo/userinfo",
- "style": {
- "navigationBarTitleText": ""
- }
- }
- ],
- "globalStyle": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "718友晟",
- "navigationBarBackgroundColor": "#F8F8F8",
- "backgroundColor": "#F8F8F8",
- "navigationStyle": "custom"
- },
- "tabBar": {
- "color": "#919191",
- "selectedColor": "#ffffff",
- "borderStyle": "#ffffff",
- "backgroundColor": "#000000",
- "fontSize": "12px",
- "iconWidth": "24px",
- "list": [
- {
- "pagePath": "pages/home/home",
- "iconPath": "static/images/tabs/menu-home.png",
- "selectedIconPath": "static/images/tabs/menu-home-on.png",
- "text": "首页"
- },
- {
- "pagePath": "pages/business/business",
- "iconPath": "static/images/tabs/menu-business.png",
- "selectedIconPath": "static/images/tabs/menu-business-on.png",
- "text": "业务中心"
- },
- {
- "pagePath": "pages/notice/notice",
- "iconPath": "static/images/tabs/menu-info.png",
- "selectedIconPath": "static/images/tabs/menu-info-on.png",
- "text": "消息"
- },
- {
- "pagePath": "pages/userinfo/userinfo",
- "iconPath": "static/images/tabs/menu-me.png",
- "selectedIconPath": "static/images/tabs/menu-me-on.png",
- "text": "我的"
- }
- ]
- }
+ "easycom": {
+ "autoscan": true,
+ "custom": {
+ "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
+ }
+ },
+ "pages": [
+ {
+ "path": "pages/loading/loading",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/login/login",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/home/home",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/business",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/visitorReport",
+ //市场信息管理
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/visitorReportAdd",
+ //走访报告添加
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/visitorReportDetail",
+ //走访报告详情
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/visitorReportEnter",
+ //走访报告内容录入
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ //市场信息管理(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/marketInformation",
+ "style": {
+ "navigationBarTitleText": "市场信息管理"
+ }
+ },
+ //市场机会录入(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/marketOpportunities",
+ "style": {
+ "navigationBarTitleText": "市场机会录入"
+ }
+ },
+ //市场机会修改(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/marketOpportunitiesDetail",
+ "style": {
+ "navigationBarTitleText": "市场机会修改"
+ }
+ },
+ //重大事项录入(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/majorMatter",
+ "style": {
+ "navigationBarTitleText": "重大事项录入"
+ }
+ },
+ //重大事项更改(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/majorMatterDetail",
+ "style": {
+ "navigationBarTitleText": "重大事项更改"
+ }
+ },
+ //竞争对手信息录入(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/competitor",
+ "style": {
+ "navigationBarTitleText": "竞争对手信息录入"
+ }
+ },
+ //竞争对手信息更改(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/competitorDetail",
+ "style": {
+ "navigationBarTitleText": "竞争对手信息更改"
+ }
+ },
+ //人员变化信息录入(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/personnelChanges",
+ "style": {
+ "navigationBarTitleText": "人员变化信息录入"
+ }
+ },
+ //人员变化信息更改(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/personnelChangesDetail",
+ "style": {
+ "navigationBarTitleText": "人员变化信息更改"
+ }
+ },
+ //重点型号任务信息录入(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/keyModelTasks",
+ "style": {
+ "navigationBarTitleText": "重点型号任务信息录入"
+ }
+ },
+ //重点型号任务信息更新(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/keyModelTasksDetail",
+ "style": {
+ "navigationBarTitleText": "重点型号任务信息更新"
+ }
+ },
+ //通用信息录入(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/beCurrent",
+ "style": {
+ "navigationBarTitleText": "通用信息录入"
+ }
+ },
+ //通用信息更新(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/beCurrentDetail",
+ "style": {
+ "navigationBarTitleText": "通用信息更新"
+ }
+ },
+ //选择客户(已更新)
+ {
+ "path": "pages/business/CRM/chooseCus",
+ "style": {
+ "navigationBarTitleText": "客户选择"
+ }
+ },
+ //选择客户人员(已更新)
+ {
+ "path": "pages/business/CRM/customerUserList",
+ "style": {
+ "navigationBarTitleText": "客户人员选择"
+ }
+ },
+ //市场信息查看(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/infomationView",
+ "style": {
+ "navigationBarTitleText": "市场信息查看"
+ }
+ },
+ //市场信息详情(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/informationDetail",
+ "style": {
+ "navigationBarTitleText": "市场信息详情"
+ }
+ },
+ //市场信息审核(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/marketInformationReview",
+ "style": {
+ "navigationBarTitleText": "市场信息审核"
+ }
+ },
+ //市场信息审核详情(已更新)
+ {
+ "path": "pages/business/CRM/marketInformation/marketInformationReviewDetail",
+ "style": {
+ "navigationBarTitleText": "市场信息审核"
+ }
+ },
+ //回款首页查看(已更新)
+ {
+ "path": "pages/business/CRM/paymentCollection/index",
+ "style": {
+ "navigationBarTitleText": "回款首页查看"
+ }
+ },
+ //回款新增(已更新)
+ {
+ "path": "pages/business/CRM/paymentCollection/addPaymentCollection",
+ "style": {
+ "navigationBarTitleText": "回款新增"
+ }
+ },
+ //回款更新(已更新)
+ {
+ "path": "pages/business/CRM/paymentCollection/paymentDetail",
+ "style": {
+ "navigationBarTitleText": "回款新增"
+ }
+ },
+ //回款查看公用页面(已更新)
+ {
+ "path": "pages/business/CRM/paymentCollection/paymentCollectionCheck",
+ "style": {
+ "navigationBarTitleText": "回款查看"
+ }
+ },
+ //回款查看全员统计查看(已更新)
+ {
+ "path": "pages/business/CRM/paymentCollection/fullStaffStatisticsViewingTable",
+ "style": {
+ "navigationBarTitleText": "全员统计查看"
+ }
+ },
+ //回款查看个人详情查看(已更新)
+ {
+ "path": "pages/business/CRM/paymentCollection/personalPaymentCollectionTable",
+ "style": {
+ "navigationBarTitleText": "个人详情查看"
+ }
+ },
+ {
+ "path": "pages/business/CRM/weekPlanUpdate",
+ //修改周计划
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/plan/index",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/plan/myPlan",
+ //我的计划列表
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/plan/planEdit",
+ //计划修改
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/plan/planView",
+ //周计划查看
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/customer/customerAdd",
+ //客户人员新增
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/customer/customerUserBelong",
+ //客户人员归属
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/customer/components/customerUserEdit",
+ //客户人员详情编辑
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/customer/selectCustomer",
+ //选择客户
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/vistorCheckin",
+ //签到打卡
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/checkinStatistics",
+ //打卡统计
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/paymentCollection",
+ //回款查看
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ //===================================活动报告====================
+ {
+ "path": "pages/business/CRM/marketActivity/visitReport",
+ //市场信息管理
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/marketActivity/visitorReportAdd",
+ //走访报告添加
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/marketActivity/visitReportView",
+ //走访报告查看
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/marketActivity/visitReportDetail",
+ //走访报告查看具体明细
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/marketActivity/auditReport",
+ //走访报告审批列表查看
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/marketActivity/detailForApproval",
+ //走访报告明细审批
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/marketActivity/visitorReportEnter",
+ //走访报告内容录入
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/marketActivity/auditReject",
+ //走访报告驳回输入原因
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/marketActivity/customerUserList",
+ //客户公司人员信息
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/marketActivity/myUserList",
+ //我公司人员信息
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/marketActivity/activityTypeList",
+ //活动类型
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/marketActivity/chooseCus",
+ //选择客户单位
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ //====================地图======
+ {
+ "path": "pages/business/CRM/map/vistorCheckin",
+ //签到打卡
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/map/addRearkSignIn",
+ //签到备注
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/map/checkInView",
+ //打卡信息(考勤查看)
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/map/checkinStatistics",
+ //打卡统计
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ //===================================活动报告====================
+ {
+ "path": "pages/notice/notice",
+ "style": {
+ "navigationBarTitleText": "",
+ "app-plus": {
+ "bounce": "none"
+ // 取消APP端iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle')
+ },
+ "mp-alipay": {
+ "allowsBounceVertical": "NO"
+ }
+ // 取消支付宝和钉钉小程序的iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle')
+ }
+ },
+ {
+ "path": "pages/userinfo/userinfo",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ }
+ ],
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "718友晟",
+ "navigationBarBackgroundColor": "#F8F8F8",
+ "backgroundColor": "#F8F8F8",
+ "navigationStyle": "custom"
+ },
+ "tabBar": {
+ "color": "#919191",
+ "selectedColor": "#ffffff",
+ "borderStyle": "#ffffff",
+ "backgroundColor": "#000000",
+ "fontSize": "12px",
+ "iconWidth": "24px",
+ "list": [
+ {
+ "pagePath": "pages/home/home",
+ "iconPath": "static/images/tabs/menu-home.png",
+ "selectedIconPath": "static/images/tabs/menu-home-on.png",
+ "text": "首页"
+ },
+ {
+ "pagePath": "pages/business/business",
+ "iconPath": "static/images/tabs/menu-business.png",
+ "selectedIconPath": "static/images/tabs/menu-business-on.png",
+ "text": "业务中心"
+ },
+ {
+ "pagePath": "pages/notice/notice",
+ "iconPath": "static/images/tabs/menu-info.png",
+ "selectedIconPath": "static/images/tabs/menu-info-on.png",
+ "text": "消息"
+ },
+ {
+ "pagePath": "pages/userinfo/userinfo",
+ "iconPath": "static/images/tabs/menu-me.png",
+ "selectedIconPath": "static/images/tabs/menu-me-on.png",
+ "text": "我的"
+ }
+ ]
+ }
}
diff --git a/src/pages/business/CRM/customer/components/customerUserEdit.vue b/src/pages/business/CRM/customer/components/customerUserEdit.vue
new file mode 100644
index 0000000..b57b6e6
--- /dev/null
+++ b/src/pages/business/CRM/customer/components/customerUserEdit.vue
@@ -0,0 +1,683 @@
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ customerUser.cusName || '查询客户名称' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.functionalRequirements ? formData.functionalRequirements : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.salesmanThinkLevel ? formData.salesmanThinkLevel : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.sex ? formData.sex : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.userType ? formData.userType : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.hierarchyNeeds ? formData.hierarchyNeeds : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.develop ? formData.develop : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.support ? formData.support : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+ {{ formData.workingStatus ? formData.workingStatus : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+ *★,°*:.☆( ̄▽ ̄)/$:*.°★*
+ 。恭喜你完成了信息填写,赶快提交吧!
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/business/CRM/customer/customerUserBelong.vue b/src/pages/business/CRM/customer/customerUserBelong.vue
index 71450fb..25ff5df 100644
--- a/src/pages/business/CRM/customer/customerUserBelong.vue
+++ b/src/pages/business/CRM/customer/customerUserBelong.vue
@@ -145,10 +145,12 @@ const mescrollInit = (mescroll) => {
const downCallback = async (mescroll) => {
try {
setTimeout(async () => {
- const res = await getList(1, upOption.value.page.size);
+ // 重置页码为第一页
+ const res = await getList(1, mescroll.size || upOption.page.size);
cssFlag.value = false;
list.value = res.list;
- mescroll.endSuccess(res.list.length, res.total >= upOption.value.page.size);
+ // 正确传递 total 参数
+ mescroll.endSuccess(res.list.length, res.total > (mescroll.size || upOption.page.size));
}, 500);
} catch (error) {
console.log(error)
@@ -159,13 +161,15 @@ const downCallback = async (mescroll) => {
const upCallback = async (mescroll) => {
try {
setTimeout(async () => {
+ // 使用 mescroll 提供的页码和大小参数
const res = await getList(mescroll.num, mescroll.size);
if (mescroll.num === 1) {
list.value = res.list;
} else {
list.value.push(...res.list);
}
- mescroll.endSuccess(res.list.length, res.total >= mescroll.size);
+ // 正确判断是否还有更多数据
+ mescroll.endSuccess(res.list.length, res.total > mescroll.num * mescroll.size);
}, 500);
} catch (error) {
console.log(error)
@@ -188,7 +192,6 @@ const getList = (pageIndex, pageSize) => {
total: res.total
});
});
-
}
// 跳转到详情
@@ -298,20 +301,28 @@ let handleDelete = async (item)=>{
.white-bg {
padding-bottom: 10rpx;
+ .w-b-title{
+ align-items: flex-start;
+ }
}
.btn-edit{
+ white-space: nowrap;
&.wancheng-deal {
- background: #00aa7f;
+ border:solid 1rpx #00aa7f;
+ background-color: #00aa7f;
}
&.daishenhe-un-deal {
- background: #ffaa7f;
+ border:solid 1rpx #ffaa7f;
+ background-color: #ffaa7f;
}
&.chaoqi-deal {
- background: #ff0000;
+ border:1rpx solid #ff0000;
+ background-color: #ff0000;
}
&.tijiao-deal {
- background: #00aaff;
+ border:1rpx solid #00aaff;
+ background-color: #00aaff;
}
}
\ No newline at end of file
From d00ae06fa829203767411392423c86726e5731f7 Mon Sep 17 00:00:00 2001
From: wangzhuo
Date: Mon, 18 Aug 2025 21:54:42 +0800
Subject: [PATCH 5/9] =?UTF-8?q?fix:=20=E5=AE=A2=E6=88=B7=E4=BA=BA=E5=91=98?=
=?UTF-8?q?=E7=BC=96=E8=BE=91=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/crm/customer/getCustomer.js | 16 +++++++++++++++-
src/api/crm/customer/updateCustomer.js | 15 +++++++++++++++
.../CRM/customer/components/customerUserEdit.vue | 6 ++----
3 files changed, 32 insertions(+), 5 deletions(-)
create mode 100644 src/api/crm/customer/updateCustomer.js
diff --git a/src/api/crm/customer/getCustomer.js b/src/api/crm/customer/getCustomer.js
index a2965fa..bba24d7 100644
--- a/src/api/crm/customer/getCustomer.js
+++ b/src/api/crm/customer/getCustomer.js
@@ -15,10 +15,24 @@ export function getCustomerLevel(params){
data: params
},{isTransformResponse: false})
}
-
+// 客户人员新增
export function saveappCrmCusUserNew(params){
return request.get({
url: '/app/appCrmCusUserNewController/add',
data: params
},{isTransformResponse: false})
+}
+// 查看客户人员归属
+export function searchForAllPerson(params){
+ return request.get({
+ url: 'app/appCrmCusUserNewController/SearchForAllCustomersSalesperson',
+ data: params
+ },{isTransformResponse: false})
+}
+// 客户人员归属审核详情
+export function getCusUserApprovalListDetail(params){
+ return request.get({
+ url: '/app/appCrmCusUserNewController/getCusUserApprovalListDetail',
+ data: params
+ },{isTransformResponse: false})
}
\ No newline at end of file
diff --git a/src/api/crm/customer/updateCustomer.js b/src/api/crm/customer/updateCustomer.js
new file mode 100644
index 0000000..03d3cff
--- /dev/null
+++ b/src/api/crm/customer/updateCustomer.js
@@ -0,0 +1,15 @@
+import request from "@/utils/request"
+// 删除客户人员归属消息
+export function removeVisit(params){
+ return request.get({
+ url: '/app/appVisistReport/remove',
+ data: params
+ },{isTransformResponse: false})
+}
+// 更新客户人员
+export function upadateappCrmCusUserNew (data){
+ return request.post({
+ url: '/app/appCrmCusUserNewController/update',
+ data
+ },{isTransformResponse: false})
+}
\ No newline at end of file
diff --git a/src/pages/business/CRM/customer/components/customerUserEdit.vue b/src/pages/business/CRM/customer/components/customerUserEdit.vue
index b57b6e6..ca12fdf 100644
--- a/src/pages/business/CRM/customer/components/customerUserEdit.vue
+++ b/src/pages/business/CRM/customer/components/customerUserEdit.vue
@@ -38,10 +38,7 @@
-
-
-
-
+
@@ -574,6 +571,7 @@ let submitForm = async () => {
let {name} = hobbyList[it];
return name;
})
+ formData.value.iphone = formData.value.mobilePhone; // 特殊处理
const hobbyTagString = hobbyTags.join(',');
console.log(hobbyTagString);
if (hobbyTagString || formData.value.hobby) {
From 5fd7c1d158cc010bf55a9e374a3c7eb1f95526e8 Mon Sep 17 00:00:00 2001
From: wangzhuo
Date: Tue, 19 Aug 2025 11:29:46 +0800
Subject: [PATCH 6/9] =?UTF-8?q?feat:=20=E5=AE=A2=E6=88=B7=E4=BA=BA?=
=?UTF-8?q?=E5=91=98=E4=B8=BB=E5=BD=92=E5=B1=9E=E4=BA=BA=E5=8F=98=E6=9B=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/crm/customer/getCustomer.js | 11 +-
src/api/crm/customer/updateCustomer.js | 7 +
.../CRM/customer/changeCustomerOwner.vue | 355 ++++++++++++++++++
.../business/CRM/customer/customerAdd.vue | 4 +
.../CRM/customer/customerUserBelong.vue | 9 +-
5 files changed, 382 insertions(+), 4 deletions(-)
create mode 100644 src/pages/business/CRM/customer/changeCustomerOwner.vue
diff --git a/src/api/crm/customer/getCustomer.js b/src/api/crm/customer/getCustomer.js
index bba24d7..0c165d2 100644
--- a/src/api/crm/customer/getCustomer.js
+++ b/src/api/crm/customer/getCustomer.js
@@ -22,8 +22,8 @@ export function saveappCrmCusUserNew(params){
data: params
},{isTransformResponse: false})
}
-// 查看客户人员归属
-export function searchForAllPerson(params){
+// 查询业务员名下所有的客户
+export function SearchForAllCustomersSalesperson(params){
return request.get({
url: 'app/appCrmCusUserNewController/SearchForAllCustomersSalesperson',
data: params
@@ -35,4 +35,11 @@ export function getCusUserApprovalListDetail(params){
url: '/app/appCrmCusUserNewController/getCusUserApprovalListDetail',
data: params
},{isTransformResponse: false})
+}
+// 查询主归属人列表
+export function SearchForAllPerson(params){
+ return request.get({
+ url: '/app/appCrmCusUserNewController/SearchForAllPerson',
+ data: params
+ },{isTransformResponse: false})
}
\ No newline at end of file
diff --git a/src/api/crm/customer/updateCustomer.js b/src/api/crm/customer/updateCustomer.js
index 03d3cff..76d8438 100644
--- a/src/api/crm/customer/updateCustomer.js
+++ b/src/api/crm/customer/updateCustomer.js
@@ -12,4 +12,11 @@ export function upadateappCrmCusUserNew (data){
url: '/app/appCrmCusUserNewController/update',
data
},{isTransformResponse: false})
+}
+//主归属人变更提交
+export function submissionOfChangeOfMainOwner (data){
+ return request.get({
+ url: '/app/appCrmCusUserNewController/submissionOfChangeOfMainOwner',
+ data
+ },{isTransformResponse: false})
}
\ No newline at end of file
diff --git a/src/pages/business/CRM/customer/changeCustomerOwner.vue b/src/pages/business/CRM/customer/changeCustomerOwner.vue
new file mode 100644
index 0000000..6e8c095
--- /dev/null
+++ b/src/pages/business/CRM/customer/changeCustomerOwner.vue
@@ -0,0 +1,355 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.cusName }}
+ 复制信息
+
+
+ 客户人员名称
+ {{ item.userName }}
+
+
+
+
+ 性别
+ {{ item.sex }}
+
+
+
+
+ 手机号
+ {{ item.mobilePhone || item.iphone }}
+
+
+
+
+ 部门
+ {{ item.userDept }}
+
+
+
+
+ 业务员认定等级
+ {{ item.salesmanThinkLevel }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/business/CRM/customer/customerAdd.vue b/src/pages/business/CRM/customer/customerAdd.vue
index c392bb0..1dc58bf 100644
--- a/src/pages/business/CRM/customer/customerAdd.vue
+++ b/src/pages/business/CRM/customer/customerAdd.vue
@@ -1,3 +1,7 @@
+
diff --git a/src/pages/business/CRM/customer/customerUserBelong.vue b/src/pages/business/CRM/customer/customerUserBelong.vue
index 25ff5df..7cb13e1 100644
--- a/src/pages/business/CRM/customer/customerUserBelong.vue
+++ b/src/pages/business/CRM/customer/customerUserBelong.vue
@@ -1,3 +1,8 @@
+
@@ -84,7 +89,7 @@ import {ref, onMounted, watch} from 'vue'
import customHeader from '@/components/customHeader.vue'
import MescrollUni from 'mescroll-uni/mescroll-uni.vue';
import {getNavBarPaddingTop} from '@/utils/system.js'
-import {searchForAllPerson} from "@/api/crm/customer/getCustomer"
+import {SearchForAllCustomersSalesperson} from "@/api/crm/customer/getCustomer"
import {statusColorMap} from "./dataMap";
// 获取导航栏高度用于内容区域padding
@@ -186,7 +191,7 @@ const getList = (pageIndex, pageSize) => {
searchContent: searchValue.value
}
- let res = await searchForAllPerson(param);
+ let res = await SearchForAllCustomersSalesperson(param);
resolve({
list: res.rows,
total: res.total
From 5904893d1e0d272abb9329f2f5bc5c12d7069013 Mon Sep 17 00:00:00 2001
From: wangzhuo
Date: Tue, 19 Aug 2025 11:30:16 +0800
Subject: [PATCH 7/9] =?UTF-8?q?fix:=20=E5=AE=A2=E6=88=B7=E4=BA=BA=E5=91=98?=
=?UTF-8?q?=E4=B8=BB=E5=BD=92=E5=B1=9E=E4=BA=BA=E5=8F=98=E6=9B=B4-page.jso?=
=?UTF-8?q?n?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages.json | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/pages.json b/src/pages.json
index edfcc8a..9349533 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -281,6 +281,13 @@
"navigationBarTitleText": ""
}
},
+ {
+ "path": "pages/business/CRM/customer/changeCustomerOwner",
+ //客户人员主归属人变更
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
{
"path": "pages/business/CRM/customer/components/customerUserEdit",
//客户人员详情编辑
From 1fda9c6500988666470ce3e3025af2c50bea0dda Mon Sep 17 00:00:00 2001
From: wangzhuo
Date: Tue, 19 Aug 2025 22:06:10 +0800
Subject: [PATCH 8/9] =?UTF-8?q?feat:=20=E5=AE=A2=E6=88=B7=E4=BA=BA?=
=?UTF-8?q?=E5=91=98=E4=B8=BB=E5=BD=92=E5=B1=9E=E4=BA=BA=E5=8F=98=E6=9B=B4?=
=?UTF-8?q?=E5=AE=A1=E6=A0=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/crm/mainOwner/mainOwner.js | 23 +
src/pages.json | 14 +
.../CRM/customer/changeCustomerOwner.vue | 9 +-
.../CRM/mainOwner/audit/confirmForm.vue | 752 ++++++++++++++++++
.../mainOwner/audit/mainOwnerChangeAudit.vue | 273 +++++++
5 files changed, 1066 insertions(+), 5 deletions(-)
create mode 100644 src/pages/business/CRM/mainOwner/audit/confirmForm.vue
create mode 100644 src/pages/business/CRM/mainOwner/audit/mainOwnerChangeAudit.vue
diff --git a/src/api/crm/mainOwner/mainOwner.js b/src/api/crm/mainOwner/mainOwner.js
index c7c1ba5..9d4dbcb 100644
--- a/src/api/crm/mainOwner/mainOwner.js
+++ b/src/api/crm/mainOwner/mainOwner.js
@@ -16,3 +16,26 @@ export function queryViewMainOwnerDetail(params){
data: params
},{isTransformResponse: false})
}
+
+//查询主归属人变更人员的列表数据
+export function personnelAwaitingReviewForChange(params){
+ return request.get({
+ url: '/app/appCrmCusUserNewController/personnelAwaitingReviewForChange',
+ data: params
+ },{isTransformResponse: false})
+}
+
+//主归属人变更驳回
+export function changeOfPrimaryOwnershipNoApproved(params) {
+ return request.get({
+ url:'/app/appCrmCusUserNewController/changeOfPrimaryOwnershipNoApproved',
+ data: params
+ }, {isTransformResponse: false});
+}
+//主归属人变更通过
+export function changeOfPrimaryOwnershipApproved (params) {
+ return request.get({
+ url: '/app/appCrmCusUserNewController/changeOfPrimaryOwnershipApproved',
+ data: params
+ }, {isTransformResponse: false});
+}
\ No newline at end of file
diff --git a/src/pages.json b/src/pages.json
index 9349533..3e18b86 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -288,6 +288,20 @@
"navigationBarTitleText": ""
}
},
+ {
+ "path": "pages/business/CRM/mainOwner/audit/mainOwnerChangeAudit",
+ //客户人员主归属人变更审核
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "pages/business/CRM/mainOwner/audit/confirmForm",
+ //客户人员主归属人变更审核意见
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
{
"path": "pages/business/CRM/customer/components/customerUserEdit",
//客户人员详情编辑
diff --git a/src/pages/business/CRM/customer/changeCustomerOwner.vue b/src/pages/business/CRM/customer/changeCustomerOwner.vue
index 6e8c095..19f8654 100644
--- a/src/pages/business/CRM/customer/changeCustomerOwner.vue
+++ b/src/pages/business/CRM/customer/changeCustomerOwner.vue
@@ -30,12 +30,12 @@
class="scroll-h" :class="{'loading-scroll':cssFlag}"
>
+ @touchstart="handleTouchStart(item)"
+ @touchend="handleTouchEnd">
-
+
{{ item.cusName }}
- 复制信息
+
客户人员名称
@@ -65,7 +65,6 @@
业务员认定等级
{{ item.salesmanThinkLevel }}
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ customerUser.cusName || '查询客户名称' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.userType ? formData.userType : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.functionalRequirements ? formData.functionalRequirements : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.salesmanThinkLevel ? formData.salesmanThinkLevel : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.sex ? formData.sex : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.hierarchyNeeds ? formData.hierarchyNeeds : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.develop ? formData.develop : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.support ? formData.support : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+ {{ formData.workingStatus ? formData.workingStatus : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/business/CRM/mainOwner/audit/mainOwnerChangeAudit.vue b/src/pages/business/CRM/mainOwner/audit/mainOwnerChangeAudit.vue
new file mode 100644
index 0000000..0f9f7d2
--- /dev/null
+++ b/src/pages/business/CRM/mainOwner/audit/mainOwnerChangeAudit.vue
@@ -0,0 +1,273 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.cusName }}
+ {{item.auditStatus?'':'待您审批'}}
+
+
+ 客户人员名称
+ {{ item.userName }}
+
+
+
+
+ 目前业务员
+ {{ item.belonger }}
+
+
+
+
+ 创建时间
+ {{ item.createTime }}
+
+
+
+
+ 职能
+ {{ item.function }}
+
+
+
+
+ 申请变更人姓名
+ {{ item.applicantName }}
+
+
+
+
+ 申请原因
+ {{ item.reasonForChange }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From ed827b09af1ca5e313413d47b3fe0ff01722a5a1 Mon Sep 17 00:00:00 2001
From: wangzhuo
Date: Wed, 20 Aug 2025 15:04:02 +0800
Subject: [PATCH 9/9] =?UTF-8?q?feat:=20=E5=AE=A2=E6=88=B7=E4=BA=BA?=
=?UTF-8?q?=E5=91=98=E5=AE=A1=E6=A0=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/crm/customer/getCustomer.js | 9 +
src/api/crm/customer/updateCustomer.js | 14 +
src/pages.json | 16 +-
.../CRM/customer/changeCustomerOwner.vue | 47 +-
.../CRM/customer/components/confirmForm.vue | 721 ++++++++++++++++++
.../customer/components/customerUserEdit.vue | 29 +-
.../business/CRM/customer/customerAdd.vue | 12 +-
.../business/CRM/customer/customerAudit.vue | 242 ++++++
.../CRM/customer/customerUserBelong.vue | 94 ++-
.../business/CRM/customer/selectCustomer.vue | 23 +-
.../CRM/mainOwner/audit/confirmForm.vue | 61 +-
.../mainOwner/audit/mainOwnerChangeAudit.vue | 18 +-
12 files changed, 1145 insertions(+), 141 deletions(-)
create mode 100644 src/pages/business/CRM/customer/components/confirmForm.vue
create mode 100644 src/pages/business/CRM/customer/customerAudit.vue
diff --git a/src/api/crm/customer/getCustomer.js b/src/api/crm/customer/getCustomer.js
index 0c165d2..76c59c5 100644
--- a/src/api/crm/customer/getCustomer.js
+++ b/src/api/crm/customer/getCustomer.js
@@ -42,4 +42,13 @@ export function SearchForAllPerson(params){
url: '/app/appCrmCusUserNewController/SearchForAllPerson',
data: params
},{isTransformResponse: false})
+}
+
+// 客户人员新增审核列表
+export function getCusUserApprovalList(params) {
+ return request.get({
+ url: '/app/appCrmCusUserNewController/getCusUserApprovalList',
+ data: params
+ }, {isTransformResponse: false}
+ )
}
\ No newline at end of file
diff --git a/src/api/crm/customer/updateCustomer.js b/src/api/crm/customer/updateCustomer.js
index 76d8438..886e458 100644
--- a/src/api/crm/customer/updateCustomer.js
+++ b/src/api/crm/customer/updateCustomer.js
@@ -13,6 +13,20 @@ export function upadateappCrmCusUserNew (data){
data
},{isTransformResponse: false})
}
+// 客户人员审核通过
+export function clientPersonnelsApproval(data) {
+ return request.get({
+ url: '/app/appCrmCusUserNewController/clientPersonnelsApproval',
+ data
+ }, {isTransformResponse: false});
+}
+//客户人员驳回
+export function customerPersonnelsRejectio(data) {
+ return request.get({
+ url: '/app/appCrmCusUserNewController/customerPersonnelsRejectio',
+ data
+ }, {isTransformResponse: false});
+}
//主归属人变更提交
export function submissionOfChangeOfMainOwner (data){
return request.get({
diff --git a/src/pages.json b/src/pages.json
index 3e18b86..07cd9ee 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -274,6 +274,13 @@
"navigationBarTitleText": ""
}
},
+ {
+ "path": "pages/business/CRM/customer/customerAudit",
+ //客户人员审核
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
{
"path": "pages/business/CRM/customer/customerUserBelong",
//客户人员归属
@@ -281,6 +288,13 @@
"navigationBarTitleText": ""
}
},
+ {
+ "path": "pages/business/CRM/customer/components/confirmForm",
+ //客户人员主归属人变更审核提交
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
{
"path": "pages/business/CRM/customer/changeCustomerOwner",
//客户人员主归属人变更
@@ -297,7 +311,7 @@
},
{
"path": "pages/business/CRM/mainOwner/audit/confirmForm",
- //客户人员主归属人变更审核意见
+ //客户人员主归属人变更审核提交
"style": {
"navigationBarTitleText": ""
}
diff --git a/src/pages/business/CRM/customer/changeCustomerOwner.vue b/src/pages/business/CRM/customer/changeCustomerOwner.vue
index 19f8654..1f5d820 100644
--- a/src/pages/business/CRM/customer/changeCustomerOwner.vue
+++ b/src/pages/business/CRM/customer/changeCustomerOwner.vue
@@ -7,7 +7,7 @@
-
+
@@ -19,9 +19,8 @@
-
@@ -102,7 +101,6 @@ let timerId = null;
let handleSearch = () => {
// 防抖搜索 console.log(searchValue.value)
if (timerId) clearTimeout(timerId);
- cssFlag.value = true;
timerId = setTimeout(async () => {
// let res = await getList(1, upOption.value.page.size)
@@ -145,13 +143,17 @@ const mescrollInit = (mescroll) => {
// 下拉刷新
const downCallback = async (mescroll) => {
try {
+ uni.showLoading();
+ cssFlag.value = true;
setTimeout(async () => {
// 重置页码为第一页
const res = await getList(1, mescroll.size || upOption.page.size);
- cssFlag.value = false;
list.value = res.list;
+ cssFlag.value = false;
// 正确传递 total 参数
mescroll.endSuccess(res.list.length, res.total > (mescroll.size || upOption.page.size));
+ uni.hideLoading();
+
}, 500);
} catch (error) {
console.log(error)
@@ -161,6 +163,7 @@ const downCallback = async (mescroll) => {
// 上拉加载更多
const upCallback = async (mescroll) => {
try {
+ uni.showLoading();
setTimeout(async () => {
// 使用 mescroll 提供的页码和大小参数
const res = await getList(mescroll.num, mescroll.size);
@@ -171,6 +174,7 @@ const upCallback = async (mescroll) => {
}
// 正确判断是否还有更多数据
mescroll.endSuccess(res.list.length, res.total > mescroll.num * mescroll.size);
+ uni.hideLoading();
}, 500);
} catch (error) {
console.log(error)
@@ -243,18 +247,20 @@ let handleChange = (item)=>{
userName: item.userName,
reasonForChange: res.content
}).then(res=>{
- uni.showToast({
- title: '变更成功'
- })
- }).catch(err=>{
- uni.showToast({
- title: '变更失败',
- icon: 'error'
- })
+ if(res.code===200){
+ uni.showToast({
+ title: '操作成功'
+ })
+ }else{
+ uni.showToast({
+ title: '操作失败',
+ icon: 'error'
+ })
+ }
})
}else{
uni.showToast({
- title: '变更失败,请补充变更原因',
+ title: '操作失败!变更原因不能为空',
icon: 'none'
})
}
@@ -304,9 +310,7 @@ let handleCopyInfo=(item)=>{
/* #endif */
}
-.search {
- display: flex;
-}
+
.search .btn-search {
border: none;
@@ -323,15 +327,6 @@ let handleCopyInfo=(item)=>{
display: none;
}
-.search .custom-search {
- width: 80%;
-
-}
-
-.search .custom-search.uni-searchbar {
- padding-right: 0 !important;
-}
-
.scroll-h {
/* #ifdef APP-PLUS */
height: calc(100vh - 120px);
diff --git a/src/pages/business/CRM/customer/components/confirmForm.vue b/src/pages/business/CRM/customer/components/confirmForm.vue
new file mode 100644
index 0000000..49c064d
--- /dev/null
+++ b/src/pages/business/CRM/customer/components/confirmForm.vue
@@ -0,0 +1,721 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ customerUser.cusName || '查询客户名称' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.userType ? formData.userType : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.functionalRequirements ? formData.functionalRequirements : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.salesmanThinkLevel ? formData.salesmanThinkLevel : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.sex ? formData.sex : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.hierarchyNeeds ? formData.hierarchyNeeds : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.develop ? formData.develop : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formData.support ? formData.support : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+ {{ formData.workingStatus ? formData.workingStatus : '请选择' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/business/CRM/customer/components/customerUserEdit.vue b/src/pages/business/CRM/customer/components/customerUserEdit.vue
index ca12fdf..cb3f608 100644
--- a/src/pages/business/CRM/customer/components/customerUserEdit.vue
+++ b/src/pages/business/CRM/customer/components/customerUserEdit.vue
@@ -455,6 +455,7 @@ let handleFunctionChange = (e) => {
console.log(e.detail.value, '职能索引');
const {name} = functionalRequirementList[e.detail.value];
formData.value.functionalRequirements = name;
+ formData.value.function = name;
getRecommendLevel();
}
@@ -585,17 +586,25 @@ let submitForm = async () => {
console.log(formData.value, "提交表单数据")
// 请求保存
uni.showLoading()
- upadateappCrmCusUserNew(formData.value).then(res=>{
+ upadateappCrmCusUserNew(formData.value).then(ret=>{
uni.hideLoading();
- uni.showToast({
- title: "更新成功"
- })
- setTimeout(()=>uni.navigateBack(), 1500);
- }).catch(err=>{
- uni.showToast({
- icon: 'none',
- title: "更新失败"
- })
+ if(ret.code === 200){
+ uni.showToast({
+ title: "更新成功"
+ })
+ setTimeout(()=>{
+ uni.navigateBack();
+ const eventChannel = instance.getOpenerEventChannel();
+ eventChannel.emit("refreshCusUserList");
+ },1000);
+
+ }else{
+ uni.showToast({
+ title: "操作失败",
+ icon: "error"
+ })
+ }
+
})
// 重置表单
// 清除校验
diff --git a/src/pages/business/CRM/customer/customerAdd.vue b/src/pages/business/CRM/customer/customerAdd.vue
index 1dc58bf..f6f3a7a 100644
--- a/src/pages/business/CRM/customer/customerAdd.vue
+++ b/src/pages/business/CRM/customer/customerAdd.vue
@@ -566,9 +566,15 @@ let submitForm = async () => {
uni.showLoading()
saveappCrmCusUserNew(formData.value).then(res=>{
uni.hideLoading();
- uni.showToast({
- title: "保存成功"
- })
+ if(res.code === 200){
+ uni.showToast({
+ title: "保存成功"
+ })
+ }else{
+ uni.showToast({
+ title: "操作失败"
+ })
+ }
setTimeout(()=>uni.navigateBack(), 1500);
}).catch(err=>{
uni.showToast({
diff --git a/src/pages/business/CRM/customer/customerAudit.vue b/src/pages/business/CRM/customer/customerAudit.vue
new file mode 100644
index 0000000..2fa806a
--- /dev/null
+++ b/src/pages/business/CRM/customer/customerAudit.vue
@@ -0,0 +1,242 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.cusName }}
+
+ {{ item.auditStatus ? '' : '待您审批' }}
+
+
+
+ 客户人员名称
+ {{ item.userName }}
+
+
+
+
+ 目前业务员
+ {{ item.belonger }}
+
+
+
+
+ 创建时间
+ {{ item.createTime }}
+
+
+
+
+ 职能
+ {{ item.function }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/business/CRM/customer/customerUserBelong.vue b/src/pages/business/CRM/customer/customerUserBelong.vue
index 7cb13e1..179491b 100644
--- a/src/pages/business/CRM/customer/customerUserBelong.vue
+++ b/src/pages/business/CRM/customer/customerUserBelong.vue
@@ -19,9 +19,9 @@
-
@@ -29,11 +29,15 @@
:up="upOption" :down="downOption" :fixed="false" textColor="#ffffff" bgColor="#ffffff"
class="scroll-h" :class="{'loading-scroll':cssFlag}"
>
-
+
-
+
{{ item.cusName }}
- {{ item.nodeCode }}
+
+ {{ item.nodeCode }}
+
客户人员名称
@@ -107,7 +111,7 @@ let timerId = null;
let handleSearch = () => {
console.log(searchValue.value)
if (timerId) clearTimeout(timerId);
- cssFlag.value = true;
+
timerId = setTimeout(async () => {
// let res = await getList(1, upOption.value.page.size)
await downCallback(mescrollRef.value.mescroll);
@@ -119,7 +123,7 @@ let handleSearch = () => {
watch(searchValue, (newValue, oldValue) => {
handleSearch()
})
-let clearSearchValue = ()=>{
+let clearSearchValue = () => {
searchValue.value = '';
}
// 查询列表
@@ -149,6 +153,8 @@ const mescrollInit = (mescroll) => {
// 下拉刷新
const downCallback = async (mescroll) => {
try {
+ cssFlag.value = true;
+ uni.showLoading();
setTimeout(async () => {
// 重置页码为第一页
const res = await getList(1, mescroll.size || upOption.page.size);
@@ -156,6 +162,7 @@ const downCallback = async (mescroll) => {
list.value = res.list;
// 正确传递 total 参数
mescroll.endSuccess(res.list.length, res.total > (mescroll.size || upOption.page.size));
+ uni.hideLoading();
}, 500);
} catch (error) {
console.log(error)
@@ -201,31 +208,40 @@ const getList = (pageIndex, pageSize) => {
// 跳转到详情
let handleDetail = (item) => {
- uni.navigateTo({
- url: "/pages/business/CRM/customer/components/customerUserEdit",
- events: {
-
- },
- success(res){
- res.eventChannel.emit('editCusData', {param: item, isAdd: false})
- }
- })
+ if (item.nodeCode !== '完成') {
+ uni.navigateTo({
+ url: "/pages/business/CRM/customer/components/customerUserEdit",
+ events: {
+ refreshCusUserList() {
+ handleSearch();
+ }
+ },
+ success(res) {
+ res.eventChannel.emit('editCusData', {param: item, isAdd: false})
+ }
+ })
+ }else{
+ uni.showToast({
+ title: '已完成审核,不可修改',
+ icon: 'none'
+ })
+ }
}
// 长按定时器ID
let touchTimerId = null;
// 开始触摸
-let handleTouchStart = (item)=>{
- touchTimerId = setTimeout(()=>{
+let handleTouchStart = (item) => {
+ touchTimerId = setTimeout(() => {
// console.log(item, "长按客户人员项")
uni.showModal({
title: "提示",
content: "是否确认删除本条消息?",
- success(res){
- if(res.confirm){
+ success(res) {
+ if (res.confirm) {
handleDelete(item);
- }else if(res.cancel){
+ } else if (res.cancel) {
}
},
@@ -236,26 +252,26 @@ let handleTouchStart = (item)=>{
}
// 结束触摸
-let handleTouchEnd = ()=>{
- if(touchTimerId !== null){
+let handleTouchEnd = () => {
+ if (touchTimerId !== null) {
clearTimeout(touchTimerId);
}
}
// 删除消息
-let handleDelete = async (item)=>{
+let handleDelete = async (item) => {
// console.log(item)
const visitId = item.visitId;
// await removeVisit({visitId})
// uni.hideLoading();
uni.showToast({
- title: visitId?visitId:"没有visitId字段,无法删除",
+ title: visitId ? visitId : "没有visitId字段,无法删除",
icon: 'none'
});
}
-
\ No newline at end of file