43 lines
932 B
Vue
43 lines
932 B
Vue
<script lang="ts" setup>
|
|
import type { CrmCustomerApi } from '#/api/crm/customer';
|
|
|
|
import { Divider } from 'ant-design-vue';
|
|
|
|
import { useDescription } from '#/components/description';
|
|
import { useFollowUpDetailSchema } from '#/views/crm/followup/data';
|
|
|
|
import { useDetailBaseSchema } from './detail-data';
|
|
|
|
defineProps<{
|
|
customer: CrmCustomerApi.Customer; // 客户信息
|
|
}>();
|
|
|
|
const [BaseDescriptions] = useDescription({
|
|
componentProps: {
|
|
title: '基本信息',
|
|
bordered: false,
|
|
column: 4,
|
|
class: 'mx-4',
|
|
},
|
|
schema: useDetailBaseSchema(),
|
|
});
|
|
|
|
const [SystemDescriptions] = useDescription({
|
|
componentProps: {
|
|
title: '系统信息',
|
|
bordered: false,
|
|
column: 3,
|
|
class: 'mx-4',
|
|
},
|
|
schema: useFollowUpDetailSchema(),
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<div class="p-4">
|
|
<BaseDescriptions :data="customer" />
|
|
<Divider />
|
|
<SystemDescriptions :data="customer" />
|
|
</div>
|
|
</template>
|