| | |
| | | |
| | | import { DICT_TYPE } from '@vben/constants'; |
| | | import { getDictOptions } from '@vben/hooks'; |
| | | import { formatDateTime } from '@vben/utils'; |
| | | import { formatDate } from '@vben/utils'; |
| | | |
| | | import { getBusinessPageByCustomer } from '#/api/crm/business'; |
| | | import { getContactPageByCustomer } from '#/api/crm/contact'; |
| | |
| | | component: 'DatePicker', |
| | | componentProps: { |
| | | showTime: true, |
| | | format: 'YYYY-MM-DD HH:mm:ss', |
| | | format: 'YYYY-MM-DD', |
| | | valueFormat: 'YYYY-MM-DD HH:mm:ss', |
| | | placeholder: '请选择下次联系时间', |
| | | }, |
| | |
| | | { |
| | | field: 'createTime', |
| | | title: '创建时间', |
| | | formatter: 'formatDateTime', |
| | | formatter: 'formatDate', |
| | | }, |
| | | { field: 'creatorName', title: '跟进人' }, |
| | | { |
| | |
| | | { |
| | | field: 'nextTime', |
| | | title: '下次联系时间', |
| | | formatter: 'formatDateTime', |
| | | formatter: 'formatDate', |
| | | }, |
| | | { |
| | | field: 'contacts', |
| | |
| | | { |
| | | field: 'contactLastTime', |
| | | label: '最后跟进时间', |
| | | render: (val) => formatDateTime(val) as string, |
| | | render: (val) => formatDate(val) as string, |
| | | }, |
| | | { |
| | | field: 'creatorName', |
| | |
| | | { |
| | | field: 'createTime', |
| | | label: '创建时间', |
| | | render: (val) => formatDateTime(val) as string, |
| | | render: (val) => formatDate(val) as string, |
| | | }, |
| | | { |
| | | field: 'updateTime', |
| | | label: '更新时间', |
| | | render: (val) => formatDateTime(val) as string, |
| | | render: (val) => formatDate(val) as string, |
| | | }, |
| | | ]; |
| | | } |