feat(销售阶段): 拆分课1-4阶段为单独课程阶段并优化逻辑
- 将课1-4阶段拆分为课1、课2、课3、课4四个独立阶段 - 修改客户类型和销售阶段处理逻辑,使用当前选中阶段作为默认值 - 添加课程阶段筛选功能,支持按具体课程筛选客户 - 更新销售时间线组件以支持新的课程阶段显示
This commit is contained in:
@@ -366,9 +366,10 @@ async function getTimeline() {
|
||||
if(classRes.code === 200) {
|
||||
// 处理课1-4阶段的客户数据
|
||||
if (classRes.data.class_customers_list) {
|
||||
console.log(8888999,courseCustomers.value)
|
||||
// 存储课1-4阶段的原始数据,根据pay_status设置正确的type
|
||||
courseCustomers.value['课1-4'] = classRes.data.class_customers_list.map(customer => {
|
||||
let customerType = '课1-4'; // 默认类型
|
||||
let customerType = ''; // 默认类型
|
||||
|
||||
// 根据pay_status设置具体的type
|
||||
if (customer.pay_status === '点击未支付') {
|
||||
@@ -677,7 +678,7 @@ const handleStageSelect = (stage, extraData = null) => {
|
||||
|
||||
|
||||
} else if (extraData && extraData.isCourseStage) {
|
||||
// 处理课1-4阶段的课程数据(保持原有逻辑)
|
||||
// 处理课程阶段的数据(课1-4、课1、课2、课3、课4)
|
||||
|
||||
|
||||
const courseContacts = extraData.courseData.map(customer => ({
|
||||
@@ -687,8 +688,8 @@ const handleStageSelect = (stage, extraData = null) => {
|
||||
profession: customer.profession,
|
||||
education: customer.education,
|
||||
avatar: customer.avatar,
|
||||
type: customer.type || '课1-4', // 保持原有type字段,如果没有则默认为课1-4
|
||||
salesStage: customer.type || '课1-4', // 使用customer.type作为salesStage
|
||||
type: customer.type || stage, // 使用当前选中的阶段作为type
|
||||
salesStage: customer.type || stage, // 使用customer.type或当前阶段作为salesStage
|
||||
health: customer.health,
|
||||
customer_name: customer.customer_name,
|
||||
customer_occupation: customer.customer_occupation,
|
||||
|
||||
Reference in New Issue
Block a user