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
06e2019a
authored
Feb 17, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📖
CRM:code review 待办项目的实现
parent
2f37232f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
24 deletions
+11
-24
src/router/modules/remaining.ts
+0
-11
src/views/crm/backlog/index.vue
+2
-5
src/views/crm/backlog/tables/CheckContract.vue
+1
-2
src/views/crm/backlog/tables/TodayCustomer.vue
+5
-3
src/views/crm/customer/index.vue
+3
-3
No files found.
src/router/modules/remaining.ts
View file @
06e2019a
...
@@ -539,17 +539,6 @@ const remainingRouter: AppRouteRecordRaw[] = [
...
@@ -539,17 +539,6 @@ const remainingRouter: AppRouteRecordRaw[] = [
activeMenu
:
'/crm/product'
activeMenu
:
'/crm/product'
},
},
component
:
()
=>
import
(
'@/views/crm/product/detail/index.vue'
)
component
:
()
=>
import
(
'@/views/crm/product/detail/index.vue'
)
},
{
path
:
'backlog'
,
name
:
'CrmBacklog'
,
meta
:
{
title
:
'待办事项'
,
noCache
:
true
,
hidden
:
true
},
// TODO @db52:后面搞,搞成菜单
component
:
()
=>
import
(
'@/views/crm/backlog/index.vue'
)
}
}
]
]
}
}
...
...
src/views/crm/backlog/index.vue
View file @
06e2019a
<!-- TODO @dhb52: 存在很多重复的 table 定义,如Customer: TodayCustomer,FollowCustomer,PutInPoolRemind -->
<
template
>
<
template
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"4"
class=
"min-w-[200px]"
>
<el-col
:span=
"4"
class=
"min-w-[200px]"
>
...
@@ -90,10 +89,8 @@ const leftSides = ref([
...
@@ -90,10 +89,8 @@ const leftSides = ref([
}
}
])
])
/**
/** 侧边点击 */
* 侧边点击
const
sideClick
=
(
item
:
any
)
=>
{
*/
const
sideClick
=
(
item
)
=>
{
leftType
.
value
=
item
.
infoType
leftType
.
value
=
item
.
infoType
}
}
// TODO @dhb52: 侧边栏样式,在黑暗模式下,颜色会不对。是不是可以读取主题色哈;
// TODO @dhb52: 侧边栏样式,在黑暗模式下,颜色会不对。是不是可以读取主题色哈;
...
...
src/views/crm/backlog/tables/CheckContract.vue
View file @
06e2019a
...
@@ -126,8 +126,6 @@ import { fenToYuanFormat } from '@/utils/formatter'
...
@@ -126,8 +126,6 @@ import { fenToYuanFormat } from '@/utils/formatter'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
AUDIT_STATUS
}
from
'./common'
import
{
AUDIT_STATUS
}
from
'./common'
const
{
push
}
=
useRouter
()
// 路由
const
loading
=
ref
(
true
)
// 列表的加载中
const
loading
=
ref
(
true
)
// 列表的加载中
const
total
=
ref
(
0
)
// 列表的总页数
const
total
=
ref
(
0
)
// 列表的总页数
const
list
=
ref
([])
// 列表的数据
const
list
=
ref
([])
// 列表的数据
...
@@ -157,6 +155,7 @@ const handleQuery = () => {
...
@@ -157,6 +155,7 @@ const handleQuery = () => {
}
}
/** 打开客户详情 */
/** 打开客户详情 */
const
{
push
}
=
useRouter
()
// 路由
const
openCustomerDetail
=
(
id
:
number
)
=>
{
const
openCustomerDetail
=
(
id
:
number
)
=>
{
push
({
name
:
'CrmCustomerDetail'
,
params
:
{
id
}
})
push
({
name
:
'CrmCustomerDetail'
,
params
:
{
id
}
})
}
}
...
...
src/views/crm/backlog/tables/TodayCustomer.vue
View file @
06e2019a
...
@@ -43,8 +43,8 @@
...
@@ -43,8 +43,8 @@
</ContentWrap>
</ContentWrap>
<ContentWrap>
<ContentWrap>
<el-table
v-loading=
"loading"
:data=
"list"
:show-overflow-tooltip=
"true"
:stripe=
"true"
>
<el-table
v-loading=
"loading"
:data=
"list"
:show-overflow-tooltip=
"true"
:stripe=
"true"
>
<el-table-column
align=
"center"
label=
"编号"
prop=
"id"
/>
<el-table-column
align=
"center"
label=
"编号"
fixed=
"left"
prop=
"id"
/>
<el-table-column
align=
"center"
label=
"客户名称"
prop=
"name"
width=
"160"
>
<el-table-column
align=
"center"
label=
"客户名称"
fixed=
"left"
prop=
"name"
width=
"160"
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
<el-link
:underline=
"false"
type=
"primary"
@
click=
"openDetail(scope.row.id)"
>
<el-link
:underline=
"false"
type=
"primary"
@
click=
"openDetail(scope.row.id)"
>
{{
scope
.
row
.
name
}}
{{
scope
.
row
.
name
}}
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
<dict-tag
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
:value=
"scope.row.dealStatus"
/>
<dict-tag
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
:value=
"scope.row.dealStatus"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"距进入公海天数"
prop=
"poolDay"
width=
"1
00px
"
/>
<el-table-column
align=
"center"
label=
"距进入公海天数"
prop=
"poolDay"
width=
"1
30
"
/>
<el-table-column
<el-table-column
:formatter=
"dateFormatter"
:formatter=
"dateFormatter"
align=
"center"
align=
"center"
...
@@ -124,6 +124,8 @@ import { DICT_TYPE } from '@/utils/dict'
...
@@ -124,6 +124,8 @@ import { DICT_TYPE } from '@/utils/dict'
import
{
dateFormatter
}
from
'@/utils/formatTime'
import
{
dateFormatter
}
from
'@/utils/formatTime'
import
{
CONTACT_STATUS
,
SCENE_TYPES
}
from
'./common'
import
{
CONTACT_STATUS
,
SCENE_TYPES
}
from
'./common'
// defineOptions({ name: 'TodayCustomer' }) TODO @dhb52:1)定义改成这种;2)命名要不要改成 CustomerTodayTable,就是 模块+形容词+表格(更容易识别),然后把 tables 目录改成 components 目录
const
{
push
}
=
useRouter
()
const
{
push
}
=
useRouter
()
const
loading
=
ref
(
true
)
// 列表的加载中
const
loading
=
ref
(
true
)
// 列表的加载中
...
...
src/views/crm/customer/index.vue
View file @
06e2019a
...
@@ -110,8 +110,8 @@
...
@@ -110,8 +110,8 @@
<el-tab-pane
label=
"下属负责的"
name=
"3"
/>
<el-tab-pane
label=
"下属负责的"
name=
"3"
/>
</el-tabs>
</el-tabs>
<el-table
v-loading=
"loading"
:data=
"list"
:show-overflow-tooltip=
"true"
:stripe=
"true"
>
<el-table
v-loading=
"loading"
:data=
"list"
:show-overflow-tooltip=
"true"
:stripe=
"true"
>
<el-table-column
align=
"center"
label=
"编号"
prop=
"id"
/>
<el-table-column
align=
"center"
label=
"编号"
fixed=
"left"
prop=
"id"
/>
<el-table-column
align=
"center"
label=
"客户名称"
prop=
"name"
width=
"160"
>
<el-table-column
align=
"center"
label=
"客户名称"
fixed=
"left"
prop=
"name"
width=
"160"
>
<template
#
default=
"scope"
>
<template
#
default=
"scope"
>
<el-link
:underline=
"false"
type=
"primary"
@
click=
"openDetail(scope.row.id)"
>
<el-link
:underline=
"false"
type=
"primary"
@
click=
"openDetail(scope.row.id)"
>
{{
scope
.
row
.
name
}}
{{
scope
.
row
.
name
}}
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
<dict-tag
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
:value=
"scope.row.dealStatus"
/>
<dict-tag
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
:value=
"scope.row.dealStatus"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
label=
"距离进入公海"
prop=
"poolDay"
>
<el-table-column
align=
"center"
label=
"距离进入公海"
prop=
"poolDay"
width=
"120"
>
<
template
#
default=
"scope"
>
{{
scope
.
row
.
poolDay
}}
天
</
template
>
<
template
#
default=
"scope"
>
{{
scope
.
row
.
poolDay
}}
天
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
...
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