Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 28f0b8e3
authored
Mar 03, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
724ae533
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
40 deletions
linkwe-pc/src/views/customerManage/customer/infoTab.vue
linkwe-pc/src/views/index/index.vue
linkwe-pc/src/views/customerManage/customer/infoTab.vue
View file @
28f0b8e
<
script
>
<
script
>
import
{
getSummary
,
getFollowUpRecord
,
getCustomerInfoByUserId
,
getRecordList
,
getFieldFn
}
from
'@/api/customer'
import
{
getSummary
,
getFollowUpRecord
,
getCustomerInfoByUserId
,
getRecordList
,
getFieldFn
}
from
'@/api/customer'
import
{
dictTrackState
}
from
'@/utils/dictionary'
import
{
dictTrackState
}
from
'@/utils/dictionary'
import
record
from
'./record'
import
record
from
'./record'
import
RecordTable
from
'./record-table'
import
RecordTable
from
'./record-table'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
props
:
{
props
:
{
stageList
:
{
stageList
:
{
type
:
Array
,
type
:
Array
,
default
:
[]
default
:
[],
},
},
// 当前跟进人id
// 当前跟进人id
userId
:
{
userId
:
{
type
:
String
,
type
:
String
,
default
:
''
default
:
''
,
},
},
trackUsers
:
{
trackUsers
:
{
type
:
Array
,
type
:
Array
,
default
:
[]
default
:
[],
}
},
},
},
components
:
{
components
:
{
record
,
record
,
RecordTable
RecordTable
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
1
:
'客户动态'
,
1
:
'客户动态'
,
2
:
'员工动态'
,
2
:
'员工动态'
,
3
:
'互动动态'
,
3
:
'互动动态'
,
4
:
'商机阶段'
4
:
'商机阶段'
,
},
},
recod
:
[],
recod
:
[],
active
:
'0'
,
active
:
'0'
,
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
lastSyncTime
:
null
,
lastSyncTime
:
null
,
dictTrackState
,
dictTrackState
,
fieldList
:
[],
fieldList
:
[],
stage
:
[]
stage
:
[],
}
}
},
},
computed
:
{},
computed
:
{},
...
@@ -52,8 +52,8 @@
...
@@ -52,8 +52,8 @@
if
(
val
)
{
if
(
val
)
{
this
.
stage
=
val
this
.
stage
=
val
}
}
}
},
}
},
},
},
created
()
{
created
()
{
this
.
userId
?
this
.
getCustomerInfoByUserId
()
:
this
.
getSummary
()
this
.
userId
?
this
.
getCustomerInfoByUserId
()
:
this
.
getSummary
()
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
// this.fieldList = dd.data
// this.fieldList = dd.data
this
.
setData
(
dd
.
data
)
this
.
setData
(
dd
.
data
)
})
})
}
},
)
)
},
},
setData
(
data
)
{
setData
(
data
)
{
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
},
},
getEditValue
(
data
)
{
getEditValue
(
data
)
{
let
obj
=
{
let
obj
=
{
value
:
data
.
type
!==
3
?
''
:
data
.
typeSub
==
1
?
''
:
[]
value
:
data
.
type
!==
3
?
''
:
data
.
typeSub
==
1
?
''
:
[],
}
}
this
.
portrayalSum
.
weCustomerInfoExpands
&&
this
.
portrayalSum
.
weCustomerInfoExpands
&&
this
.
portrayalSum
.
weCustomerInfoExpands
.
forEach
((
dd
,
index
)
=>
{
this
.
portrayalSum
.
weCustomerInfoExpands
.
forEach
((
dd
,
index
)
=>
{
...
@@ -203,9 +203,9 @@
...
@@ -203,9 +203,9 @@
}
}
}
}
return
returnAge
//返回周岁年龄
return
returnAge
//返回周岁年龄
}
},
}
},
}
}
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -219,11 +219,10 @@
...
@@ -219,11 +219,10 @@
<div
<div
v-for=
"(item, index) of portrayalSum.companyTags"
v-for=
"(item, index) of portrayalSum.companyTags"
:key=
"index"
:key=
"index"
:class=
"['flex ait', index && 'mt20']"
:class=
"['flex ait', index && 'mt20']"
>
>
<!-- 汇总的场景显示名字 -->
<!-- 汇总的场景显示名字 -->
<template
v-if=
"!userId"
>
<template
v-if=
"!userId"
>
<div
class=
"name oe
.
g-bg-lg"
>
{{
item
.
userName
}}
</div>
<div
class=
"name oe g-bg-lg"
>
{{
item
.
userName
}}
</div>
</
template
>
</
template
>
<
template
v-if=
"item.tagNames"
>
<
template
v-if=
"item.tagNames"
>
<el-tag
v-for=
"(unit, unique) in item.tagNames.split(',')"
:key=
"unique"
>
{{
unit
}}
</el-tag>
<el-tag
v-for=
"(unit, unique) in item.tagNames.split(',')"
:key=
"unique"
>
{{
unit
}}
</el-tag>
...
@@ -240,7 +239,7 @@
...
@@ -240,7 +239,7 @@
<div
v-for=
"(item, index) of portrayalSum.personTags"
:key=
"index"
:class=
"['flex aic', index && 'mt20']"
>
<div
v-for=
"(item, index) of portrayalSum.personTags"
:key=
"index"
:class=
"['flex aic', index && 'mt20']"
>
<!-- 汇总的场景显示名字 -->
<!-- 汇总的场景显示名字 -->
<template
v-if=
"!userId"
>
<template
v-if=
"!userId"
>
<div
class=
"name oe
.
g-bg-lg"
>
{{
item
.
userName
}}
</div>
<div
class=
"name oe g-bg-lg"
>
{{
item
.
userName
}}
</div>
</
template
>
</
template
>
<
template
v-if=
"item.tagNames"
>
<
template
v-if=
"item.tagNames"
>
<el-tag
v-for=
"(unit, unique) in item.tagNames.split(',')"
:key=
"unique"
>
{{
unit
}}
</el-tag>
<el-tag
v-for=
"(unit, unique) in item.tagNames.split(',')"
:key=
"unique"
>
{{
unit
}}
</el-tag>
...
@@ -265,7 +264,7 @@
...
@@ -265,7 +264,7 @@
<el-card
class=
"mb10"
shadow=
"never"
>
<el-card
class=
"mb10"
shadow=
"never"
>
<div
slot=
"header"
class=
"card-title"
>
详细资料
</div>
<div
slot=
"header"
class=
"card-title"
>
详细资料
</div>
<el-row
:gutter=
"20"
type=
"type"
class=
"pad10"
justify=
"space-between"
>
<el-row
:gutter=
"20"
type=
"type"
class=
"pad10"
justify=
"space-between"
>
<div
style=
"max-height: 450px; overflow: hidden auto
;
"
>
<div
style=
"max-height: 450px; overflow: hidden auto"
>
<
template
v-for=
"(item, index) in fieldList"
>
<
template
v-for=
"(item, index) in fieldList"
>
<el-col
:span=
"12"
v-if=
"item.isDefault == 1"
:key=
"index"
>
<el-col
:span=
"12"
v-if=
"item.isDefault == 1"
:key=
"index"
>
<el-row
class=
"baseinfo-row"
v-if=
"item.labelVal == 'remarkMobiles'"
>
<el-row
class=
"baseinfo-row"
v-if=
"item.labelVal == 'remarkMobiles'"
>
...
@@ -347,15 +346,15 @@
...
@@ -347,15 +346,15 @@
<div
v-for=
"(item, index) of trackUsers"
:key=
"index"
:class=
"['flex aic', index && 'mt20']"
>
<div
v-for=
"(item, index) of trackUsers"
:key=
"index"
:class=
"['flex aic', index && 'mt20']"
>
<!-- 汇总的场景显示名字 -->
<!-- 汇总的场景显示名字 -->
<template
v-if=
"!userId"
>
<template
v-if=
"!userId"
>
<div
class=
"name oe
.
g-bg-lg"
>
{{
item
.
userName
}}
</div>
<div
class=
"name oe g-bg-lg"
>
{{
item
.
userName
}}
</div>
</
template
>
</
template
>
<
template
v-if=
"item.trackState === 1"
>
<
template
v-if=
"item.trackState === 1"
>
<el-steps
style=
"flex: auto
;
"
:active=
"1"
>
<el-steps
style=
"flex: auto"
:active=
"1"
>
<el-step
title=
"待跟进"
></el-step>
<el-step
title=
"待跟进"
></el-step>
</el-steps>
</el-steps>
</
template
>
</
template
>
<
template
v-else-if=
"item.trackState === 3 || item.trackState === 4 || item.trackState === 5"
>
<
template
v-else-if=
"item.trackState === 3 || item.trackState === 4 || item.trackState === 5"
>
<el-steps
style=
"flex: auto
;
"
:active=
"setActive(item.trackState)"
>
<el-steps
style=
"flex: auto"
:active=
"setActive(item.trackState)"
>
<el-step
title=
"待跟进"
></el-step>
<el-step
title=
"待跟进"
></el-step>
<template
v-for=
"(data, or) in stage"
>
<template
v-for=
"(data, or) in stage"
>
<el-step
:title=
"data.stageKey"
:key=
"or"
v-if=
"data.stageState == 2"
></el-step>
<el-step
:title=
"data.stageKey"
:key=
"or"
v-if=
"data.stageState == 2"
></el-step>
...
@@ -366,7 +365,7 @@
...
@@ -366,7 +365,7 @@
</el-steps>
</el-steps>
</template>
</template>
<
template
v-else-if=
"item.trackState"
>
<
template
v-else-if=
"item.trackState"
>
<el-steps
style=
"flex: auto
;
"
:active=
"setList(item.trackState)"
>
<el-steps
style=
"flex: auto"
:active=
"setList(item.trackState)"
>
<template
v-for=
"(data, or) in stage"
>
<template
v-for=
"(data, or) in stage"
>
<el-step
:title=
"data.stageKey"
:key=
"or"
v-if=
"setList(item.trackState)
<
= or + 1">
</el-step>
<el-step
:title=
"data.stageKey"
:key=
"or"
v-if=
"setList(item.trackState)
<
= or + 1">
</el-step>
</
template
>
</
template
>
...
@@ -390,8 +389,7 @@
...
@@ -390,8 +389,7 @@
<record-table
<record-table
:stageList=
"stage"
:stageList=
"stage"
v-if=
"openedTabs.includes(index + '')"
v-if=
"openedTabs.includes(index + '')"
:userId=
"item.trackUserId"
:userId=
"item.trackUserId"
></record-table>
></record-table>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
<div
v-else
class=
"g-tip-color ac"
>
暂无数据
</div>
<div
v-else
class=
"g-tip-color ac"
>
暂无数据
</div>
...
@@ -411,8 +409,7 @@
...
@@ -411,8 +409,7 @@
v-for=
"(value, type) of trajectoryType"
v-for=
"(value, type) of trajectoryType"
:key=
"type"
:key=
"type"
:class=
"['track-tab', type === active && 'active']"
:class=
"['track-tab', type === active && 'active']"
@
click=
"changeTrack(type)"
@
click=
"changeTrack(type)"
>
>
{{ value }}
{{ value }}
</div>
</div>
</div>
</div>
...
@@ -424,8 +421,7 @@
...
@@ -424,8 +421,7 @@
:userId=
"userId"
:userId=
"userId"
:userIdAll=
"trackUsers.map((e) => e.trackUserId).join()"
:userIdAll=
"trackUsers.map((e) => e.trackUserId).join()"
:lastSyncTime
.
sync=
"lastSyncTime"
:lastSyncTime
.
sync=
"lastSyncTime"
:trajectoryType=
"item == 0 ? null : item"
:trajectoryType=
"item == 0 ? null : item"
></record>
></record>
</
template
>
</
template
>
</el-card>
</el-card>
</el-col>
</el-col>
...
@@ -434,7 +430,7 @@
...
@@ -434,7 +430,7 @@
</template>
</template>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.name
{
.name
{
width
:
65px
;
width
:
65px
;
flex
:
none
;
flex
:
none
;
text-align
:
center
;
text-align
:
center
;
...
@@ -443,8 +439,8 @@
...
@@ -443,8 +439,8 @@
margin-right
:
10px
;
margin-right
:
10px
;
color
:
#fff
;
color
:
#fff
;
border-radius
:
var
(
--border-radius-small
);
border-radius
:
var
(
--border-radius-small
);
}
}
.el-card
{
.el-card
{
.el-tag
{
.el-tag
{
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
...
@@ -501,5 +497,5 @@
...
@@ -501,5 +497,5 @@
text-align
:
right
;
text-align
:
right
;
}
}
}
}
}
}
</
style
>
</
style
>
linkwe-pc/src/views/index/index.vue
View file @
28f0b8e
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<span>
{{
greetings
}}
,
</span>
<span>
{{
greetings
}}
,
</span>
<span>
{{
$store
.
state
.
user
.
name
}}
</span>
<span>
{{
$store
.
state
.
user
.
name
}}
</span>
</div>
</div>
<div
class=
"role toe
.
g-bg-lg"
>
{{
roleGroup
||
'管理员'
}}
</div>
<div
class=
"role toe g-bg-lg"
>
{{
roleGroup
||
'管理员'
}}
</div>
</div>
</div>
<div
class=
"g-card data-view"
>
<div
class=
"g-card data-view"
>
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
<template
v-if=
"this.dynamicsOutList.length"
>
<template
v-if=
"this.dynamicsOutList.length"
>
<div
class=
"dynamics-item"
v-for=
"(item, index) in dynamicsOutList"
:key=
"index"
>
<div
class=
"dynamics-item"
v-for=
"(item, index) in dynamicsOutList"
:key=
"index"
>
<div
class=
"info fcbw bfc-o"
>
<div
class=
"info fcbw bfc-o"
>
<div>
<div
class=
"toe"
>
<span
:class=
"[item.operatorType === 1 ? 'customer' : 'staff', 'type lh1']"
>
<span
:class=
"[item.operatorType === 1 ? 'customer' : 'staff', 'type lh1']"
>
{{
item
.
operatorType
===
1
?
'客户'
:
'员工'
}}
{{
item
.
operatorType
===
1
?
'客户'
:
'员工'
}}
</span>
</span>
...
@@ -551,6 +551,7 @@ export default {
...
@@ -551,6 +551,7 @@ export default {
background
:
none
;
background
:
none
;
font-size
:
12px
;
font-size
:
12px
;
border
:
1px
solid
;
border
:
1px
solid
;
flex
:
none
;
}
}
.operatorName
{
.operatorName
{
font-size
:
16px
;
font-size
:
16px
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment