Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
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 784ba9f3
authored
Apr 25, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_2.1.0' into 'v2.1.0'
Xuyl dev 2.1.0 See merge request
!55
2 parents
533c6dc2
a0efbcf2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
18 deletions
package.json
src/views/clientManage/clientDetail.vue
src/views/clientManage/index.vue
package.json
View file @
784ba9f
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
"echarts"
:
"^5.2.0"
,
"echarts"
:
"^5.2.0"
,
"element-ui"
:
"^2.4.5"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.4.
1
"
,
"glsx-components"
:
"^1.4.
2
"
,
"glsx-table"
:
"^1.1.0"
,
"glsx-table"
:
"^1.1.0"
,
"jquery"
:
"^3.6.0"
,
"jquery"
:
"^3.6.0"
,
"sha1"
:
"^1.1.1"
,
"sha1"
:
"^1.1.1"
,
...
...
src/views/clientManage/clientDetail.vue
View file @
784ba9f
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
<div
class=
"leftWrapTop"
>
<div
class=
"leftWrapTop"
>
<div
class=
"baseInfo"
>
<div
class=
"baseInfo"
>
<span>
基本信息
</span>
<span>
基本信息
</span>
<i
class=
"el-icon-arrow-
down
iconStyle"
@
click=
"switchBaseInfo()"
v-if=
"isShowBaseInfo"
></i>
<i
class=
"el-icon-arrow-
up
iconStyle"
@
click=
"switchBaseInfo()"
v-if=
"isShowBaseInfo"
></i>
<i
class=
"el-icon-arrow-
up
iconStyle"
@
click=
"switchBaseInfo()"
v-else
></i>
<i
class=
"el-icon-arrow-
down
iconStyle"
@
click=
"switchBaseInfo()"
v-else
></i>
</div>
</div>
<div
class=
"leftWrapBottom"
v-if=
"isShowBaseInfo"
>
<div
class=
"leftWrapBottom"
v-if=
"isShowBaseInfo"
>
<p>
<p>
...
@@ -335,7 +335,7 @@ export default {
...
@@ -335,7 +335,7 @@ export default {
},
},
{
{
label
:
'购车时间:'
,
label
:
'购车时间:'
,
prop
:
'buy
Dat
e'
prop
:
'buy
Tim
e'
},
},
{
{
label
:
'最近保养时间:'
,
label
:
'最近保养时间:'
,
...
...
src/views/clientManage/index.vue
View file @
784ba9f
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
<span>
{{
scope
.
scope
.
customerSex
==
0
?
'未知'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
scope
.
scope
.
customerSex
==
2
?
'女'
:
''
}}
</span>
<span>
{{
scope
.
scope
.
customerSex
==
0
?
'未知'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
scope
.
scope
.
customerSex
==
2
?
'女'
:
''
}}
</span>
</span>
</span>
<div
slot=
"followStaff"
class=
"entmicro"
slot-scope=
"scope"
>
<div
slot=
"followStaff"
class=
"entmicro"
slot-scope=
"scope"
>
<div
v-if=
"!followList(scope.scope.followStaff).length"
>
--
</div>
<div
class=
"entmicro-tag"
style=
"padding-right:3px"
v-for=
"(tag, idx) in followList(scope.scope.followStaff)"
:key=
"idx"
>
<div
class=
"entmicro-tag"
style=
"padding-right:3px"
v-for=
"(tag, idx) in followList(scope.scope.followStaff)"
:key=
"idx"
>
<el-tooltip
effect=
"dark"
:content=
"tag"
placement=
"top"
>
<el-tooltip
effect=
"dark"
:content=
"tag"
placement=
"top"
>
<el-tag
type=
"info"
class=
"ellipsis-1"
v-if=
"idx
< 2
"
:disable-transitions=
"false"
>
<el-tag
type=
"info"
class=
"ellipsis-1"
v-if=
"idx
< 2
"
:disable-transitions=
"false"
>
...
@@ -43,6 +44,7 @@
...
@@ -43,6 +44,7 @@
</div>
</div>
<!-- 企微名称 -->
<!-- 企微名称 -->
<div
slot=
"nickNameList"
slot-scope=
"scope"
class=
"expandImg"
>
<div
slot=
"nickNameList"
slot-scope=
"scope"
class=
"expandImg"
>
<div
v-if=
"!scope.scope.nickNameList.length"
>
--
</div>
<div
v-for=
"(list, idx) in scope.scope.nickNameList"
:key=
"idx"
>
<div
v-for=
"(list, idx) in scope.scope.nickNameList"
:key=
"idx"
>
<div
v-if=
"idx == 0"
>
<div
v-if=
"idx == 0"
>
<span>
{{
list
.
nickName
}}
</span>
<span>
{{
list
.
nickName
}}
</span>
...
@@ -60,9 +62,8 @@
...
@@ -60,9 +62,8 @@
</div>
</div>
</div>
</div>
<span
slot=
"customerPhone"
slot-scope=
"scope"
>
<span
slot=
"customerPhone"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerPhone
==
'null'
?
'
'
:
scope
.
scope
.
customerPhone
}}
</span>
<span>
{{
scope
.
scope
.
customerPhone
==
null
?
'--
'
:
scope
.
scope
.
customerPhone
}}
</span>
</span>
</span>
<span
slot=
"addWay"
slot-scope=
"scope"
>
<span
slot=
"addWay"
slot-scope=
"scope"
>
<el-tooltip
effect=
"dark"
:content=
"toLabel(scope.scope.addWay)"
placement=
"top"
>
<el-tooltip
effect=
"dark"
:content=
"toLabel(scope.scope.addWay)"
placement=
"top"
>
<span
style=
"display: inline-block; max-width: 120px; text-align: left"
>
{{
toLabel
(
scope
.
scope
.
addWay
)
}}
</span>
<span
style=
"display: inline-block; max-width: 120px; text-align: left"
>
{{
toLabel
(
scope
.
scope
.
addWay
)
}}
</span>
...
@@ -103,7 +104,14 @@ export default {
...
@@ -103,7 +104,14 @@ export default {
url
:
url
,
url
:
url
,
sloading
:
false
,
sloading
:
false
,
CLIENTSTATUS
:
this
.
$Constants
.
CLIENT_STATUS
,
CLIENTSTATUS
:
this
.
$Constants
.
CLIENT_STATUS
,
searchForm
:
{},
searchForm
:
{
followStaff
:
''
,
addWay
:
''
},
searchFormQuery
:
{
followStaff
:
''
,
addWay
:
''
},
searchFormTable
:
{},
searchFormTable
:
{},
clientManageFormList
:
[
clientManageFormList
:
[
{
{
...
@@ -299,8 +307,10 @@ export default {
...
@@ -299,8 +307,10 @@ export default {
},
},
followList2
:
[],
followList2
:
[],
getListApi
:
getTableList
,
getListApi
:
getTableList
,
sourceList
:
[],
merchantModel
:
1
,
merchantModel
:
1
,
sourceList
:
[],
followstaffList
:
[],
queryFlag
:
0
,
accountLevel
:
0
,
//1,2,3,4工厂,省代,市代,门店
accountLevel
:
0
,
//1,2,3,4工厂,省代,市代,门店
flushTime
:
false
flushTime
:
false
}
}
...
@@ -314,7 +324,7 @@ export default {
...
@@ -314,7 +324,7 @@ export default {
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
}
}
//
this.getDictionaryFun()
this
.
getDictionaryFun
()
this
.
getStaffList
()
this
.
getStaffList
()
},
},
// filters:{
// filters:{
...
@@ -375,7 +385,18 @@ export default {
...
@@ -375,7 +385,18 @@ export default {
// }
// }
// resolve()
// resolve()
// })
// })
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
if
(
Object
.
keys
(
this
.
$route
.
query
).
length
&&
this
.
queryFlag
==
0
)
{
console
.
log
(
'进来了'
)
const
res
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'sourceList'
))
this
.
searchForm
.
followStaff
=
this
.
$route
.
query
.
staffName
||
''
let
add_way
=
this
.
$route
.
query
.
addWay
||
''
let
addWayObj
=
res
.
find
(
i
=>
i
.
label
===
add_way
)
let
addWayVal
=
addWayObj
.
value
this
.
searchForm
.
addWay
=
addWayVal
this
.
queryFlag
=
1
}
this
.
searchFormTable
=
this
.
getParams
()
this
.
searchFormTable
=
this
.
getParams
()
resolve
()
resolve
()
})
})
...
@@ -391,7 +412,7 @@ export default {
...
@@ -391,7 +412,7 @@ export default {
})
})
let
data
=
res
.
map
(
item
=>
{
let
data
=
res
.
map
(
item
=>
{
return
{
return
{
...
item
,
//
...item,
label
:
item
.
dictLabel
,
label
:
item
.
dictLabel
,
value
:
item
.
dictValue
value
:
item
.
dictValue
}
}
...
@@ -422,7 +443,7 @@ export default {
...
@@ -422,7 +443,7 @@ export default {
}
}
})
})
staff
.
unshift
({
label
:
'全部'
,
value
:
''
})
staff
.
unshift
({
label
:
'全部'
,
value
:
''
})
this
.
followstaffList
=
staff
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
clientManageFormList
[
id
].
optionList
=
staff
this
.
clientManageFormList
[
id
].
optionList
=
staff
})
})
...
@@ -448,8 +469,6 @@ export default {
...
@@ -448,8 +469,6 @@ export default {
},
},
//搜索表格
//搜索表格
searchTable
()
{
searchTable
()
{
console
.
log
(
'进来了1111111111111111111111111'
)
console
.
log
(
this
.
searchForm
)
this
.
$refs
.
clientManage
.
refreshTable
()
this
.
$refs
.
clientManage
.
refreshTable
()
},
},
syncClick
()
{
syncClick
()
{
...
@@ -470,10 +489,6 @@ export default {
...
@@ -470,10 +489,6 @@ export default {
},
},
//重置表格
//重置表格
resetTable
()
{
resetTable
()
{
// this.isReload = false
// this.$nextTick(() => {
// this.isReload = true
// })
this
.
searchForm
=
{}
this
.
searchForm
=
{}
this
.
$refs
.
clientManage
.
refreshTable
()
this
.
$refs
.
clientManage
.
refreshTable
()
// 点击之后强制页面刷新
// 点击之后强制页面刷新
...
@@ -494,6 +509,12 @@ export default {
...
@@ -494,6 +509,12 @@ export default {
mounted
()
{
mounted
()
{
let
clientHeight
=
document
.
documentElement
.
clientHeight
let
clientHeight
=
document
.
documentElement
.
clientHeight
this
.
heightBox
=
clientHeight
-
130
this
.
heightBox
=
clientHeight
-
130
// 页面首次加载添加缓存
// if (sessionStorage.getItem('isReload')) {
// this.$$route.query = ''
// } else {
// sessionStorage.setItem('isReload', true)
// }
}
}
}
}
</
script
>
</
script
>
...
...
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