Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a9faeb1b
authored
Nov 04, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code review:客户管理
parent
09c44cd4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
src/views/crm/customer/detail/CustomerBasicInfo.vue
+1
-3
src/views/crm/customer/detail/CustomerDetails.vue
+2
-1
src/views/crm/customer/detail/index.vue
+2
-2
No files found.
src/views/crm/customer/detail/CustomerBasicInfo.vue
View file @
a9faeb1b
<
template
>
<
template
>
<el-col>
客户
</el-col>
<el-col>
<el-col>
<el-row>
<el-row>
<span
class=
"text-xl font-bold"
>
{{
customer
.
name
}}
</span>
<span
class=
"text-xl font-bold"
>
{{
customer
.
name
}}
</span>
</el-row>
</el-row>
</el-col>
</el-col>
<el-col
class=
"mt-10px"
>
<el-col
class=
"mt-10px"
>
<Icon
icon=
"ant-design:tag-filled"
/>
<!-- TODO 标签 -->
<!-- TODO 标签 -->
<!--
<Icon
icon=
"ant-design:tag-filled"
/>
-->
</el-col>
</el-col>
</
template
>
</
template
>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
...
@@ -15,4 +14,3 @@ import * as CustomerApi from '@/api/crm/customer'
...
@@ -15,4 +14,3 @@ import * as CustomerApi from '@/api/crm/customer'
const
{
customer
}
=
defineProps
<
{
customer
:
CustomerApi
.
CustomerVO
}
>
()
const
{
customer
}
=
defineProps
<
{
customer
:
CustomerApi
.
CustomerVO
}
>
()
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
></
style
>
src/views/crm/customer/detail/CustomerDetails.vue
View file @
a9faeb1b
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<template
#
title
>
<template
#
title
>
<span
class=
"text-base font-bold"
>
基本信息
</span>
<span
class=
"text-base font-bold"
>
基本信息
</span>
</
template
>
</
template
>
<el-descriptions
:column=
"
2
"
>
<el-descriptions
:column=
"
4
"
>
<el-descriptions-item
label=
"客户名称"
>
<el-descriptions-item
label=
"客户名称"
>
{{ customer.name }}
{{ customer.name }}
</el-descriptions-item>
</el-descriptions-item>
...
@@ -71,6 +71,7 @@
...
@@ -71,6 +71,7 @@
<el-descriptions-item
label=
"更新时间"
>
<el-descriptions-item
label=
"更新时间"
>
{{ customer.updateTime ? formatDate(customer.updateTime) : '空' }}
{{ customer.updateTime ? formatDate(customer.updateTime) : '空' }}
</el-descriptions-item>
</el-descriptions-item>
<!-- TODO wanwan:要不把“最后跟进时间”放到“下次联系时间”后面 -->
<el-descriptions-item
label=
"最后跟进时间"
>
<el-descriptions-item
label=
"最后跟进时间"
>
{{ customer.contactLastTime ? formatDate(customer.contactLastTime) : '空' }}
{{ customer.contactLastTime ? formatDate(customer.contactLastTime) : '空' }}
</el-descriptions-item>
</el-descriptions-item>
...
...
src/views/crm/customer/detail/index.vue
View file @
a9faeb1b
...
@@ -63,9 +63,11 @@
...
@@ -63,9 +63,11 @@
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
</ContentWrap>
</ContentWrap>
<!-- TODO wanwan:这个 tab 拉满哈,可以更好看; -->
<el-col
:span=
"18"
>
<el-col
:span=
"18"
>
<el-tabs>
<el-tabs>
<el-tab-pane
label=
"详细资料"
>
<el-tab-pane
label=
"详细资料"
>
<!-- TODO wanwan:这个 ml-2 是不是可以优化下,不要整个左移,而是里面的内容有个几 px 的偏移,不顶在框里 -->
<CustomerDetails
class=
"ml-2"
:customer=
"customer"
/>
<CustomerDetails
class=
"ml-2"
:customer=
"customer"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"活动"
lazy
>
活动
</el-tab-pane>
<el-tab-pane
label=
"活动"
lazy
>
活动
</el-tab-pane>
...
@@ -150,5 +152,3 @@ onMounted(() => {
...
@@ -150,5 +152,3 @@ onMounted(() => {
getCustomerData
(
id
)
getCustomerData
(
id
)
})
})
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
></
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment