feat: crm customer detail

This commit is contained in:
xingyu4j
2025-06-04 17:38:28 +08:00
parent dba14c5e45
commit c18d70b0bc
6 changed files with 197 additions and 122 deletions

View File

@@ -353,36 +353,3 @@ export function useDetailBaseSchema(): DescriptionItemSchema[] {
},
];
}
/** 详情系统信息的配置 */
export function useDetailSystemSchema(): DescriptionItemSchema[] {
return [
{
field: 'ownerUserName',
label: '负责人',
},
{
field: 'contactLastContent',
label: '最后跟进记录',
},
{
field: 'contactLastTime',
label: '最后跟进时间',
content: (data) => formatDateTime(data?.contactLastTime) as string,
},
{
field: 'creatorName',
label: '创建人',
},
{
field: 'createTime',
label: '创建时间',
content: (data) => formatDateTime(data?.createTime) as string,
},
{
field: 'updateTime',
label: '更新时间',
content: (data) => formatDateTime(data?.updateTime) as string,
},
];
}

View File

@@ -4,8 +4,9 @@ import type { CrmClueApi } from '#/api/crm/clue';
import { Divider } from 'ant-design-vue';
import { useDescription } from '#/components/description';
import { useFollowUpDetailSchema } from '#/views/crm/followup/data';
import { useDetailBaseSchema, useDetailSystemSchema } from '../data';
import { useDetailBaseSchema } from '../data';
defineOptions({ name: 'CrmClueDetailsInfo' });
@@ -30,7 +31,7 @@ const [SystemDescription] = useDescription({
column: 3,
class: 'mx-4',
},
schema: useDetailSystemSchema(),
schema: useFollowUpDetailSchema(),
});
</script>