Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
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 07a71de2
authored
Nov 04, 2021
by
ym
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug
1 parent
5ebffb4e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
246 additions
and
130 deletions
package.json
postcss.config.js
public/index.html
src/assets/css/common.scss
src/assets/img/home/cl.png
src/assets/img/home/yx.png
src/components/glsx-table/index.vue
src/plugins/element.js
src/setup/qiankun.js
src/setup/render.js
src/setup/single.js
src/utils/util.js
src/views/ehome/components/summary-ranking.vue
src/views/ehome/components/summary-statistics.vue
src/views/enterpriseWechat/index.vue
src/views/followUp/components/addSale.vue
src/views/followUp/components/selectEmp.vue
src/views/followUp/index.vue
src/views/home/components/customer-echart.vue
src/views/home/components/enterprise-information.vue
src/views/home/components/overview-enterprise.vue
src/views/home/index.vue
package.json
View file @
07a71de
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
"core-js"
:
"^3.4.4"
,
"core-js"
:
"^3.4.4"
,
"el-tree-transfer"
:
"^2.2.6"
,
"el-tree-transfer"
:
"^2.2.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.0.8
"
,
"glsx-components"
:
"^1.1.1
"
,
"glsx-table"
:
"^1.0.9"
"glsx-table"
:
"^1.0.9"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
"@vue/cli-plugin-vuex"
:
"^4.1.0"
,
"@vue/cli-plugin-vuex"
:
"^4.1.0"
,
"@vue/cli-service"
:
"^4.1.0"
,
"@vue/cli-service"
:
"^4.1.0"
,
"@vue/eslint-config-prettier"
:
"^5.0.0"
,
"@vue/eslint-config-prettier"
:
"^5.0.0"
,
"autoprefixer"
:
"^8.0.0"
,
"babel-eslint"
:
"^10.0.3"
,
"babel-eslint"
:
"^10.0.3"
,
"babel-plugin-component"
:
"^1.1.1"
,
"babel-plugin-component"
:
"^1.1.1"
,
"element-theme-chalk"
:
"^2.15.6"
,
"element-theme-chalk"
:
"^2.15.6"
,
...
@@ -29,6 +30,7 @@
...
@@ -29,6 +30,7 @@
"eslint-plugin-prettier"
:
"^3.1.1"
,
"eslint-plugin-prettier"
:
"^3.1.1"
,
"eslint-plugin-vue"
:
"^5.0.0"
,
"eslint-plugin-vue"
:
"^5.0.0"
,
"node-sass"
:
"^4.14.1"
,
"node-sass"
:
"^4.14.1"
,
"postcss-loader"
:
"^6.2.0"
,
"prettier"
:
"^1.19.1"
,
"prettier"
:
"^1.19.1"
,
"sass-loader"
:
"^8.0.0"
,
"sass-loader"
:
"^8.0.0"
,
"vue-cli-plugin-element"
:
"^1.0.1"
,
"vue-cli-plugin-element"
:
"^1.0.1"
,
...
@@ -36,6 +38,9 @@
...
@@ -36,6 +38,9 @@
},
},
"browserslist"
:
[
"browserslist"
:
[
"> 1%"
,
"> 1%"
,
"last 2 versions"
"last 3 versions"
,
"not ie <= 8"
,
"chrome >= 14"
,
"safari >= 3"
]
]
}
}
\ No newline at end of file
\ No newline at end of file
postcss.config.js
0 → 100644
View file @
07a71de
module
.
exports
=
{
plugins
:
{
autoprefixer
:
{}
}
}
\ No newline at end of file
\ No newline at end of file
public/index.html
View file @
07a71de
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<
% for (var i in htmlWebpackPlugin.options.cdn
&&
htmlWebpackPlugin.options.cdn.js) { %>
<
% for (var i in htmlWebpackPlugin.options.cdn
&&
htmlWebpackPlugin.options.cdn.js) { %>
<link
href=
"<%= htmlWebpackPlugin.options.cdn.js[i] %>"
rel=
"preload"
as=
"script"
/>
<link
href=
"<%= htmlWebpackPlugin.options.cdn.js[i] %>"
rel=
"preload"
as=
"script"
/>
<
% } %>
<
% } %>
<title>
微前端子应用:博客
</title>
<title>
首页
</title>
</head>
</head>
<body>
<body>
...
...
src/assets/css/common.scss
View file @
07a71de
...
@@ -107,7 +107,7 @@ img {
...
@@ -107,7 +107,7 @@ img {
::-webkit-scrollbar
{
::-webkit-scrollbar
{
/*滚动条整体样式*/
/*滚动条整体样式*/
width
:
6px
;
width
:
6px
;
height
:
1
px
;
height
:
4
px
;
}
}
::-webkit-scrollbar-thumb
{
::-webkit-scrollbar-thumb
{
...
@@ -115,3 +115,7 @@ img {
...
@@ -115,3 +115,7 @@ img {
border-radius
:
4px
;
border-radius
:
4px
;
background-color
:
rgba
(
144
,
147
,
153
,
.3
);
background-color
:
rgba
(
144
,
147
,
153
,
.3
);
}
}
.glsx-table
.line-ellipsis
{
display
:
inline
;
}
\ No newline at end of file
\ No newline at end of file
src/assets/img/home/cl.png
View file @
07a71de
50.6 KB
|
W:
|
H:
42.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/img/home/yx.png
View file @
07a71de
47.8 KB
|
W:
|
H:
60 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/components/glsx-table/index.vue
View file @
07a71de
...
@@ -239,7 +239,8 @@ export default {
...
@@ -239,7 +239,8 @@ export default {
// 多选
// 多选
handleSelect
(
val
)
{
handleSelect
(
val
)
{
this
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
=
val
this
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
=
val
;
this
.
$emit
(
'selectionTable'
,
val
)
},
},
// 清空多选
// 清空多选
...
@@ -252,12 +253,8 @@ export default {
...
@@ -252,12 +253,8 @@ export default {
//navHeight 传值底部高度
//navHeight 传值底部高度
var
baseNavEle
=
document
.
querySelector
(
'.scrm-base-nav'
)
var
baseNavEle
=
document
.
querySelector
(
'.scrm-base-nav'
)
var
baseSubNavEle
=
document
.
querySelector
(
'.scrm-base-sub-nav'
)
var
baseSubNavEle
=
document
.
querySelector
(
'.scrm-base-sub-nav'
)
var
baseNavEleHeight
=
0
var
baseNavEleHeight
=
baseNavEle
?
baseNavEle
.
clientHeight
:
0
;
var
baseSubNavEleHeight
=
0
var
baseSubNavEleHeight
=
baseSubNavEle
?
baseSubNavEle
.
clientHeight
:
0
if
(
baseNavEle
&&
baseNavEle
)
{
baseNavEleHeight
=
baseNavEle
.
clientHeight
//60
baseSubNavEleHeight
=
baseSubNavEle
.
clientHeight
//14
}
let
paginationHeight
let
paginationHeight
if
(
document
.
querySelector
(
'.el-pagination'
))
{
if
(
document
.
querySelector
(
'.el-pagination'
))
{
paginationHeight
=
document
.
querySelector
(
'.el-pagination'
).
clientHeight
+
20
paginationHeight
=
document
.
querySelector
(
'.el-pagination'
).
clientHeight
+
20
...
@@ -347,8 +344,6 @@ export default {
...
@@ -347,8 +344,6 @@ export default {
margin
:
10px
0
;
margin
:
10px
0
;
}
}
.glsx-table
.line-ellipsis
{
.glsx-table
.line-ellipsis
{
display
:
-webkit-box
;
width
:
100%
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
/* -webkit-line-clamp: 2; */
/* -webkit-line-clamp: 2; */
...
...
src/plugins/element.js
View file @
07a71de
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
Message
,
Autocomplete
,
Popover
,
Tag
,
Tooltip
,
Table
,
TableColumn
,
Steps
,
Step
,
Loading
,
Drawer
,
Pagination
,
Button
,
ButtonGroup
,
Form
,
FormItem
,
Input
,
Radio
,
RadioGroup
,
Checkbox
,
CheckboxGroup
,
Switch
,
Select
,
Option
,
TimePicker
,
Row
,
Col
,
DatePicker
,
Tree
}
from
'element-ui'
import
{
Message
,
Autocomplete
,
Popover
,
Tag
,
Tooltip
,
Table
,
TableColumn
,
Steps
,
Step
,
Loading
,
Drawer
,
Pagination
,
Button
,
ButtonGroup
,
Form
,
FormItem
,
Input
,
Radio
,
RadioGroup
,
Checkbox
,
CheckboxGroup
,
Switch
,
Select
,
Option
,
TimePicker
,
Row
,
Col
,
DatePicker
,
Tree
}
from
'element-ui'
Vue
.
use
(
Button
)
Vue
.
use
(
Button
)
Vue
.
use
(
ButtonGroup
)
Vue
.
use
(
ButtonGroup
)
Vue
.
use
(
Form
)
Vue
.
use
(
Form
)
Vue
.
use
(
FormItem
)
Vue
.
use
(
FormItem
)
Vue
.
use
(
Input
)
Vue
.
use
(
Input
)
Vue
.
use
(
Radio
)
Vue
.
use
(
RadioGroup
)
Vue
.
use
(
Checkbox
)
Vue
.
use
(
Checkbox
)
Vue
.
use
(
CheckboxGroup
)
Vue
.
use
(
CheckboxGroup
)
Vue
.
use
(
Switch
)
Vue
.
use
(
Switch
)
...
...
src/setup/qiankun.js
View file @
07a71de
...
@@ -3,7 +3,6 @@ import Vue from 'vue'
...
@@ -3,7 +3,6 @@ import Vue from 'vue'
import
{
fetchConfig
}
from
'@/config'
import
{
fetchConfig
}
from
'@/config'
import
ElementUI
from
'element-ui'
import
ElementUI
from
'element-ui'
import
{
GLButton
,
GLTable
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
GLButton
,
GLTable
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
// import glsxTable from 'glsx-table'
import
{
getRoutes
}
from
'@/router'
import
{
getRoutes
}
from
'@/router'
import
render
from
'./render'
import
render
from
'./render'
Vue
.
use
(
ElementUI
)
Vue
.
use
(
ElementUI
)
...
@@ -17,11 +16,9 @@ let router = null
...
@@ -17,11 +16,9 @@ let router = null
let
instance
=
null
let
instance
=
null
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
})
{
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
})
{
const
{
response
,
request
,
sign
,
secret
}
=
await
fetchConfig
()
const
{
response
,
request
,
sign
,
secret
}
=
await
fetchConfig
()
console
.
log
(
request
)
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
console
.
log
(
globalState
)
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
...
...
src/setup/render.js
View file @
07a71de
...
@@ -19,16 +19,21 @@ const render = (base, routes) => {
...
@@ -19,16 +19,21 @@ const render = (base, routes) => {
})
})
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
let
modelStatus
=
false
;
let
modelStatus
=
false
;
if
(
Vue
.
prototype
.
$globalState
.
session
.
merchantModel
==
1
&&
Vue
.
prototype
.
$globalState
.
session
.
accountLevel
==
1
)
{
let
menu
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'SCRM_BASE_MENULIST'
));
let
menuStatus
=
menu
[
0
].
children
.
find
(
item
=>
{
return
item
.
path
.
indexOf
(
'enterpriseWechat/index'
)
!=
-
1
})
if
(
menuStatus
&&
Vue
.
prototype
.
$globalState
.
session
.
merchantModel
==
1
&&
Vue
.
prototype
.
$globalState
.
session
.
accountLevel
==
1
)
{
modelStatus
=
true
;
modelStatus
=
true
;
}
}
if
(
Vue
.
prototype
.
$globalState
.
session
.
merchantModel
==
2
&&
Vue
.
prototype
.
$globalState
.
session
.
accountLevel
==
4
)
{
if
(
menuStatus
&&
Vue
.
prototype
.
$globalState
.
session
.
merchantModel
==
2
&&
Vue
.
prototype
.
$globalState
.
session
.
accountLevel
==
4
)
{
modelStatus
=
true
;
modelStatus
=
true
;
}
}
if
(
from
.
path
==
'/'
&&
(
to
.
path
==
'/home/index'
||
to
.
path
==
'/ehome/index'
)
&&
modelStatus
)
{
if
(
!
sessionStorage
.
getItem
(
'wxStatus'
)
&&
(
to
.
path
==
'/home/index'
||
to
.
path
==
'/ehome/index'
)
&&
modelStatus
)
{
Vue
.
prototype
.
$apis
.
ww
.
getStatus
({}).
then
((
res
)
=>
{
Vue
.
prototype
.
$apis
.
ww
.
getStatus
({}).
then
((
res
)
=>
{
if
(
res
.
status
!=
'SUCCESS'
)
{
if
(
res
.
status
!=
'SUCCESS'
)
{
next
(
'/enterpriseWechat/index'
)
next
(
'/enterpriseWechat/index'
)
sessionStorage
.
setItem
(
'wxStatus'
,
1
)
}
else
{
}
else
{
next
()
next
()
}
}
...
...
src/setup/single.js
View file @
07a71de
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
message
}
from
'@/plugins/element.js'
import
{
message
}
from
'@/plugins/element.js'
import
{
fetchConfig
}
from
'@/config'
import
{
fetchConfig
}
from
'@/config'
import
{
GLButton
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
//
import { GLButton } from 'glsx-components' //权限按钮 (根据权限动态创建)
import
{
Http
,
utils
}
from
'glsx-common'
import
{
Http
,
utils
}
from
'glsx-common'
import
render
from
'./render'
import
render
from
'./render'
import
{
routes
}
from
'@/router'
import
{
routes
}
from
'@/router'
...
@@ -18,6 +18,6 @@ export async function start() {
...
@@ -18,6 +18,6 @@ export async function start() {
if
(
window
.
__POWERED_BY_QIANKUN__
)
return
if
(
window
.
__POWERED_BY_QIANKUN__
)
return
const
{
response
,
request
,
sign
,
secret
}
=
await
fetchConfig
()
const
{
response
,
request
,
sign
,
secret
}
=
await
fetchConfig
()
Vue
.
prototype
.
$http
=
new
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'1112223333444'
}
})
Vue
.
prototype
.
$http
=
new
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'1112223333444'
}
})
Vue
.
use
(
GLButton
,
{
permissions
:
[
'1-1-1-1'
,
'2-1-1-1'
,
'3-1-1-1'
]
})
//
Vue.use(GLButton, { permissions: ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
render
(
'/'
,
routes
)
render
(
'/'
,
routes
)
}
}
\ No newline at end of file
\ No newline at end of file
src/utils/util.js
View file @
07a71de
...
@@ -11,8 +11,26 @@ util.cloneText = function(message) {
...
@@ -11,8 +11,26 @@ util.cloneText = function(message) {
}
}
util
.
getBeforeDate
=
function
(
sign
=
'-'
)
{
util
.
getBeforeDate
=
function
(
sign
=
'-'
)
{
let
day
=
new
Date
();
let
day
=
new
Date
();
day
.
setTime
(
day
.
getTime
()
-
24
*
60
*
60
*
1000
);
let
month
=
day
.
getMonth
()
+
1
;
var
s
=
day
.
getFullYear
()
+
sign
+
(
day
.
getMonth
()
+
1
)
+
sign
+
day
.
getDate
();
let
date
=
day
.
getDate
();
if
(
month
<
10
)
month
=
'0'
+
month
;
if
(
date
<
10
)
date
=
'0'
+
date
;
var
s
=
day
.
getFullYear
()
+
sign
+
month
+
sign
+
date
;
return
s
;
return
s
;
}
}
util
.
getBeforeMonth
=
function
(
days
)
{
let
month
=
new
Date
().
getMonth
()
+
1
;
let
year
=
new
Date
().
getFullYear
();
let
arr
=
new
Array
();
for
(
let
i
=
0
;
i
<
days
;
i
++
)
{
if
(
month
<=
0
)
{
year
=
year
-
1
;
month
=
month
+
12
;
}
if
(
month
<
10
)
month
=
'0'
+
month
;
arr
[
i
]
=
year
+
'年'
+
month
+
'月'
month
--
}
return
arr
;
}
export
default
util
export
default
util
\ No newline at end of file
\ No newline at end of file
src/views/ehome/components/summary-ranking.vue
View file @
07a71de
...
@@ -7,14 +7,14 @@
...
@@ -7,14 +7,14 @@
<span>
门店企微客户数排行
</span>
<span>
门店企微客户数排行
</span>
<el-radio-group
v-model=
"radioStore"
@
change=
"tabRank"
size=
"mini"
>
<el-radio-group
v-model=
"radioStore"
@
change=
"tabRank"
size=
"mini"
>
<el-radio-button
label=
"1"
>
累计新增
</el-radio-button>
<el-radio-button
label=
"1"
>
累计新增
</el-radio-button>
<el-radio-button
label=
"2"
>
今
日新增
</el-radio-button>
<el-radio-button
label=
"2"
>
昨
日新增
</el-radio-button>
<el-radio-button
label=
"3"
>
累计流失
</el-radio-button>
<el-radio-button
label=
"3"
>
累计流失
</el-radio-button>
</el-radio-group>
</el-radio-group>
</div>
</div>
<div
class=
"summary-ranking-th"
>
<div
class=
"summary-ranking-th"
>
<div
class=
"summary-ranking-sno"
>
排
名
</div>
<div
class=
"summary-ranking-sno"
>
排
行
</div>
<div
class=
"summary-ranking-name"
>
门店名称
</div>
<div
class=
"summary-ranking-name"
>
门店名称
</div>
<div
class=
"summary-ranking-value"
>
加
企微客户数
</div>
<div
class=
"summary-ranking-value"
>
企微客户数
</div>
</div>
</div>
<div
class=
"chart-empty"
v-if=
"custSortList.length == 0"
>
<div
class=
"chart-empty"
v-if=
"custSortList.length == 0"
>
<img
src=
"@/assets/img/empty.png"
/>
<img
src=
"@/assets/img/empty.png"
/>
...
@@ -55,14 +55,23 @@
...
@@ -55,14 +55,23 @@
}">
}">
<div
class=
"summary-ranking-title scrm-c3"
>
<div
class=
"summary-ranking-title scrm-c3"
>
<span>
各门店产值排行
</span>
<span>
各门店产值排行
</span>
<el-radio-group
v-model=
"radioOutput"
size=
"mini"
>
<el-radio-group
v-model=
"radioOutput"
size=
"mini"
class=
"summary-time-select"
>
<el-radio-button
label=
"1"
>
累计新增
</el-radio-button>
<el-radio-button
label=
"1"
>
累计产值
</el-radio-button>
<el-radio-button
label=
"2"
>
今日新增
</el-radio-button>
<el-radio-button
label=
"2"
>
昨日新增
</el-radio-button>
<el-radio-button
label=
"3"
>
{{
monthValue
}}
</el-radio-button>
<el-select
v-model=
"monthValue"
placeholder=
""
>
<el-option
v-for=
"item in getBeforeMonth"
:key=
"item"
:label=
"item"
:value=
"item"
>
</el-option>
</el-select>
</el-radio-group>
</el-radio-group>
</div>
</div>
<div
class=
"summary-ranking-th"
>
<div
class=
"summary-ranking-th"
>
<div
class=
"summary-ranking-sno"
>
排
名
</div>
<div
class=
"summary-ranking-sno"
>
排
行
</div>
<div
class=
"summary-ranking-name"
>
门店名称
</div>
<div
class=
"summary-ranking-name"
>
门店名称
</div>
<div
class=
"summary-ranking-value"
>
总产值
</div>
<div
class=
"summary-ranking-value"
>
总产值
</div>
</div>
</div>
...
@@ -103,6 +112,7 @@
...
@@ -103,6 +112,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
util
from
"@/utils/util"
;
export
default
{
export
default
{
name
:
"summaryRanking"
,
name
:
"summaryRanking"
,
...
@@ -116,11 +126,13 @@ export default {
...
@@ -116,11 +126,13 @@ export default {
radioStore
:
"1"
,
radioStore
:
"1"
,
radioOutput
:
"1"
,
radioOutput
:
"1"
,
custSortList
:
[],
custSortList
:
[],
monthOptions
:
[],
monthArr
:
[],
monthValue
:
new
Date
().
getFullYear
()
+
'年'
+
new
Date
().
getMonth
()
+
'月'
,
yearValue
:
new
Date
().
getFullYear
(),
summaryArr
:
[],
summaryArr
:
[],
getBeforeMonth
:
util
.
getBeforeMonth
(
12
),
};
};
},
},
methods
:
{
methods
:
{
jumpStore
()
{
jumpStore
()
{
this
.
dialogVisible
=
false
;
this
.
dialogVisible
=
false
;
...
@@ -135,10 +147,11 @@ export default {
...
@@ -135,10 +147,11 @@ export default {
sortType
:
this
.
radioStore
,
sortType
:
this
.
radioStore
,
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
custSortList
=
res
.
custSortList
;
this
.
custSortList
=
res
.
custSortList
?
res
.
custSortList
:[]
;
this
.
custAvergCount
=
res
.
custAvergCount
;
this
.
custAvergCount
=
res
.
custAvergCount
;
if
(
this
.
custSortList
.
length
==
0
)
{
if
(
this
.
custSortList
.
length
==
0
&&
!
sessionStorage
.
getItem
(
'firstStatus'
)
&&
this
.
$globalState
.
session
.
accountLevel
==
1
&&
this
.
$globalState
.
session
.
accountLevel
==
4
)
{
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
sessionStorage
.
setItem
(
'firstStatus'
,
1
)
return
;
return
;
}
}
this
.
custSortMax
=
0
;
this
.
custSortMax
=
0
;
...
@@ -153,10 +166,7 @@ export default {
...
@@ -153,10 +166,7 @@ export default {
mounted
()
{
mounted
()
{
let
clientHeight
=
document
.
documentElement
.
clientHeight
;
let
clientHeight
=
document
.
documentElement
.
clientHeight
;
this
.
rankHeight
=
clientHeight
-
480
;
this
.
rankHeight
=
clientHeight
-
486
;
window
.
addEventListener
(
resize
=>
{
})
this
.
getSort
();
this
.
getSort
();
},
},
};
};
...
@@ -180,6 +190,32 @@ export default {
...
@@ -180,6 +190,32 @@ export default {
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
}
}
.summary-time-select
{
position
:
relative
;
/deep/
.el-select
{
width
:
px
;
position
:
absolute
;
right
:
0px
;
top
:
5px
;
.el-input__inner
{
line-height
:
20px
;
height
:
20px
;
border
:
none
;
width
:
0px
;
padding
:
0px
;
}
.el-input--suffix
{
transform
:
translateX
(
-50px
);
}
.el-input__suffix
{
transform
:
translateX
(
52px
);
right
:
0px
;
.el-input__icon
{
line-height
:
20px
;
}
}
}
}
.summary-ranking-th
{
.summary-ranking-th
{
display
:
flex
;
display
:
flex
;
border-radius
:
2px
2px
0px
0px
;
border-radius
:
2px
2px
0px
0px
;
...
...
src/views/ehome/components/summary-statistics.vue
View file @
07a71de
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<span>
统计截止至
</span>
<span>
统计截止至
</span>
<el-date-picker
<el-date-picker
@
change=
"changeTime"
@
change=
"changeTime"
format=
"yyyy-MM-dd"
value-
format=
"yyyy-MM-dd"
v-model=
"summaryTime"
v-model=
"summaryTime"
type=
"date"
type=
"date"
placeholder=
"选择日期"
placeholder=
"选择日期"
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
title=
"说明"
title=
"说明"
width=
"200"
width=
"200"
trigger=
"hover"
trigger=
"hover"
content=
"
各门店客户总数之和,门店之间不去重
"
content=
"
累计至统计截止时间,旗下各门店的客户总数之和,按手机号和企微双重去重。
"
>
>
<img
src=
"@/assets/img/question.png"
slot=
"reference"
/>
<img
src=
"@/assets/img/question.png"
slot=
"reference"
/>
</el-popover>
</el-popover>
...
@@ -35,7 +35,8 @@
...
@@ -35,7 +35,8 @@
未加企微客户数:
未加企微客户数:
<span>
{{
notAddEntmicroCount
?
notAddEntmicroCount
:
"- -"
}}
</span>
<span>
{{
notAddEntmicroCount
?
notAddEntmicroCount
:
"- -"
}}
</span>
</div>
</div>
<linechart
:echartId=
"echartId1"
:echartData=
"custAddList"
></linechart>
<linechart
:echartId=
"echartId1"
:echartData=
"custAddList"
v-if=
"!custAddListEmpty"
></linechart>
<div
class=
"chart-empty-null"
v-if=
"custAddListEmpty"
>
暂无数据
</div>
</div>
</div>
<div
class=
"summary-item"
>
<div
class=
"summary-item"
>
<div
class=
"summary-item-title"
>
<div
class=
"summary-item-title"
>
...
@@ -45,7 +46,7 @@
...
@@ -45,7 +46,7 @@
title=
"说明"
title=
"说明"
width=
"200"
width=
"200"
trigger=
"hover"
trigger=
"hover"
content=
"
各门店客户总数之和,门店之间不去重
"
content=
"
累计至统计截止时间,旗下各门店已加企微客户数之和,客户按企微号+手机号去重。
"
>
>
<img
src=
"@/assets/img/question.png"
slot=
"reference"
/>
<img
src=
"@/assets/img/question.png"
slot=
"reference"
/>
</el-popover>
</el-popover>
...
@@ -56,7 +57,8 @@
...
@@ -56,7 +57,8 @@
<div
class=
"summary-item-number"
>
<div
class=
"summary-item-number"
>
当日新增:
<span>
{{
newEntmicroCount
?
newEntmicroCount
:
"- -"
}}
</span>
当日新增:
<span>
{{
newEntmicroCount
?
newEntmicroCount
:
"- -"
}}
</span>
</div>
</div>
<linechart
:echartId=
"echartId2"
:echartData=
"custEntmicroAdds"
></linechart>
<linechart
:echartId=
"echartId2"
:echartData=
"custEntmicroAdds"
v-if=
"!custEntmicroAddsEmpty"
></linechart>
<div
class=
"chart-empty-null"
v-if=
"custEntmicroAddsEmpty"
>
暂无数据
</div>
</div>
</div>
<div
class=
"summary-item"
>
<div
class=
"summary-item"
>
<div
class=
"summary-item-title"
>
<div
class=
"summary-item-title"
>
...
@@ -66,7 +68,7 @@
...
@@ -66,7 +68,7 @@
title=
"说明"
title=
"说明"
width=
"200"
width=
"200"
trigger=
"hover"
trigger=
"hover"
content=
"
各门店客户总数之和,门店之间不去重
"
content=
"
累计至统计截止时间,旗下各门店客户删除或者拉黑企微客户数之和,客户按企微号+手机号去重。
"
>
>
<img
src=
"@/assets/img/question.png"
slot=
"reference"
/>
<img
src=
"@/assets/img/question.png"
slot=
"reference"
/>
</el-popover>
</el-popover>
...
@@ -78,7 +80,8 @@
...
@@ -78,7 +80,8 @@
当日新增:
当日新增:
<span>
{{
todayEntmicroLoseCount
?
todayEntmicroLoseCount
:
"- -"
}}
</span>
<span>
{{
todayEntmicroLoseCount
?
todayEntmicroLoseCount
:
"- -"
}}
</span>
</div>
</div>
<linechart
:echartId=
"echartId3"
:echartData=
"custLoseList"
></linechart>
<linechart
:echartId=
"echartId3"
:echartData=
"custLoseList"
v-if=
"!custLoseListEmpty"
></linechart>
<div
class=
"chart-empty-null"
v-if=
"custLoseListEmpty"
>
暂无数据
</div>
</div>
</div>
<div
class=
"summary-item"
>
<div
class=
"summary-item"
>
<div
class=
"summary-item-title"
>
<div
class=
"summary-item-title"
>
...
@@ -88,18 +91,18 @@
...
@@ -88,18 +91,18 @@
title=
"说明"
title=
"说明"
width=
"200"
width=
"200"
trigger=
"hover"
trigger=
"hover"
content=
"
各门店客户总数之和,门店之间不去重
"
content=
"
累计至统计截止时间,旗下各门店产值之和。
"
>
>
<img
src=
"@/assets/img/question.png"
slot=
"reference"
/>
<img
src=
"@/assets/img/question.png"
slot=
"reference"
/>
</el-popover>
</el-popover>
</div>
</div>
<div
class=
"summary-item-total"
>
¥--
</div>
<div
class=
"summary-item-total"
>
¥--
</div>
<div
class=
"summary-item-number"
>
当日新增:
<span>
¥--
</span></div>
<div
class=
"summary-item-number"
>
当日新增:
<span>
¥--
</span></div>
<
linechart
:echartId=
"echartId4"
></linechart
>
<
div
class=
"chart-empty-null"
>
暂无数据
</div
>
</div>
</div>
</div>
</div>
<div
:class=
"
{ 'expand-panel': expandStatus }" class="summary-line-panel">
<div
:class=
"
{ 'expand-panel': expandStatus }" class="summary-line-panel">
<div
class=
"summary-title"
>
汇总
</div>
<div
class=
"summary-title"
></div>
<div
class=
"chart-empty"
v-if=
"chartStatus"
>
<div
class=
"chart-empty"
v-if=
"chartStatus"
>
<img
src=
"@/assets/img/empty.png"
/>
<img
src=
"@/assets/img/empty.png"
/>
<div
class=
"chart-empty-d"
>
暂无数据
</div>
<div
class=
"chart-empty-d"
>
暂无数据
</div>
...
@@ -154,6 +157,9 @@ export default {
...
@@ -154,6 +157,9 @@ export default {
custAddList
:
[],
custAddList
:
[],
custEntmicroAdds
:
[],
custEntmicroAdds
:
[],
custLoseList
:
[],
custLoseList
:
[],
custAddListEmpty
:
false
,
custEntmicroAddsEmpty
:
false
,
custLoseListEmpty
:
false
,
};
};
},
},
...
@@ -185,8 +191,11 @@ export default {
...
@@ -185,8 +191,11 @@ export default {
getChart
()
{
getChart
()
{
this
.
$apis
.
home
.
getChart
({
day
:
30
,
date
:
this
.
summaryTime
}).
then
((
res
)
=>
{
this
.
$apis
.
home
.
getChart
({
day
:
30
,
date
:
this
.
summaryTime
}).
then
((
res
)
=>
{
this
.
custAddList
=
res
.
custAddList
;
this
.
custAddList
=
res
.
custAddList
;
this
.
custAddListEmpty
=
this
.
custEntmicroAdds
.
every
(
item
=>
item
.
customerCount
==
0
)
this
.
custEntmicroAdds
=
res
.
custEntmicroAdds
;
this
.
custEntmicroAdds
=
res
.
custEntmicroAdds
;
this
.
custEntmicroAddsEmpty
=
this
.
custEntmicroAdds
.
every
(
item
=>
item
.
customerCount
==
0
)
this
.
custLoseList
=
res
.
custLoseList
;
this
.
custLoseList
=
res
.
custLoseList
;
this
.
custLoseListEmpty
=
this
.
custLoseList
.
every
(
item
=>
item
.
customerCount
==
0
)
let
custEntmicroAddsHalf
=
this
.
custEntmicroAdds
.
slice
(
15
);
let
custEntmicroAddsHalf
=
this
.
custEntmicroAdds
.
slice
(
15
);
let
custLoseListHalf
=
this
.
custLoseList
.
slice
(
15
);
let
custLoseListHalf
=
this
.
custLoseList
.
slice
(
15
);
let
dateTime
=
custEntmicroAddsHalf
.
map
((
item
)
=>
{
let
dateTime
=
custEntmicroAddsHalf
.
map
((
item
)
=>
{
...
@@ -198,6 +207,10 @@ export default {
...
@@ -198,6 +207,10 @@ export default {
let
custLoseList
=
custLoseListHalf
.
map
((
item
)
=>
{
let
custLoseList
=
custLoseListHalf
.
map
((
item
)
=>
{
return
item
.
customerCount
;
return
item
.
customerCount
;
});
});
if
(
custEntmicroAdds
.
every
(
item
=>
item
==
0
)
&&
custLoseList
.
every
(
item
=>
item
==
0
))
{
this
.
chartStatus
=
true
;
return
}
let
monthAverg
=
custEntmicroAddsHalf
.
map
((
item
)
=>
{
let
monthAverg
=
custEntmicroAddsHalf
.
map
((
item
)
=>
{
return
item
.
monthAverg
;
return
item
.
monthAverg
;
});
});
...
@@ -214,14 +227,14 @@ export default {
...
@@ -214,14 +227,14 @@ export default {
formatter
(
params
)
{
formatter
(
params
)
{
let
circleColor
;
let
circleColor
;
let
Averg
;
let
Averg
;
if
(
params
.
seriesName
==
"每日新增企微
用
户"
)
{
if
(
params
.
seriesName
==
"每日新增企微
客
户"
)
{
circleColor
=
"#5850FF"
;
circleColor
=
"#5850FF"
;
Averg
=
monthAverg
[
params
.
dataIndex
];
Averg
=
monthAverg
[
params
.
dataIndex
];
}
}
if
(
params
.
seriesName
==
"每日新增产值"
)
{
if
(
params
.
seriesName
==
"每日新增产值"
)
{
circleColor
=
"#2CCA74"
;
circleColor
=
"#2CCA74"
;
}
}
if
(
params
.
seriesName
==
"每日企微
消失用
户"
)
{
if
(
params
.
seriesName
==
"每日企微
流失客
户"
)
{
circleColor
=
"#FF6D00"
;
circleColor
=
"#FF6D00"
;
Averg
=
monthAvergLoss
[
params
.
dataIndex
];
Averg
=
monthAvergLoss
[
params
.
dataIndex
];
}
}
...
@@ -241,13 +254,13 @@ export default {
...
@@ -241,13 +254,13 @@ export default {
},
},
},
},
legend
:
{
legend
:
{
data
:
[
"每日新增企微
用户"
,
"每日新增产值"
,
"每日企微消失用
户"
],
data
:
[
"每日新增企微
客户"
,
"每日新增产值"
,
"每日企微流失客
户"
],
left
:
"auto"
,
left
:
"auto"
,
},
},
grid
:
{
grid
:
{
left
:
"3%"
,
left
:
"3%"
,
right
:
"4%"
,
right
:
"4%"
,
bottom
:
"3%"
,
bottom
:
0
,
containLabel
:
true
,
containLabel
:
true
,
},
},
xAxis
:
{
xAxis
:
{
...
@@ -258,11 +271,16 @@ export default {
...
@@ -258,11 +271,16 @@ export default {
},
},
yAxis
:
{
yAxis
:
{
type
:
"value"
,
type
:
"value"
,
show
:
false
,
show
:
true
,
name
:
'单位:人'
,
minInterval
:
1
,
splitLine
:
{
show
:
false
}
},
},
series
:
[
series
:
[
{
{
name
:
"每日新增企微
用
户"
,
name
:
"每日新增企微
客
户"
,
type
:
"line"
,
type
:
"line"
,
lineStyle
:
{
color
:
"#5850FF "
},
lineStyle
:
{
color
:
"#5850FF "
},
data
:
custEntmicroAdds
,
data
:
custEntmicroAdds
,
...
@@ -274,7 +292,7 @@ export default {
...
@@ -274,7 +292,7 @@ export default {
data
:
[],
data
:
[],
},
},
{
{
name
:
"每日企微
消失用
户"
,
name
:
"每日企微
流失客
户"
,
type
:
"line"
,
type
:
"line"
,
lineStyle
:
{
color
:
"#FF6D00 "
},
lineStyle
:
{
color
:
"#FF6D00 "
},
data
:
custLoseList
,
data
:
custLoseList
,
...
@@ -287,14 +305,15 @@ export default {
...
@@ -287,14 +305,15 @@ export default {
},
},
mounted
()
{
mounted
()
{
console
.
log
(
document
.
URL
)
this
.
getViewData
();
this
.
getViewData
();
this
.
getChart
();
this
.
getChart
();
window
.
addEventListener
(
"resize"
,
()
=>
{
//
window.addEventListener("resize", () => {
this
.
getChart
();
//
this.getChart();
});
//
});
},
},
beforeDestroy
()
{
window
.
removeEventListener
(
'resize'
)
}
};
};
</
script
>
</
script
>
...
@@ -335,6 +354,16 @@ export default {
...
@@ -335,6 +354,16 @@ export default {
&:last-of-type
{
&:last-of-type
{
border
:
none
;
border
:
none
;
}
}
.chart-empty-null
{
height
:
60px
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#000000
;
line-height
:
32px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.summary-item-title
{
.summary-item-title
{
.item
{
.item
{
background
:
#ffffff
;
background
:
#ffffff
;
...
@@ -384,7 +413,7 @@ export default {
...
@@ -384,7 +413,7 @@ export default {
.summary-line-panel
{
.summary-line-panel
{
margin-top
:
30px
;
margin-top
:
30px
;
padding
:
0px
20px
;
padding
:
0px
20px
;
height
:
40
0px
;
height
:
36
0px
;
overflow
:
hidden
;
overflow
:
hidden
;
transition
:
height
0.2s
;
transition
:
height
0.2s
;
.summary-title
{
.summary-title
{
...
...
src/views/enterpriseWechat/index.vue
View file @
07a71de
This diff is collapsed.
Click to expand it.
src/views/followUp/components/addSale.vue
View file @
07a71de
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
:key=
"idx"
:key=
"idx"
closable
closable
:disable-transitions=
"false"
:disable-transitions=
"false"
@
close=
"remove(
idx
)"
@
close=
"remove(
tag
)"
>
>
{{
tag
.
staffName
}}
{{
tag
.
staffName
}}
</el-tag>
</el-tag>
...
@@ -31,13 +31,13 @@
...
@@ -31,13 +31,13 @@
></el-input>
></el-input>
</div>
</div>
<div><el-button
size=
"small"
class=
"sale-select-btn"
type=
"primary"
@
click=
"
add
Emp"
<div><el-button
size=
"small"
class=
"sale-select-btn"
type=
"primary"
@
click=
"
search
Emp"
>
确定
</el-button
>
查询
</el-button
></div>
></div>
</div>
</div>
<div>
<div>
<div
class=
"select-sale-panel"
>
<div
class=
"select-sale-panel"
>
<select-emp
ref=
"selectEmpTabel"
></select-emp>
<select-emp
@
selectTable=
"selectTable"
ref=
"selectEmpTabel"
></select-emp>
<div
class=
"popper__arrow"
></div>
<div
class=
"popper__arrow"
></div>
</div>
</div>
</div>
</div>
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
:key="index"
:key="index"
>
>
{{
item
.
followName
}}
{{
item
.
followName
}}
<i
class=
"el-icon-error"
@
click=
"delEmpType(item
)"
v-if=
"index > 1
"
></i>
<i
class=
"el-icon-error"
@
click=
"delEmpType(item
,index)"
v-if=
"!item.commonFlag
"
></i>
</div>
</div>
</div>
</div>
<div
class=
"sale-select"
>
<div
class=
"sale-select"
>
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
></div>
></div>
</div>
</div>
<div
class=
"sale-type-desc"
>
<div
class=
"sale-type-desc"
>
跟进员工类型最多新增30个,已新增
{{
empType
.
length
-
2
}}
个
跟进员工类型最多新增30个,已新增
{{
empType
.
length
-
3
}}
个
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
style=
"text-align: center"
>
<el-form-item
style=
"text-align: center"
>
...
@@ -106,6 +106,13 @@ export default {
...
@@ -106,6 +106,13 @@ export default {
this
.
newTag
=
""
;
this
.
newTag
=
""
;
this
.
innerTags
=
[];
this
.
innerTags
=
[];
this
.
empTypeValue
=
""
;
this
.
empTypeValue
=
""
;
if
(
this
.
$refs
.
selectEmpTabel
.
listTree
.
length
!=
0
)
{
this
.
$refs
.
selectEmpTabel
.
listEntmicroStaff
();
this
.
$refs
.
selectEmpTabel
.
clearSelection
();
}
},
selectTable
(
val
)
{
this
.
innerTags
=
val
;
},
},
listEntFollowerType
()
{
listEntFollowerType
()
{
this
.
$apis
.
emp
this
.
$apis
.
emp
...
@@ -124,37 +131,19 @@ export default {
...
@@ -124,37 +131,19 @@ export default {
this
.
$el
.
querySelector
(
".tag-input"
).
focus
();
this
.
$el
.
querySelector
(
".tag-input"
).
focus
();
}
}
},
},
inputTag
()
{
remove
(
row
)
{
this
.
ms
=
1000
;
this
.
$refs
.
selectEmpTabel
.
clearSelect
(
row
);
clearTimeout
(
this
.
timeID
);
this
.
timeID
=
setTimeout
(()
=>
{
this
.
$refs
.
selectEmpTabel
.
listEntmicroStaff
(
this
.
newTag
);
},
this
.
ms
);
},
remove
(
index
)
{
this
.
innerTags
.
splice
(
index
,
1
);
this
.
reloadTags
();
},
//添加员工
addEmp
()
{
this
.
innerTags
=
this
.
innerTags
.
concat
(
this
.
$refs
.
selectEmpTabel
.
$refs
.
saleTable
.
mutiSelectArr
[
"salelist"
]
);
this
.
reloadTags
();
},
},
reloadTags
()
{
//查询
const
arr
=
[];
searchEmp
()
{
this
.
innerTags
.
forEach
((
item
)
=>
{
this
.
$refs
.
selectEmpTabel
.
listEntmicroStaff
(
this
.
newTag
);
arr
.
push
(
item
.
id
);
});
this
.
$refs
.
selectEmpTabel
.
clearSelect
(
arr
);
},
},
addEmpType
()
{
addEmpType
()
{
if
(
!
this
.
empTypeValue
)
{
if
(
!
this
.
empTypeValue
)
{
this
.
$message
.
error
(
"请输入类型名称"
);
this
.
$message
.
error
(
"请输入类型名称"
);
return
;
return
;
}
}
if
(
this
.
empType
.
length
==
3
2
)
{
if
(
this
.
empType
.
length
==
3
3
)
{
this
.
$message
.
error
(
"跟进员工类型最多新增30个"
);
this
.
$message
.
error
(
"跟进员工类型最多新增30个"
);
return
;
return
;
}
}
...
@@ -167,19 +156,22 @@ export default {
...
@@ -167,19 +156,22 @@ export default {
});
});
this
.
empTypeValue
=
""
;
this
.
empTypeValue
=
""
;
},
},
delEmpType
(
item
)
{
delEmpType
(
item
,
index
)
{
this
.
$apis
.
emp
.
deleteFollowerType
({
id
:
item
.
id
}).
then
((
res
)
=>
{
this
.
$apis
.
emp
.
deleteFollowerType
({
id
:
item
.
id
}).
then
((
res
)
=>
{
if
(
res
)
{
this
.
listEntFollowerType
();
this
.
listEntFollowerType
();
this
.
typeIndex
=
0
;
}
});
});
},
},
syncEntmicroIsOutsiderStaff
()
{
syncEntmicroIsOutsiderStaff
()
{
console
.
log
(
this
.
$globalState
);
let
params
=
{
let
params
=
{
departmentId
:
1
,
departmentId
:
1
,
merchantId
:
this
.
$globalState
.
session
.
merchantId
,
merchantId
:
this
.
$globalState
.
session
.
merchantId
,
};
};
this
.
$apis
.
emp
.
syncEntmicroIsOutsiderStaff
(
params
).
then
((
res
)
=>
{
this
.
$apis
.
emp
.
syncEntmicroIsOutsiderStaff
(
params
).
then
((
res
)
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
$refs
.
selectEmpTabel
.
listEntmicroStaff
();
this
.
$message
({
this
.
$message
({
message
:
"同步成功"
,
message
:
"同步成功"
,
type
:
"success"
,
type
:
"success"
,
...
@@ -286,7 +278,9 @@ export default {
...
@@ -286,7 +278,9 @@ export default {
border
:
none
!important
;
border
:
none
!important
;
}
}
/
deep
/
.el-input
{
/
deep
/
.el-input
{
width
:
150px
;
min-width
:
150px
;
width
:
auto
;
flex
:
1
;
}
}
}
}
...
...
src/views/followUp/components/selectEmp.vue
View file @
07a71de
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
:tableParams=
"tableParams"
:tableParams=
"tableParams"
:hasNum=
"false"
:hasNum=
"false"
:hasPage=
"false"
:hasPage=
"false"
@
selectionTable=
"selectionTable"
>
>
</GLTable>
</GLTable>
</el-col>
</el-col>
...
@@ -75,6 +76,9 @@ export default {
...
@@ -75,6 +76,9 @@ export default {
},
},
methods
:
{
methods
:
{
selectionTable
(
val
)
{
this
.
$emit
(
'selectTable'
,
val
)
},
listDepartmentTree
()
{
listDepartmentTree
()
{
this
.
$apis
.
emp
.
listDepartmentTree
({
id
:
1
}).
then
((
res
)
=>
{
this
.
$apis
.
emp
.
listDepartmentTree
({
id
:
1
}).
then
((
res
)
=>
{
this
.
listTree
=
res
;
this
.
listTree
=
res
;
...
@@ -84,8 +88,10 @@ export default {
...
@@ -84,8 +88,10 @@ export default {
});
});
});
});
},
},
clearSelect
(
arr
)
{
clearSelect
(
row
)
{
this
.
tableParams
.
checkSelectVal
=
arr
;
this
.
$refs
.
saleTable
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
row
);
},
clearSelection
()
{
this
.
$refs
.
saleTable
.
$refs
.
salelistMutiTable
.
clearSelection
();
this
.
$refs
.
saleTable
.
$refs
.
salelistMutiTable
.
clearSelection
();
},
},
handleNodeClick
(
data
)
{
handleNodeClick
(
data
)
{
...
@@ -163,6 +169,9 @@ export default {
...
@@ -163,6 +169,9 @@ export default {
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0px
2px
12px
0px
rgba
(
0
,
0
,
0
,
0.06
);
box-shadow
:
0px
2px
12px
0px
rgba
(
0
,
0
,
0
,
0.06
);
border
:
1px
solid
#e4e7ed
;
border
:
1px
solid
#e4e7ed
;
/deep/
.el-checkbox__input.is-disabled
.el-checkbox__inner
{
background-color
:
#999999
;
}
}
}
.emp-tree-panel
{
.emp-tree-panel
{
margin-right
:
10px
;
margin-right
:
10px
;
...
...
src/views/followUp/index.vue
View file @
07a71de
<
template
>
<
template
>
<div
className=
"scrm-main"
>
<div
className=
"scrm-main"
>
<div
class=
"follow-header"
>
<div
class=
"follow-header"
>
<p>
1、跟进专员可以接收/发放活动任务;
</p>
<p>
1、跟进专员可以接收/发放活动任务,接收任务后可分发给客户。
</p>
<p>
2、跟进专员接收任务后可分发给客户;
</p>
<p>
2、拥有“添加外部联系人权限”的员工才允许设置为跟进专员。
</p>
<p>
3、拥有“添加外部联系人权限”的员工才允许设置为跟进专员;
</p>
<div
class=
"follow-process-a"
>
企微管理员为员工“设置外部联系人权限”流程>>
</div>
<div
class=
"follow-process-a"
>
企微管理员为员工“设置外部联系人权限”流程>>
</div>
</div>
</div>
<div
class=
"follow-form"
>
<div
class=
"follow-form"
>
...
@@ -230,10 +229,6 @@ export default {
...
@@ -230,10 +229,6 @@ export default {
});
});
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"已取消删除"
,
});
});
});
},
},
},
},
...
@@ -264,6 +259,7 @@ export default {
...
@@ -264,6 +259,7 @@ export default {
}
}
}
}
.follow-form
{
.follow-form
{
min-height
:
calc
(
100%
-
200px
);
margin-top
:
20px
;
margin-top
:
20px
;
background
:
#ffffff
;
background
:
#ffffff
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
...
@@ -277,5 +273,8 @@ export default {
...
@@ -277,5 +273,8 @@ export default {
}
}
}
}
.drawer-panel
{
.drawer-panel
{
/deep/
.el-drawer__body{
overflow-y
:
auto
;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/home/components/customer-echart.vue
View file @
07a71de
...
@@ -4,8 +4,17 @@
...
@@ -4,8 +4,17 @@
<div
class=
"view-l-title"
>
<div
class=
"view-l-title"
>
<div
class=
"view-title-desc"
>
<div
class=
"view-title-desc"
>
<span>
总产值
</span>
<span>
总产值
</span>
<el-popover
placement=
"top"
title=
"说明"
width=
"200"
trigger=
"hover"
content=
"累计至统计截止时间,旗下各门店产值之和。"
>
<img
src=
"@/assets/img/question.png"
slot=
"reference"
/>
</el-popover>
</div>
</div>
<div
class=
"view-title-num"
>
<span>
- -
</span>
人
</div>
<div
class=
"view-title-num"
>
¥ - -
</div>
</div>
</div>
<div
class=
"view-chart"
>
<div
class=
"view-chart"
>
<div
class=
"view-chart-empty"
>
<div
class=
"view-chart-empty"
>
...
...
src/views/home/components/enterprise-information.vue
View file @
07a71de
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"scrm-main"
>
<div
class=
"scrm-main"
>
<div
class=
"info-border"
>
<div
class=
"info-border"
>
<div
class=
"info-title"
>
<div
class=
"info-title"
>
企业信息
<span
v-if=
"info.merchantModelName"
>
{{
info
.
merchantModelName
.
substring
(
0
,
2
)
}}
</span>
企业信息
<span
v-if=
"info.merchantModelName"
>
{{
$globalState
.
session
.
accountLevel
==
4
?
'门店'
:
'集团'
}}
</span>
</div>
</div>
<div
class=
"merchant-info"
>
<div
class=
"merchant-info"
>
<p>
<p>
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</p>
</p>
<p>
<p>
<span>
企微成员:
</span
<span>
企微成员:
</span
><span>
{{
info
.
numberStores
?
info
.
numberStores
:
"- -"
}}
</span>
><span>
{{
info
.
entMicroEmployeeCount
?
info
.
entMicroEmployeeCount
:
"- -"
}}
</span>
</p>
</p>
</div>
</div>
</div>
</div>
...
...
src/views/home/components/overview-enterprise.vue
View file @
07a71de
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
title=
"说明"
title=
"说明"
width=
"200"
width=
"200"
trigger=
"hover"
trigger=
"hover"
content=
"
各门店客户总数之和,门店之间不去重
"
content=
"
累计至统计截止时间,旗下各门店的客户总数之和,按手机号和企微双重去重。
"
>
>
<img
src=
"@/assets/img/question.png"
slot=
"reference"
/>
<img
src=
"@/assets/img/question.png"
slot=
"reference"
/>
</el-popover>
</el-popover>
...
...
src/views/home/index.vue
View file @
07a71de
...
@@ -2,17 +2,26 @@
...
@@ -2,17 +2,26 @@
<div
class=
"scrm-main"
>
<div
class=
"scrm-main"
>
<div
class=
"main-panel"
:class=
"
{ 'main-isScroll': guideStatus }">
<div
class=
"main-panel"
:class=
"
{ 'main-isScroll': guideStatus }">
<div
class=
"main-left"
>
<div
class=
"main-left"
>
<div
class=
"header-panel"
:style=
"
{
<div
class=
"header-panel"
:style=
"
{
height: headHeight + 'px',
height: headHeight + 'px',
'font-size': headHeight / 5+'px'}">
'font-size': headHeight / 5 + 'px',
}"
>
<img
<img
class=
"info-consulting-icon"
class=
"info-consulting-icon"
src=
"@/assets/img/home/home-header.png"
src=
"@/assets/img/home/home-header.png"
alt=
""
alt=
""
/>
/>
<div
class=
"jump-mf-btn"
:style=
"
{
<div
left: headWidth/1.36 + 'px'
class=
"jump-mf-btn"
}">立即使用
</div>
:style=
"
{
left: headWidth / 1.36 + 'px',
}"
>
立即使用
</div>
</div>
</div>
<div
class=
"summary-panel"
>
<div
class=
"summary-panel"
>
<div
class=
"home-statistics-title"
>
企业数据概览
</div>
<div
class=
"home-statistics-title"
>
企业数据概览
</div>
...
@@ -20,7 +29,7 @@
...
@@ -20,7 +29,7 @@
<span>
统计截止至
</span>
<span>
统计截止至
</span>
<el-date-picker
<el-date-picker
size=
"mall"
size=
"mall"
format=
"yyyy-MM-dd"
value-
format=
"yyyy-MM-dd"
v-model=
"summaryTime"
v-model=
"summaryTime"
type=
"date"
type=
"date"
placeholder=
"选择日期"
placeholder=
"选择日期"
...
@@ -64,7 +73,7 @@
...
@@ -64,7 +73,7 @@
class=
"guide-btn"
class=
"guide-btn"
:style=
"
{
:style=
"
{
left: guideLeft - imgWidth / 2 - borderLeft + 'px',
left: guideLeft - imgWidth / 2 - borderLeft + 'px',
top: guideTop + imgHeight
/
2 + 'px',
top: guideTop + imgHeight
/
2 + 'px',
}"
}"
>
>
我知道了
我知道了
...
@@ -177,9 +186,9 @@ export default {
...
@@ -177,9 +186,9 @@ export default {
return
{
return
{
summaryTime
:
util
.
getBeforeDate
(),
summaryTime
:
util
.
getBeforeDate
(),
pickerOptions
:
{
pickerOptions
:
{
disabledDate
:(
time
)
=>
{
disabledDate
:
(
time
)
=>
{
return
time
.
getTime
()
>
Date
.
now
();
return
time
.
getTime
()
>
Date
.
now
();
}
},
},
},
guideStatus
:
false
,
guideStatus
:
false
,
step
:
1
,
step
:
1
,
...
@@ -220,15 +229,18 @@ export default {
...
@@ -220,15 +229,18 @@ export default {
}
else
if
(
this
.
step
==
2
)
{
}
else
if
(
this
.
step
==
2
)
{
this
.
guideWidth
=
document
.
querySelector
(
".consult-box"
).
offsetWidth
;
this
.
guideWidth
=
document
.
querySelector
(
".consult-box"
).
offsetWidth
;
this
.
guideHeight
=
document
.
querySelector
(
".consult-box"
).
offsetHeight
;
this
.
guideHeight
=
document
.
querySelector
(
".consult-box"
).
offsetHeight
;
this
.
imgHeight
=
this
.
guideHeight
/
2
;
this
.
imgHeight
=
this
.
guideHeight
/
2
;
this
.
imgWidth
=
(
this
.
imgHeight
*
759
)
/
128
;
this
.
imgWidth
=
(
this
.
imgHeight
*
759
)
/
128
;
this
.
guideLeft
=
this
.
guideLeft
=
document
.
querySelector
(
".consult-box"
).
offsetLeft
+
this
.
borderLeft
-
42
;
document
.
querySelector
(
".consult-box"
).
offsetLeft
+
this
.
borderLeft
-
42
;
this
.
guideTop
=
document
.
querySelector
(
".consult-box"
).
offsetTop
+
this
.
borderTop
;
this
.
guideTop
=
document
.
querySelector
(
".consult-box"
).
offsetTop
+
this
.
borderTop
;
}
else
{
}
else
{
let
top
=
document
.
querySelector
(
".accurate-sercives"
).
offsetTop
+
150
;
let
domWrapper
=
document
.
querySelector
(
".main-panel"
);
let
top
=
domWrapper
.
scrollHeight
-
domWrapper
.
offsetHeight
-
150
;
this
.
guideLeft
=
this
.
guideLeft
=
document
.
querySelector
(
".operational-panel-s"
).
offsetLeft
+
this
.
borderLeft
-
40
;
document
.
querySelector
(
".operational-panel-s"
).
offsetLeft
+
this
.
borderLeft
-
40
;
this
.
guideTop
=
this
.
guideTop
=
document
.
querySelector
(
".operational-panel-s"
).
offsetTop
-
document
.
querySelector
(
".operational-panel-s"
).
offsetTop
-
top
-
top
-
...
@@ -243,13 +255,10 @@ export default {
...
@@ -243,13 +255,10 @@ export default {
}
}
},
},
findLogin
()
{
findLogin
()
{
this
.
$apis
.
home
.
findLoginCount
({
loginType
:
1
}).
then
((
res
)
=>
{
this
.
$apis
.
home
.
findLoginCount
({
loginType
:
1
}).
then
((
res
)
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
guideStatus
=
true
;
this
.
guideStatus
=
true
;
this
.
getRezie
();
this
.
getRezie
();
window
.
addEventListener
(
"resize"
,
()
=>
{
this
.
getRezie
();
});
}
}
});
});
},
},
...
@@ -264,6 +273,9 @@ export default {
...
@@ -264,6 +273,9 @@ export default {
});
});
this
.
findLogin
();
this
.
findLogin
();
},
},
beforeDestroy
()
{
window
.
removeEventListener
(
"resize"
);
},
};
};
</
script
>
</
script
>
...
@@ -290,7 +302,7 @@ export default {
...
@@ -290,7 +302,7 @@ export default {
line-height
:
12px
;
line-height
:
12px
;
cursor
:
pointer
;
cursor
:
pointer
;
bottom
:
8px
;
bottom
:
8px
;
left
:
73.5%
!important
;
left
:
73.5%
!important
;
}
}
>
img
{
>
img
{
width
:
100%
;
width
:
100%
;
...
@@ -314,11 +326,12 @@ export default {
...
@@ -314,11 +326,12 @@ export default {
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
/deep/
.el-date-editor.el-input,
.el-date-editor.el-input__inner
{
/deep/
.el-date-editor.el-input,
.el-date-editor.el-input__inner
{
winth
:
100px
;
winth
:
100px
;
line-height
:
32px
;
line-height
:
32px
;
height
:
32px
;
height
:
32px
;
}
}
}
}
.home-statistics-title
{
.home-statistics-title
{
font-size
:
20px
;
font-size
:
20px
;
...
...
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