From 020dd1c77b2abad6656ac1642bb7946129b2c645 Mon Sep 17 00:00:00 2001
From: xpz2018 <107107461@qq.com>
Date: Mon, 9 Jun 2025 16:16:04 +0800
Subject: [PATCH] no message
---
src/enums/customerEnum.ts | 11 +++++++
src/views/clue/clueList/data.ts | 27 ++++++++++-------
src/views/clue/clueList/index.vue | 4 +--
src/views/clue/cluePool/data.ts | 49 +++++++++++++++++--------------
src/views/clue/cluePool/index.vue | 5 ++--
src/views/clue/customer/data.ts | 28 +++++++++---------
src/views/clue/customer/index.vue | 32 ++++++++++++++++----
7 files changed, 98 insertions(+), 58 deletions(-)
diff --git a/src/enums/customerEnum.ts b/src/enums/customerEnum.ts
index 33e9ce6..a265975 100644
--- a/src/enums/customerEnum.ts
+++ b/src/enums/customerEnum.ts
@@ -42,11 +42,22 @@ export const clueStatusList = [
{ label: '有效线索', value: 4 },
]
+export const followStatusList = [
+ { label: '待跟进', value: 1 },
+ { label: '跟进中', value: 2 },
+]
+
export const followTypeList = [
{ label: '电话', value: 1 },
{ label: '微信', value: 2 },
]
+export const validStatusList = [
+ { label: '未知线索', value: 1 },
+ { label: '有效线索', value: 2 },
+ { label: '无效线索', value: 3 },
+]
+
export const followStageList = [
{ label: '有效线索', value: 101, color: 'green' },
{ label: '无效线索', value: 102, color: 'red' },
diff --git a/src/views/clue/clueList/data.ts b/src/views/clue/clueList/data.ts
index a849ad6..01f8194 100644
--- a/src/views/clue/clueList/data.ts
+++ b/src/views/clue/clueList/data.ts
@@ -1,5 +1,5 @@
import { BasicColumn, FormSchema } from '/@/components/Table'
-import { genderList, channelList, clueStatusList } from '/@/enums/customerEnum'
+import { genderList, channelList, clueStatusList, followStatusList, validStatusList } from '/@/enums/customerEnum'
import {
getIncomeList,
getNationList,
@@ -17,26 +17,31 @@ import {
export const tableColumns: BasicColumn[] = [
{ title: '用户信息', dataIndex: 'userinfo', slots: { customRender: 'userinfo' } },
- { width: 80, title: '性别', dataIndex: 'genderCode', customRender: ({ text }) => { return genderList.find((find) => find.value === text)?.label} },
- { width: 120, title: '手机号码', dataIndex: 'phone' },
- { width: 120, title: '渠道来源', dataIndex: 'channelType',
+ { width: 70, title: '性别', dataIndex: 'genderCode', customRender: ({ text }) => { return genderList.find((find) => find.value === text)?.label} },
+ { width: 110, title: '手机号码', dataIndex: 'phone' },
+ { width: 100, title: '渠道来源', dataIndex: 'channelType',
customRender: ({ text }) => {
return channelList.find((find) => find.value === text)?.label
},
},
- { width: 100, title: '状态', dataIndex: 'validStatus',
- customRender: ({ text }) => {
- return clueStatusList.find((find) => find.value === text)?.label
- },
- },
+ // { width: 80, title: '状态', dataIndex: 'validStatus',
+ // customRender: ({ text }) => {
+ // return clueStatusList.find((find) => find.value === text)?.label
+ // },
+ // },
{ width: 100, title: '创建人', dataIndex: 'creatorName' },
{ width: 100, title: '核验人', dataIndex: 'verifierName' },
- { width: 120, title: '跟进状态', dataIndex: 'followStatus',
+ { width: 100, title: '跟进状态', dataIndex: 'followStatus',
customRender: ({ text }) => {
- return clueStatusList.find((find) => find.value === text)?.label
+ return followStatusList.find((find) => find.value === text)?.label
},
},
{ width: 160, title: '最后跟进时间', dataIndex: 'finalFollowTime' },
+ { width: 100, title: '跟进结果', dataIndex: 'validStatus',
+ customRender: ({ text }) => {
+ return validStatusList.find((find) => find.value === text)?.label
+ },
+ },
{ width: 160, title: '录入时间', dataIndex: 'creatTime' },
]
diff --git a/src/views/clue/clueList/index.vue b/src/views/clue/clueList/index.vue
index c135ebc..dadbbe3 100644
--- a/src/views/clue/clueList/index.vue
+++ b/src/views/clue/clueList/index.vue
@@ -96,9 +96,9 @@
const router = useRouter()
function toDetail(record: any) {
- const { miId } = record
+ const { id } = record
router.push({
- query: { miId },
+ query: { id },
path: '/clue/customer',
})
}
diff --git a/src/views/clue/cluePool/data.ts b/src/views/clue/cluePool/data.ts
index 1af827d..64bb0cb 100644
--- a/src/views/clue/cluePool/data.ts
+++ b/src/views/clue/cluePool/data.ts
@@ -3,27 +3,32 @@ import moment from 'moment';
export const tableColumns: BasicColumn[] = [
{ title: '用户信息', dataIndex: 'userinfo', slots: { customRender: 'userinfo' } },
- { width: 80, title: '性别', dataIndex: 'genderCode', customRender: ({ text }) => { return genderList.find((find) => find.value === text)?.label} },
+ { width: 60, title: '性别', dataIndex: 'genderCode', customRender: ({ text }) => { return genderList.find((find) => find.value === text)?.label} },
{ width: 120, title: '手机号码', dataIndex: 'phone' },
- { width: 100, title: '渠道来源', dataIndex: 'channelType',
+ { width: 90, title: '渠道来源', dataIndex: 'channelType',
customRender: ({ text }) => {
return channelList.find((find) => find.value === text)?.label
},
},
- { width: 100, title: '状态', dataIndex: 'allocationStatus',
+ { width: 80, title: '状态', dataIndex: 'allocationStatus',
customRender: ({ text }) => {
return clueStatusList.find((find) => find.value === text)?.label
},
},
{ width: 100, title: '创建人', dataIndex: 'creatorName' },
{ width: 100, title: '核验人', dataIndex: 'verifierName' },
- { width: 100, title: '跟进状态', dataIndex: 'followStatus',
+ { width: 90, title: '跟进状态', dataIndex: 'followStatus',
customRender: ({ text }) => {
- return clueStatusList.find((find) => find.value === text)?.label
+ return followStatusList.find((find) => find.value === text)?.label
+ },
+ },
+ { width: 150, title: '最后跟进时间', dataIndex: 'finalFollowTime' },
+ { width: 90, title: '跟进结果', dataIndex: 'validStatus',
+ customRender: ({ text }) => {
+ return validStatusList.find((find) => find.value === text)?.label
},
},
- { width: 160, title: '最后跟进时间', dataIndex: 'finalFollowTime' },
- { width: 160, title: '录入时间', dataIndex: 'creatTime' },
+ { width: 150, title: '录入时间', dataIndex: 'creatTime' },
]
export const tableFormSchema: FormSchema[] = [
@@ -118,7 +123,7 @@ export const tableFormSchema: FormSchema[] = [
import { ref } from 'vue'
import dayjs, { Dayjs } from 'dayjs'
-import { genderList, channelList, clueStatusList } from '/@/enums/customerEnum'
+import { genderList, channelList, clueStatusList, followStatusList, validStatusList } from '/@/enums/customerEnum'
import { useAddressData } from '/@/hooks/common'
import {
getIncomeList,
@@ -229,6 +234,20 @@ export const modalFormSchema: FormSchema[] = [
},
},
},
+ {
+ field: 'maritalStatusCode',
+ label: '婚姻状况',
+ colProps: { span: 8 },
+ component: 'ApiSelect',
+ componentProps: {
+ labelField: 'desc',
+ api: getMaritalStatusList,
+ getPopupContainer: () => document.body,
+ onChange: (_: any, v: any) => {
+ basicInfoData.value.maritalStatusName = v?.label
+ },
+ },
+ },
{
field: 'address',
label: '现居住地',
@@ -273,20 +292,6 @@ export const modalFormSchema: FormSchema[] = [
}
},
},
- {
- field: 'maritalStatusCode',
- label: '婚姻状况',
- colProps: { span: 8 },
- component: 'ApiSelect',
- componentProps: {
- labelField: 'desc',
- api: getMaritalStatusList,
- getPopupContainer: () => document.body,
- onChange: (_: any, v: any) => {
- basicInfoData.value.maritalStatusName = v?.label
- },
- },
- },
{ field: 'childrenNum', label: '孩子数量', component: 'InputNumber', colProps: { span: 8 }, },
{
field: 'nationCode',
diff --git a/src/views/clue/cluePool/index.vue b/src/views/clue/cluePool/index.vue
index 9f5c277..75a40f5 100644
--- a/src/views/clue/cluePool/index.vue
+++ b/src/views/clue/cluePool/index.vue
@@ -35,7 +35,7 @@