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
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
594 additions
and
377 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
{
{
"name"
:
"home"
,
"name"
:
"home"
,
"version"
:
"0.1.0"
,
"version"
:
"0.1.0"
,
"private"
:
true
,
"private"
:
true
,
"scripts"
:
{
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
"serve"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
"build"
:
"vue-cli-service build"
,
"lint"
:
"vue-cli-service lint"
"lint"
:
"vue-cli-service lint"
},
},
"dependencies"
:
{
"dependencies"
:
{
"axios"
:
"^0.21.1"
,
"axios"
:
"^0.21.1"
,
"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"
:
{
"@vue/cli-plugin-babel"
:
"^4.1.0"
,
"@vue/cli-plugin-babel"
:
"^4.1.0"
,
"@vue/cli-plugin-eslint"
:
"^4.1.0"
,
"@vue/cli-plugin-eslint"
:
"^4.1.0"
,
"@vue/cli-plugin-router"
:
"^4.1.0"
,
"@vue/cli-plugin-router"
:
"^4.1.0"
,
"@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"
,
"babel-eslint"
:
"^10.0.3"
,
"autoprefixer"
:
"^8.0.0"
,
"babel-plugin-component"
:
"^1.1.1"
,
"babel-eslint"
:
"^10.0.3"
,
"element-theme-chalk"
:
"^2.15.6"
,
"babel-plugin-component"
:
"^1.1.1"
,
"eslint"
:
"^5.16.0"
,
"element-theme-chalk"
:
"^2.15.6"
,
"eslint-plugin-prettier"
:
"^3.1.1"
,
"eslint"
:
"^5.16.0"
,
"eslint-plugin-vue"
:
"^5.0.0"
,
"eslint-plugin-prettier"
:
"^3.1.1"
,
"node-sass"
:
"^4.14.1"
,
"eslint-plugin-vue"
:
"^5.0.0"
,
"prettier"
:
"^1.19.1"
,
"node-sass"
:
"^4.14.1"
,
"sass-loader"
:
"^8.0.0"
,
"postcss-loader"
:
"^6.2.0"
,
"vue-cli-plugin-element"
:
"^1.0.1"
,
"prettier"
:
"^1.19.1"
,
"vue-template-compiler"
:
"^2.6.10"
"sass-loader"
:
"^8.0.0"
,
},
"vue-cli-plugin-element"
:
"^1.0.1"
,
"browserslist"
:
[
"vue-template-compiler"
:
"^2.6.10"
"> 1%"
,
},
"last 2 versions"
"browserslist"
:
[
]
"> 1%"
,
}
"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,11 +107,15 @@ img {
...
@@ -107,11 +107,15 @@ img {
::-webkit-scrollbar
{
::-webkit-scrollbar
{
/*滚动条整体样式*/
/*滚动条整体样式*/
width
:
6px
;
width
:
6px
;
height
:
1
px
;
height
:
4
px
;
}
}
::-webkit-scrollbar-thumb
{
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
/*滚动条里面小方块*/
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
<
template
>
<
template
>
<div
class=
"scrm-main"
>
<div
class=
"scrm-main"
>
<div
class=
"enterprise-panel"
>
<div
class=
"enterprise-panel"
v-loading=
"loading"
>
<div
class=
"enterprise-title"
>
<div
class=
"enterprise-title"
>
企业自建应用接入流程
企业自建应用接入流程
<span>
(适合没有自己技术团队的企业,接入即可使用全部功能)
</span>
<span>
(适合没有自己技术团队的企业,接入即可使用全部功能)
</span>
...
@@ -11,225 +11,278 @@
...
@@ -11,225 +11,278 @@
'min-height': boxHeight + 'px',
'min-height': boxHeight + 'px',
}"
}"
>
>
<div
class=
"step-left scrm-box-f"
>
<div
class=
"step-right scrm-box-f"
>
<div
class=
"step-box"
>
<div
class=
"enterprise-step-box"
>
<div
class=
"el-steps el-steps--vertical"
>
<div
class=
"el-steps el-steps--horizontal"
>
<div
class=
"el-step is-vertical"
style=
"flex-basis: 50%"
>
<div
<div
class=
"el-step__head is-wait"
:class=
"
{ 'is-finish': active == 1 }">
class=
"el-step is-horizontal"
<div
class=
"el-step__line"
style=
"margin-right: 0px"
></div>
style=
"flex-basis: 50%; margin-right: 0px"
>
<div
class=
"el-step__head"
:class=
"
{ 'is-finish': active == 1 }">
<div
class=
"el-step__line"
style=
"margin-right: 0px"
>
<i
class=
"el-step__line-inner"
style=
"transition-delay: 0ms; border-width: 0px; width: 0%"
></i>
</div>
<div
class=
"el-step__icon is-text"
>
<div
class=
"el-step__icon is-text"
>
<div
class=
"el-step__icon-inner"
>
1
</div>
<div
class=
"el-step__icon-inner"
>
1
</div>
</div>
</div>
</div>
<div
class=
"el-step__main el-step__desc"
>
<div
class=
"el-step__main"
>
<div
class=
"el-step__title"
:class=
"
{ 'is-finish': active == 1 }">
<div
第一步
class=
"el-step__title is-wait"
</div>
:class=
"
{ 'is-finish': active == 1 }"
<div
>
class=
"el-step__description"
第一步
:class=
"
{ 'is-finish': active == 1 }"
</div>
>
<div
管理员授权绑定企业
class=
"el-step__description is-wait"
</div>
:class=
"
{ 'is-finish': active == 1 }"
>
管理员授权绑定企业
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"el-step is-vertical"
style=
"flex-basis: 50%"
>
<div
<div
class=
"el-step__head is-wait"
:class=
"
{ 'is-finish': active == 2 }">
class=
"el-step is-horizontal"
<div
class=
"el-step__line"
style=
"margin-right: 0px"
></div>
style=
"flex-basis: 50%; margin-right: 0px"
>
<div
class=
"el-step__head"
:class=
"
{ 'is-finish': active == 2 }">
<div
class=
"el-step__line"
style=
"margin-right: 0px"
>
<i
class=
"el-step__line-inner"
style=
"transition-delay: -150ms; border-width: 0px; width: 0%"
></i>
</div>
<div
class=
"el-step__icon is-text"
>
<div
class=
"el-step__icon is-text"
>
<!---->
<div
class=
"el-step__icon-inner"
>
2
</div>
<div
class=
"el-step__icon-inner"
>
2
</div>
</div>
</div>
</div>
<div
class=
"el-step__main el-step__desc"
>
<div
class=
"el-step__main"
>
<div
class=
"el-step__title"
:class=
"
{ 'is-finish': active == 2 }">
<div
第二步
class=
"el-step__title is-wait"
</div>
:class=
"
{ 'is-finish': active == 2 }"
<div
>
class=
"el-step__description"
第二步
:class=
"
{ 'is-finish': active == 2 }"
</div>
>
<div
管理员授权配置
class=
"el-step__description is-wait"
</div>
:class=
"
{ 'is-finish': active == 2 }"
>
管理员授权配置
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"el-step is-vertical is-flex"
style=
"flex-basis: 50%"
>
<div
<div
class=
"el-step__head is-wait"
:class=
"
{ 'is-finish': active == 3 }">
class=
"el-step is-horizontal is-flex"
<div
class=
"el-step__line"
></div>
style=
"flex-basis: 50%; max-width: 33.3333%"
>
<div
class=
"el-step__head"
:class=
"
{ 'is-finish': active == 3 }">
<div
class=
"el-step__line"
><i
class=
"el-step__line-inner"
></i></div>
<div
class=
"el-step__icon is-text"
>
<div
class=
"el-step__icon is-text"
>
<!---->
<div
class=
"el-step__icon-inner"
>
3
</div>
<div
class=
"el-step__icon-inner"
>
3
</div>
</div>
</div>
</div>
<div
class=
"el-step__main el-step__desc"
>
<div
class=
"el-step__main"
>
<div
class=
"el-step__title"
:class=
"
{ 'is-finish': active == 3 }">
<div
第三步
class=
"el-step__title is-wait"
</div>
:class=
"
{ 'is-finish': active == 3 }"
<div
>
class=
"el-step__description"
第三步
:class=
"
{ 'is-finish': active == 3 }"
</div>
>
<div
配置完成
class=
"el-step__description is-wait"
</div>
:class=
"
{ 'is-finish': active == 3 }"
>
配置完成
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"config-box"
v-if=
"active == 1"
>
</div>
<div
class=
"config-box-h1"
>
<div
class=
"step-right scrm-box-f"
>
初次使用客户,需要企业微信超级管理员授权绑定企业,具体如下:
<div
class=
"config-box"
v-if=
"active == 1"
>
<div
class=
"config-box-h1"
>
第一步:初次使用客户,需要企业微信超级管理员授权绑定企业,具体如下:
</div>
<div
class=
"config-box-h2"
>
未注册企业微信的用户,请先前往企业微信的官网进行注册。
<a
@
click=
"jumpUrl('https://work.weixin.qq.com/')"
>
企业微信官网>>
</a
>
</div>
<div
class=
"config-box-h3"
>
1.企业微信超级管理员扫码授权接入嘀加企微管家
</div>
<div
class=
"config-box-qrcode"
style=
"width: 50%"
v-if=
"qrcodeUrl"
>
<div
class=
"config-use-qrcode"
>
<img
:src=
"qrcodeUrl"
/>
<div
class=
"qrcode-refresh"
v-if=
"checkStatus != 'never'"
>
<div
class=
"qrcode-status"
v-if=
"checkStatus == 'succ'"
>
<i
class=
"el-icon-circle-check"
></i>
<div>
完成
</div>
</div>
<div
class=
"qrcode-status"
v-if=
"checkStatus == 'ing'"
>
<i
class=
"el-icon-loading"
></i>
</div>
<div
class=
"qrcode-status"
v-if=
"checkStatus == 'expired'"
@
click=
"handleRefresh"
>
<i
class=
"el-icon-refresh"
></i>
<div>
刷新
</div>
</div>
</div>
</div>
</div>
<div
class=
"config-use-desc"
>
请联系超级管理员用企业微信扫码接入
</div>
<div
class=
"config-box-h2"
>
</div>
未注册企业微信的用户,请先前往企业微信的官网进行注册。
<a
<div
@
click=
"
class=
"config-form-panel"
jumpUrl(
v-if=
"applicationList && applicationList.length > 0"
'https://work.weixin.qq.com/wework_admin/loginpage_wx?from=myhome'
>
)
<div>
"
<div
class=
"config-box-h3"
>
2.填写嘀加智慧门店秘钥secret
</div>
>
企业微信官网>>
</a
<div
class=
"config-box-form"
>
>
<div
</div>
class=
"config-box-input"
<div
class=
"config-box-h3"
>
v-for=
"(item, index) in applicationList"
1.企业微信超级管理员扫码授权接入嘀加企微管家
:key=
"index"
>
<label
v-if=
"item.appCode == 'DJQWGJ'"
>
*Secret:
</label>
<label
v-if=
"item.appCode == 'WBLXR'"
>
*客户联系Secret:
</label>
<label
v-if=
"item.appCode == 'TXLTBZS'"
>
*通讯录Secret:
</label>
<input
type=
"text"
:readonly=
"toStatus"
v-model=
"item.appSecret"
class=
"config-item-input"
/>
</div>
<div
class=
"config-box-link"
><span
@
click=
"jumpUrl('http://qcimg01.glsx.net/upload/temporary/illustrate.html')"
>
查看如何获取 >>
</span></div>
</div>
</div>
</div>
<div
class=
"config-box-qrcode"
>
<div
class=
"config-box-qrcode"
style=
"width: 50%"
v-if=
"qrcodeUrl"
>
<div
class=
"config-box-h3"
>
如未成功,请加我微信帮您接入
</div>
<div
class=
"config-use-qrcode"
>
<div
class=
"config-use-qrcode"
>
<img
src=
"@/assets/img/qrcode.png"
alt=
""
/>
<img
:src=
"qrcodeUrl"
/>
<div
class=
"qrcode-refresh"
v-if=
"checkStatus != 'never'"
>
<div
class=
"qrcode-status"
v-if=
"checkStatus == 'succ'"
>
<i
class=
"el-icon-circle-check"
></i>
<div>
完成
</div>
</div>
<div
class=
"qrcode-status qrcode-status-ing"
v-if=
"checkStatus == 'ing'"
>
<i
class=
"el-icon-loading"
></i>
</div>
<div
class=
"qrcode-status"
v-if=
"checkStatus == 'expired'"
@
click=
"handleRefresh"
>
<i
class=
"el-icon-refresh"
></i>
<div>
刷新
</div>
</div>
</div>
</div>
</div>
<div
class=
"config-use-desc"
>
请联系超级管理员用企业微信扫码接入
</div>
<div
class=
"config-use-desc"
>
请联系超级管理员用企业微信扫码接入
</div>
</div>
</div>
</div>
<div
class=
"config-box-qrcode"
style=
"width: 50%"
v-else
>
</div>
<div
class=
"config-use-qrcode"
>
<div
class=
"config-box"
v-if=
"active == 2"
>
<img
src=
"@/assets/img/qrcode.png"
/>
<div
class=
"config-box-h1"
>
第二步:如若完整使用本系统,还需要管理员
</div>
<div
class=
"qrcode-refresh"
>
<div
class=
"config-form-panel"
>
<div
class=
"qrcode-status"
>
<div>
<i
class=
"el-icon-circle-check"
></i>
<div
class=
"config-box-h3"
style=
"padding-left: 30px"
>
通讯录接收事件服务配置
</div>
<div>
完成
</div>
<div
class=
"config-box-form"
>
</div>
<div
class=
"config-box-input"
>
<label>
*URL:
</label>
<input
type=
"text"
readonly
v-model=
"callbackUrl"
class=
"config-item-input"
/>
<span
@
click=
"cloneText(callbackUrl)"
>
复制
<img
src=
"@/assets/img/enterprise/clone.png"
/></span>
</div>
<div
class=
"config-box-input"
>
<label>
*Token:
</label>
<input
type=
"text"
readonly
v-model=
"token"
class=
"config-item-input"
/>
<span
@
click=
"cloneText(token)"
>
复制
<img
src=
"@/assets/img/enterprise/clone.png"
/></span>
</div>
<div
class=
"config-box-input"
>
<label>
*EncodingAESKey:
</label>
<input
type=
"text"
readonly
v-model=
"encodingAesKey"
class=
"config-item-input"
/>
<span
@
click=
"cloneText(encodingAesKey)"
>
复制
<img
src=
"@/assets/img/enterprise/clone.png"
/></span>
</div>
</div>
<div
class=
"config-box-link step-link"
>
</div>
<span
@
click=
"jumpUrl('http://qcimg01.glsx.net/upload/temporary/illustration.html')"
>
查看如何获取 >>
</span>
</div>
<el-button
<div
type=
"primary"
class=
"config-form-panel"
size=
"mini"
v-if=
"applicationList && applicationList.length > 0"
class=
"step-jump"
>
@
click=
"handleConfig"
<div>
>
立即配置
</el-button
<div
class=
"config-box-h3"
>
2.填写嘀加智慧门店秘钥secret
</div>
<div
class=
"config-box-form"
>
<div
class=
"config-box-input"
v-for=
"(item, index) in applicationList"
:key=
"index"
>
>
<label
v-if=
"item.appCode == 'DJQWGJ'"
>
*Secret:
</label>
<label
v-if=
"item.appCode == 'WBLXR'"
>
*客户联系Secret:
</label>
<label
v-if=
"item.appCode == 'TXLTBZS'"
>
*通讯录Secret:
</label>
<input
type=
"text"
:readonly=
"toStatus"
v-model=
"item.appSecret"
class=
"config-item-input"
/>
</div>
<div
class=
"config-box-link"
>
<span
@
click=
"
jumpUrl(
'http://qcimg01.glsx.net/upload/temporary/illustrate.html'
)
"
>
查看如何获取 >>
</span
>
</div>
</div>
</div>
<div
class=
"config-box-qrcode"
>
<div
class=
"config-box-h3"
>
如未成功,请加我微信帮您接入
</div>
<div
class=
"config-use-qrcode"
>
<img
src=
"@/assets/img/qrcode.png"
alt=
""
/>
</div>
</div>
<div
class=
"config-use-desc"
>
请联系超级管理员用企业微信扫码接入
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"config-box config-box-second"
v-if=
"active == 2"
>
<div
class=
"config-box"
v-if=
"active == 3"
>
<div
class=
"config-box-h1"
>
<div
class=
"config-box-h1"
>
第三步:配置完成后
</div>
如若完整使用本系统,还需要管理员完成以下授权配置。
<div
class=
"config-box-qrcode config-qrcode-finish"
>
</div>
<div
class=
"config-finish"
>
<div
class=
"config-form-panel"
>
<img
src=
"@/assets/img/enterprise/config.png"
/>
<div>
<div
class=
"config-box-h3"
>
通讯录接收事件服务配置
</div>
<div
class=
"config-box-form"
>
<div
class=
"config-box-input"
>
<label>
*URL:
</label>
<input
type=
"text"
readonly
v-model=
"callbackUrl"
class=
"config-item-input"
/>
<span
@
click=
"cloneText(callbackUrl)"
>
复制
<img
src=
"@/assets/img/enterprise/clone.png"
/></span>
</div>
<div
class=
"config-box-input"
>
<label>
*Token:
</label>
<input
type=
"text"
readonly
v-model=
"token"
class=
"config-item-input"
/>
<span
@
click=
"cloneText(token)"
>
复制
<img
src=
"@/assets/img/enterprise/clone.png"
/></span>
</div>
<div
class=
"config-box-input"
>
<label>
*EncodingAESKey:
</label>
<input
type=
"text"
readonly
v-model=
"encodingAesKey"
class=
"config-item-input"
/>
<span
@
click=
"cloneText(encodingAesKey)"
>
复制
<img
src=
"@/assets/img/enterprise/clone.png"
/></span>
</div>
<div
class=
"config-box-link step-link"
>
<span
@
click=
"
jumpUrl(
'http://qcimg01.glsx.net/upload/temporary/illustration.html'
)
"
>
查看如何获取 >>
</span
>
<el-button
type=
"primary"
size=
"mini"
class=
"step-jump"
@
click=
"handleConfig"
>
立即配置
</el-button
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"config-box-h4"
>
进入首页即可开始您的营销获客之旅。
</div>
<div
class=
"config-box config-box-third"
v-if=
"active == 3"
>
<div
style=
"margin-top: 15px"
>
<div
class=
"config-box-h1"
></div>
<div
<div
class=
"config-box-qrcode config-qrcode-finish"
>
class=
"step-jump-home"
<div
class=
"config-finish"
>
@
click=
"jumpHome"
<img
src=
"@/assets/img/enterprise/config.png"
/>
v-if=
"$globalState.session.merchantModel == 1"
</div>
>
前往首页>>
</div>
</div>
<div
<div
class=
"config-box-h4"
v-if=
"$globalState.session.merchantModel == 2"
>
class=
"step-jump-home"
进入首页即可开始您的营销获客之旅。
@
click=
"jumpStore"
</div>
v-if=
"$globalState.session.merchantModel == 2"
<div
class=
"config-box-h4"
v-if=
"$globalState.session.merchantModel == 1"
>
>
配置完成后,您需先创建您的门店,门店关联企微后,方可使用
去创建门店>>
</div>
<div
style=
"margin-top: 15px"
>
<div
class=
"step-jump-home"
@
click=
"jumpHome"
v-if=
"$globalState.session.merchantModel == 2"
>
前往首页>>
</div>
<div
class=
"step-jump-home"
@
click=
"jumpStore"
v-if=
"$globalState.session.merchantModel == 1"
>
去创建门店>>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -239,7 +292,7 @@
...
@@ -239,7 +292,7 @@
class=
"footer-panel"
class=
"footer-panel"
:style=
"
{
:style=
"
{
left: footerLeft + 'px',
left: footerLeft + 'px',
width: footerWidth
+ 'px'
width: footerWidth
+ 'px',
}"
}"
>
>
<el-button
type=
"primary"
v-show=
"active == 2"
@
click=
"handlePrev"
<el-button
type=
"primary"
v-show=
"active == 2"
@
click=
"handlePrev"
...
@@ -286,6 +339,7 @@ export default {
...
@@ -286,6 +339,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
boxHeight
:
0
,
boxHeight
:
0
,
toStatus
:
false
,
toStatus
:
false
,
token
:
""
,
token
:
""
,
...
@@ -366,12 +420,12 @@ export default {
...
@@ -366,12 +420,12 @@ export default {
},
},
handleNext
()
{
handleNext
()
{
if
(
this
.
active
==
1
)
{
if
(
this
.
active
==
1
)
{
if
(
this
.
statusQrcode
==
"SUCCESS"
)
{
if
(
this
.
statusQrcode
==
"SUCCESS"
)
{
this
.
nextStatus
?
this
.
active
=
2
:
this
.
active
=
3
;
this
.
nextStatus
?
(
this
.
active
=
2
)
:
(
this
.
active
=
3
)
;
}
else
{
}
else
{
this
.
handleGetSecret
();
this
.
handleGetSecret
();
}
}
return
return
;
}
}
if
(
this
.
active
==
2
)
{
if
(
this
.
active
==
2
)
{
if
(
this
.
statusQrcode
==
"SUCCESS"
)
{
if
(
this
.
statusQrcode
==
"SUCCESS"
)
{
...
@@ -392,7 +446,7 @@ export default {
...
@@ -392,7 +446,7 @@ export default {
}
}
},
},
handlePrev
()
{
handlePrev
()
{
if
(
this
.
active
==
3
)
{
if
(
this
.
active
==
3
)
{
this
.
nextStatus
=
true
;
this
.
nextStatus
=
true
;
}
}
this
.
active
--
;
this
.
active
--
;
...
@@ -412,16 +466,17 @@ export default {
...
@@ -412,16 +466,17 @@ export default {
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
checkStatus
=
res
.
status
;
if
(
res
.
status
==
"succ"
)
{
if
(
this
.
checkStatus
==
"succ"
)
{
clearInterval
(
this
.
timerQrcode
);
clearInterval
(
this
.
timerQrcode
);
this
.
getReportStatus
(
"succ"
);
this
.
getReportStatus
(
"succ"
);
this
.
getAccess
();
this
.
getAccess
();
}
else
if
(
this
.
checkStatus
==
"ing"
)
{
return
;
}
else
if
(
res
.
status
==
"ing"
)
{
this
.
getReportStatus
(
"scan"
);
this
.
getReportStatus
(
"scan"
);
}
else
{
}
else
{
this
.
getReportStatus
(
"new"
);
this
.
getReportStatus
(
"new"
);
}
}
this
.
checkStatus
=
res
.
status
;
}
else
{
}
else
{
this
.
checkStatus
=
"expired"
;
this
.
checkStatus
=
"expired"
;
this
.
getReportStatus
(
"expired"
);
this
.
getReportStatus
(
"expired"
);
...
@@ -440,13 +495,18 @@ export default {
...
@@ -440,13 +495,18 @@ export default {
getAccess
()
{
getAccess
()
{
this
.
$apis
.
ww
.
getAccess
({}).
then
((
res
)
=>
{
this
.
$apis
.
ww
.
getAccess
({}).
then
((
res
)
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
checkStatus
=
"succ"
;
this
.
getStatus
();
this
.
getStatus
();
}
else
{
this
.
checkStatus
=
"expired"
;
}
}
});
});
},
},
//检测二维码
//检测二维码
getStatus
()
{
getStatus
()
{
this
.
loading
=
true
;
this
.
$apis
.
ww
.
getStatus
({}).
then
((
res
)
=>
{
this
.
$apis
.
ww
.
getStatus
({}).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
statusQrcode
=
res
.
status
;
this
.
statusQrcode
=
res
.
status
;
this
.
applicationList
=
res
.
applicationList
;
this
.
applicationList
=
res
.
applicationList
;
if
(
this
.
applicationList
)
{
if
(
this
.
applicationList
)
{
...
@@ -516,6 +576,14 @@ export default {
...
@@ -516,6 +576,14 @@ export default {
.scrm-main
{
.scrm-main
{
//
position
:
relative
;
//
position
:
relative
;
}
}
.enterprise-step-box
{
padding-top
:
20px
;
width
:
80%
;
margin
:
0
auto
;
}
.el-steps
{
transform
:
translateX
(
-30px
);
}
.el-step.is-vertical
.el-step__head
{
.el-step.is-vertical
.el-step__head
{
width
:
32px
;
width
:
32px
;
}
}
...
@@ -525,14 +593,34 @@ export default {
...
@@ -525,14 +593,34 @@ export default {
.el-step__icon
{
.el-step__icon
{
width
:
32px
;
width
:
32px
;
height
:
32px
;
height
:
32px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.15
);
}
}
.el-step.is-vertical
.el-step__line
{
.el-step.is-horizontal
.el-step__line
{
left
:
16px
;
top
:
14px
;
left
:
100px
;
right
:
4%
;
}
.el-step__icon-inner
{
color
:
rgba
(
0
,
0
,
0
,
0.25
);
}
}
.el-step__head.is-finish
{
.el-step__head.is-finish
{
color
:
#ffffff
;
color
:
#ffffff
;
border-color
:
#5850ff
;
border-color
:
#5850ff
;
}
}
.el-step__desc
{
position
:
absolute
;
display
:
inline-block
;
top
:
-5px
;
left
:
36px
;
width
:
134px
;
color
:
rgba
(
0
,
0
,
0
,
0.45
);
}
.el-step__head.is-finish
.el-step__icon-inner
{
color
:
#ffffff
;
}
.el-step__head.is-finish
.el-step__line
{
background
:
#5850ff
;
}
.el-step__head.is-finish
.el-step__icon.is-text
{
.el-step__head.is-finish
.el-step__icon.is-text
{
background-color
:
#5850ff
;
background-color
:
#5850ff
;
}
}
...
@@ -577,7 +665,7 @@ export default {
...
@@ -577,7 +665,7 @@ export default {
}
}
.step-panel
{
.step-panel
{
display
:
flex
;
display
:
flex
;
margin-bottom
:
60
px
;
margin-bottom
:
55
px
;
.step-left
{
.step-left
{
width
:
220px
;
width
:
220px
;
padding
:
40px
20px
;
padding
:
40px
20px
;
...
@@ -590,9 +678,19 @@ export default {
...
@@ -590,9 +678,19 @@ export default {
}
}
.step-right
{
.step-right
{
flex
:
1
;
flex
:
1
;
margin-left
:
20px
;
.config-box
{
.config-box
{
padding
:
40px
;
padding
:
40px
0px
;
&.config-box-second
{
width
:
600px
;
margin
:
0
auto
;
.config-form-panel
{
justify-content
:
center
;
}
}
&
.config-box-third
{
text-align
:
center
;
padding
:
0px
;
}
&
-h1
{
&
-h1
{
height
:
25px
;
height
:
25px
;
font-size
:
18px
;
font-size
:
18px
;
...
@@ -683,6 +781,9 @@ export default {
...
@@ -683,6 +781,9 @@ export default {
font-size
:
32px
;
font-size
:
32px
;
color
:
#5850ff
;
color
:
#5850ff
;
}
}
&
.qrcode-status-ing
{
top
:
42px
;
}
}
}
}
}
.config-use-desc
{
.config-use-desc
{
...
@@ -699,7 +800,7 @@ export default {
...
@@ -699,7 +800,7 @@ export default {
}
}
.config-box-form
{
.config-box-form
{
.config-box-input
{
.config-box-input
{
width
:
4
00px
;
width
:
6
00px
;
height
:
32px
;
height
:
32px
;
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
2px
;
border-radius
:
2px
;
...
@@ -742,7 +843,7 @@ export default {
...
@@ -742,7 +843,7 @@ export default {
}
}
}
}
.config-box-link
{
.config-box-link
{
width
:
4
10px
;
width
:
6
10px
;
font-size
:
12px
;
font-size
:
12px
;
text-align
:
right
;
text-align
:
right
;
font-weight
:
400
;
font-weight
:
400
;
...
...
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
)
=>
{
this
.
listEntFollowerType
();
if
(
res
)
{
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,25 +2,34 @@
...
@@ -2,25 +2,34 @@
<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
height: headHeight + 'px',
class=
"header-panel"
'font-size': headHeight / 5+'px'}">
:style=
"
{
height: headHeight + '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>
<div
class=
"summary-time"
>
<div
class=
"summary-time"
>
<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,
winth
:
100px
;
.el-date-editor.el-input__inner
{
line-height
:
32px
;
winth
:
100px
;
height
:
32px
;
line-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