Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e86e2b4d
authored
Jan 11, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.2' of
http://192.168.3.233:8090/saas/scrm-micro-custom
into v1.0.2
2 parents
cef7083e
2cc3f7a5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
37 deletions
package.json
src/api/modules/clientManage.js
src/views/clientGroupManage/index.vue
src/views/clientManage/index.vue
src/views/tagsManage/index.vue
package.json
View file @
e86e2b4
...
...
@@ -15,7 +15,7 @@
"echarts"
:
"^5.2.0"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.3.
3
"
,
"glsx-components"
:
"^1.3.
4
"
,
"glsx-table"
:
"^1.1.0"
,
"jquery"
:
"^3.6.0"
,
"sha1"
:
"^1.1.1"
,
...
...
src/api/modules/clientManage.js
View file @
e86e2b4
...
...
@@ -107,7 +107,7 @@
// entmicro.api.customer.list.export
//客户信息管理导出
export
function
clientManageExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.
list.export`
params
.
method
=
`entmicro.api.customer.
customerListExport`
return
http2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
...
...
src/views/clientGroupManage/index.vue
View file @
e86e2b4
...
...
@@ -141,6 +141,9 @@ export default {
{
label
:
'创建方式'
,
prop
:
'creationMethod'
,
formatter
:
cellValue
=>
{
return
cellValue
.
creationMethod
==
1
?
'手动拉群'
:
cellValue
.
creationMethod
==
2
?
"一客一群"
:
""
},
minWidth
:
140
},
{
...
...
src/views/clientManage/index.vue
View file @
e86e2b4
...
...
@@ -80,7 +80,7 @@
<
/template
>
<
script
>
import
{
getTableList
,
getDictionaryFun
,
syncCustomer
,
clientManageExportApi
}
from
'@/api/modules/clientManage'
import
{
getTableList
,
getDictionaryFun
,
syncCustomer
,
clientManageExportApi
}
from
'@/api/modules/clientManage'
import
url
from
'@/assets/clientDataOverview/nodata.png'
export
default
{
name
:
'clientManage'
,
...
...
@@ -299,7 +299,7 @@ export default {
//
}
this
.
$refs
.
clientManage
.
data
.
length
?
(
this
.
$refs
.
clientManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientManage
.
setTableHeightFun
()
}
,
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
params
.
daterange
)
{
params
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
...
...
@@ -360,7 +360,7 @@ export default {
return
curElement
.
label
}
,
//导出
handleExport
(){
handleExport
()
{
var
params
=
this
.
getParams
()
clientManageExportApi
(
params
).
then
(
res
=>
{
this
.
$Utils
.
exportFn
(
res
)
...
...
@@ -460,6 +460,9 @@ export default {
&-
tag
{
display
:
inline
-
block
;
}
// /deep/ .entmicro-tag + .entmicro-tag
{
// margin-bottom: 4px;
//
}
&-
hover
{
max
-
height
:
214
px
;
overflow
:
auto
;
...
...
@@ -470,6 +473,7 @@ export default {
}
}
}
.
el
-
tag
{
// margin-right: 10px;
max
-
width
:
110
px
;
...
...
src/views/tagsManage/index.vue
View file @
e86e2b4
...
...
@@ -8,7 +8,7 @@
<span>
共有
{{
numberObj
.
groupCount
||
0
}}
个标签组
<!-- v-if="!(merchantModel == 1 && accountLevel == 4)" -->
<template
>
,
{{
numberObj
.
bizLabelCount
||
0
}}
个企业标签
</
template
>
<template>
,
{{
numberObj
.
bizLabelCount
||
0
}}
个企业标签
</
template
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
,
{{
numberObj
.
rcLabelCount
||
0
}}
个自店标签
</
template
>
</span>
<span
class=
"iconPanelWrap"
v-if=
"!isFirstShow"
>
...
...
@@ -22,7 +22,7 @@
</span>
</span>
<div
class=
"initPanel"
v-if=
"isFirstShow"
>
<
template
v-if=
"!(merchantModel == 1 && accountLevel == 4)"
>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
</
template
>
<
template
>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
</
template
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;
</
template
>
系统标签为通过大数据算法规则生成的标签
<img
src=
"@/assets/tagsManage/Shape.png"
alt=
""
/>
...
...
@@ -80,9 +80,9 @@
</el-select>
<!-- id="tagTipMsgRef" -->
<span
class=
"tagTipMsg"
v-if=
"tagDialogTitle == '添加标签组' && !tagForm.initTagsGroup"
>
<
template
v-if=
"!(merchantModel == 1 &&
accountLevel == 4
)"
>
企业标签
</
template
>
<
template
v-if=
"!(merchantModel == 1 &&
(accountLevel == 2 || accountLevel == 3 || accountLevel==4)
)"
>
企业标签
</
template
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
<template
v-if=
"!(merchantModel == 1 &&
accountLevel == 4
)"
>
和
</
template
>
<template
v-if=
"!(merchantModel == 1 &&
(accountLevel == 2 || accountLevel == 3 || accountLevel==4)
)"
>
和
</
template
>
自店标签分别
</template>
最多3000个
...
...
@@ -110,7 +110,7 @@
<div
class=
"tagsWrap"
v-if=
"tagDialogTitle == '编辑标签组'"
>
<span
class=
"tag"
:class=
"{ inputWrapShow: item.inputVisible }"
v-for=
"item in editTagList"
:key=
"item.id"
>
<!-- maxlength="30" show-word-limit -->
<el-input
class=
"input-new-tag"
v-if=
"item.inputVisible"
v-model
.
trim=
"item.name"
ref=
"saveTagInput"
size=
"small"
@
blur=
"item.name
=handleInputConfirm(item.name, item.id)"
@
keyup
.
enter
.
native=
"item.name=
handleInputConfirm(item.name, item.id)"
></el-input>
<el-input
class=
"input-new-tag"
v-if=
"item.inputVisible"
v-model
.
trim=
"item.name"
ref=
"saveTagInput"
size=
"small"
@
blur=
"item.name
= handleInputConfirm(item.name, item.id)"
@
keyup
.
enter
.
native=
"item.name =
handleInputConfirm(item.name, item.id)"
></el-input>
<el-tooltip
class=
"item"
:content=
"item.name"
placement=
"top"
>
<span
class=
"ellipsis-1"
v-if=
"!item.inputVisible"
>
{{ item.name }}
</span>
</el-tooltip>
...
...
@@ -120,7 +120,7 @@
<div
class=
"row-tag"
v-for=
"(item, index) in tagForm.tagsList"
:key=
"index"
>
<!-- :onkeyup="(item.name = item.name.replace(/\s+/g, ''))" maxlength="30" show-word-limit @input="checkInputContent"-->
<el-input
v-model
.
trim=
"item.name"
placeholder=
"添加标签名称(至少添加一个标签)"
@
keyup
.
native=
"item.name = checkInputContent(item.name)"
></el-input>
<el-input
v-model
.
trim=
"item.name"
placeholder=
"添加标签名称(至少添加一个标签)"
@
keyup
.
native=
"item.name = checkInputContent(item.name)"
></el-input>
<span
class=
"el-icon-circle-close"
@
click=
"deleteRow(index)"
></span>
</div>
<!-- 需要后台告诉已经创建多少个标签了 -->
...
...
@@ -330,9 +330,9 @@ export default {
// if (this.merchantModel == 1) {
// if (!(this.accountLevel == 1 && this.userType == 1)) this.tagsGroupList.splice(0, 1) //只能创建自店标签
// }
//1.0.1集团下的门店只能创建自店标签
//1.0.1集团下的
省代、市代,
门店只能创建自店标签
if
(
this
.
merchantModel
==
1
)
{
if
(
this
.
accountLevel
==
4
)
{
if
(
this
.
accountLevel
==
2
||
this
.
accountLevel
==
3
||
this
.
accountLevel
==
4
)
{
this
.
tagsGroupList
.
splice
(
0
,
1
)
//只能创建自店标签
// this.tagsPartFormList[0].options.splice(0, 1)
}
...
...
@@ -375,27 +375,44 @@ export default {
return
list
.
slice
(
0
,
9
)
},
checkInputContent
(
e
)
{
let
str
=
e
let
str
=
e
var
len
=
0
var
singleNum
=
0
var
doubleNum
=
0
var
singleNum
=
0
var
doubleNum
=
0
for
(
var
i
=
0
;
i
<
e
.
length
;
i
++
)
{
var
c
=
e
.
charCodeAt
(
i
)
//单字节加1
if
((
c
>=
0x0001
&&
c
<=
0x007e
)
||
(
0xff60
<=
c
&&
c
<=
0xff9f
))
{
len
++
singleNum
++
}
else
{
len
+=
2
doubleNum
++
}
}
if
(
len
>
30
)
{
this
.
$message
.
error
(
'字数已达上限'
)
return
str
.
substr
(
0
,
15
)
var
subLen
=
0
var
subLen1
=
0
var
subLen2
=
0
for
(
var
v
=
0
;
v
<
e
.
length
;
v
++
)
{
var
ch
=
e
.
charCodeAt
(
v
)
//单字节
if
((
ch
>=
0x0001
&&
ch
<=
0x007e
)
||
(
0xff60
<=
ch
&&
ch
<=
0xff9f
))
{
singleNum
+=
1
subLen1
++
}
else
{
doubleNum
+=
2
subLen2
++
}
if
(
singleNum
+
doubleNum
>=
30
)
{
subLen
=
subLen1
+
subLen2
console
.
log
(
subLen1
,
subLen2
,
subLen
)
console
.
log
(
singleNum
,
singleNum
,
'单双数'
)
break
}
}
return
str
.
substr
(
0
,
subLen
)
}
// console.log(e, '输入框的值')
//确保每个输入框的内容不和已存在的编辑标签相同
let
isHasSameTag
=
this
.
editTagList
.
some
(
ele
=>
ele
.
name
==
e
)
if
(
isHasSameTag
)
{
...
...
@@ -407,7 +424,7 @@ export default {
isShowEditBtn
(
row
)
{
//集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店
//单店模式下,仅门店和员工可以编辑
if
(
row
.
labelType
==
'自店标签'
&&
!
(
this
.
merchantModel
==
1
&&
this
.
accountLevel
==
4
))
{
if
(
row
.
labelType
==
'自店标签'
&&
!
(
this
.
merchantModel
==
1
&&
(
this
.
accountLevel
==
2
||
this
.
accountLevel
==
3
||
this
.
accountLevel
==
4
)
))
{
return
false
}
if
(
this
.
merchantModel
==
1
)
{
...
...
@@ -461,12 +478,12 @@ export default {
},
//重置表格
resetTable
()
{
this
.
isReload
=
false
//
this.isReload = false
this
.
searchForm
=
{
'labelTreeReq.shopId'
:
this
.
merchantId
,
'labelTreeReq.edition'
:
this
.
merchantModel
}
//
this.$refs.tagsManage.refreshTable()
this
.
$nextTick
(()
=>
{
this
.
isReload
=
true
})
this
.
$refs
.
tagsManage
.
refreshTable
()
//
this.$nextTick(() => {
//
this.isReload = true
//
})
},
btnClick
(
pType
,
rowData
)
{
...
...
@@ -476,7 +493,7 @@ export default {
this
.
tagDialogTitle
=
'添加标签组'
this
.
tagForm
.
tagsForm
=
''
this
.
tagForm
.
initTagsGroup
=
1
//默认改成,企业标签
if
(
this
.
merchantModel
==
1
&&
this
.
accountLevel
==
4
)
{
if
(
this
.
merchantModel
==
1
&&
(
this
.
accountLevel
==
2
||
this
.
accountLevel
==
3
||
this
.
accountLevel
==
4
)
)
{
this
.
tagForm
.
initTagsGroup
=
2
}
...
...
@@ -566,7 +583,7 @@ export default {
if
(
!
this
.
tagVisible
&&
this
.
$refs
.
tagForm
)
{
this
.
$refs
.
tagForm
.
$children
[
0
].
resetFields
()
this
.
tagForm
.
initTagsGroup
=
1
if
(
this
.
merchantModel
==
1
&&
this
.
accountLevel
==
4
)
{
if
(
this
.
merchantModel
==
1
&&
(
this
.
accountLevel
==
2
||
this
.
accountLevel
==
3
||
this
.
accountLevel
==
4
)
)
{
this
.
tagForm
.
initTagsGroup
=
2
}
this
.
tagForm
.
tagsName
=
''
...
...
@@ -598,7 +615,9 @@ export default {
return
}
if
(
res
.
data
.
code
==
0
)
{
if
(
this
.
tagForm
.
tagsList
.
length
>
0
)
{
this
.
$message
.
success
(
'添加成功'
)
}
this
.
handleClose
()
}
else
if
(
res
.
data
.
code
==
1
)
{
this
.
$message
.
error
(
`
${
res
.
data
.
message
}
`
)
...
...
@@ -677,23 +696,39 @@ export default {
})
let
str
=
inputValue
var
len
=
0
var
singleNum
=
0
var
doubleNum
=
0
for
(
var
i
=
0
;
i
<
str
.
length
;
i
++
)
{
var
c
=
str
.
charCodeAt
(
i
)
var
singleNum
=
0
var
doubleNum
=
0
for
(
var
i
=
0
;
i
<
inputValue
.
length
;
i
++
)
{
var
c
=
inputValue
.
charCodeAt
(
i
)
//单字节加1
if
((
c
>=
0x0001
&&
c
<=
0x007e
)
||
(
0xff60
<=
c
&&
c
<=
0xff9f
))
{
len
++
singleNum
++
}
else
{
len
+=
2
doubleNum
++
}
}
if
(
len
>
30
)
{
this
.
$message
.
error
(
'字数已达上限'
)
return
str
.
substr
(
0
,
15
)
var
subLen
=
0
var
subLen1
=
0
var
subLen2
=
0
for
(
var
v
=
0
;
v
<
inputValue
.
length
;
v
++
)
{
var
ch
=
inputValue
.
charCodeAt
(
v
)
if
((
ch
>=
0x0001
&&
ch
<=
0x007e
)
||
(
0xff60
<=
ch
&&
ch
<=
0xff9f
))
{
singleNum
+=
1
subLen1
++
}
else
{
doubleNum
+=
2
subLen2
++
}
if
(
singleNum
+
doubleNum
>=
30
)
{
subLen
=
subLen1
+
subLen2
// console.log(subLen1, subLen2, subLen)
// console.log(singleNum, singleNum, '单双数')
break
}
}
return
str
.
substr
(
0
,
subLen
)
}
return
str
...
...
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