|
|
|
@ -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', |
|
|
|
|