code review:客户管理

This commit is contained in:
YunaiV 2023-11-04 10:12:40 +08:00
parent 09c44cd4fe
commit a9faeb1bdb
3 changed files with 5 additions and 6 deletions

View File

@ -1,13 +1,12 @@
<template>
<el-col> 客户 </el-col>
<el-col>
<el-row>
<span class="text-xl font-bold">{{ customer.name }}</span>
</el-row>
</el-col>
<el-col class="mt-10px">
<Icon icon="ant-design:tag-filled" />
<!-- TODO 标签 -->
<!-- <Icon icon="ant-design:tag-filled" />-->
</el-col>
</template>
<script setup lang="ts">
@ -15,4 +14,3 @@ import * as CustomerApi from '@/api/crm/customer'
const { customer } = defineProps<{ customer: CustomerApi.CustomerVO }>()
</script>
<style scoped lang="scss"></style>

View File

@ -4,7 +4,7 @@
<template #title>
<span class="text-base font-bold">基本信息</span>
</template>
<el-descriptions :column="2">
<el-descriptions :column="4">
<el-descriptions-item label="客户名称">
{{ customer.name }}
</el-descriptions-item>
@ -71,6 +71,7 @@
<el-descriptions-item label="更新时间">
{{ customer.updateTime ? formatDate(customer.updateTime) : '空' }}
</el-descriptions-item>
<!-- TODO wanwan要不把最后跟进时间放到下次联系时间后面 -->
<el-descriptions-item label="最后跟进时间">
{{ customer.contactLastTime ? formatDate(customer.contactLastTime) : '空' }}
</el-descriptions-item>

View File

@ -63,9 +63,11 @@
</el-descriptions-item>
</el-descriptions>
</ContentWrap>
<!-- TODO wanwan这个 tab 拉满哈可以更好看 -->
<el-col :span="18">
<el-tabs>
<el-tab-pane label="详细资料">
<!-- TODO wanwan这个 ml-2 是不是可以优化下不要整个左移而是里面的内容有个几 px 的偏移不顶在框里 -->
<CustomerDetails class="ml-2" :customer="customer" />
</el-tab-pane>
<el-tab-pane label="活动" lazy> 活动</el-tab-pane>
@ -150,5 +152,3 @@ onMounted(() => {
getCustomerData(id)
})
</script>
<style scoped lang="scss"></style>