import { BasicColumn, FormSchema } from '/@/components/Table' import { genderList, channelList, clueStatusList, followStatusList, validStatusList } from '/@/enums/customerEnum' import { getEducationList, getMaritalStatusList } from '/@/api/essentialData' export const tableColumns: BasicColumn[] = [ { title: '用户信息', dataIndex: 'userinfo', slots: { customRender: 'userinfo' } }, // { 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 // }, // }, { title: '分配信息', dataIndex: 'allocateInfo', slots: { customRender: 'allocateInfo' } }, { title: '跟进进度', dataIndex: 'datingStoreAppointmentStatus', slots: { customRender: 'datingStoreAppointmentStatus' } }, // { 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: 100, title: '跟进状态', dataIndex: 'followStatus', // customRender: ({ text }) => { // 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' }, ] export const tableFormSchema: FormSchema[] = [ { field: 'genderCode', label: '用户性别', colProps: { span: 6 }, component: 'Select', componentProps: { options: genderList, }, }, { field: 'channelType', label: '渠道来源', colProps: { span: 6 }, component: 'Select', componentProps: { options: channelList, }, }, // { // field: 'status', // label: '状态', // component: 'Input', // colProps: { span: 6 }, // }, { field: 'nickName', label: '用户昵称', component: 'Input', colProps: { span: 6 }, }, { field: 'phone', label: '电话号码', component: 'Input', colProps: { span: 6 }, }, { field: 'maritalStatusCode', label: '婚姻状况', colProps: { span: 6 }, component: 'ApiSelect', componentProps: { labelField: 'desc', api: getMaritalStatusList, }, }, { field: 'age', label: '年龄', slot: 'age', component: 'InputNumber', colProps: { span: 6 }, }, { field: 'educationCode', label: '学历', colProps: { span: 6 }, component: 'ApiSelect', componentProps: { labelField: 'desc', api: getEducationList, }, }, { field: 'createTime', label: '创建时间', component: 'RangePicker', colProps: { span: 6 }, }, { field: 'creatorName', label: '创建人名称', component: 'Input', colProps: { span: 6}, }, { field: 'followTime', label: '最后跟进时间', component: 'RangePicker', colProps: { span: 6 }, }, { field: 'verifierName', label: '核验人名称', component: 'Input', colProps: { span: 6}, }, ]