Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 89c41ee8
authored
Jun 15, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v2.4.0' into 'v2.5.0'
V2.4.0 to v2.5.0 See merge request
!189
2 parents
2e79f94b
23e00ed6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
165 additions
and
87 deletions
src/components/selectTag/index.vue
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/addCustomerGroup.vue
src/views/customerTransform/components/selectCrowd.vue
src/views/customerTransform/detailCustomer.vue
src/views/productGroup/editProduct.vue
src/components/selectTag/index.vue
View file @
89c41ee
<
template
>
<div
class=
"tag-main"
>
<div
class=
"tag-main
select-tag
"
>
<el-dialog
title=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"70%"
:before-close=
"handleClose"
>
<div
class=
"tag-panel"
>
<div
class=
"tag-panel-select"
>
...
...
@@ -26,14 +26,21 @@
<div
class=
"tag-select-box"
>
<div
class=
"tag-box-header"
>
标签名称(
{{
selectNum
}}
项)
</div>
<div
class=
"tag-selected-box"
:style=
"
{ height: heightBox + 'px' }">
<template
v-for=
"item in labelTreeRetSelect"
>
<template
v-for=
"(tag, idx) in item.tagChecked"
>
<el-tag
:title=
"tag.name"
type=
"info"
class=
"customer-tag-selected-item"
:key=
"idx"
v-if=
"tag"
closable
:disable-transitions=
"false"
@
close=
"remove(item, idx)"
>
<!--
{{
tag
.
name
}}
-->
{{
tag
.
name
.
length
>
11
?
tag
.
name
.
slice
(
0
,
11
)
+
'...'
:
tag
.
name
}}
</el-tag>
</
template
>
</template>
<div
v-show=
"!!selectNum"
class=
"tag-line-and"
:style=
"
{ height: heightBox + 'px' }">
<p
class=
"tag-line"
></p>
<p
class=
"tag-and"
:style=
"
{ top: heightBox / 2 - 20 + 'px' }">且
</p>
</div>
<div
class=
"label-box"
>
<div
v-for=
"(item, index) in labelTreeRetSelect"
:key=
"index"
>
<p
class=
"tag-selected-label"
v-show=
"item.tagChecked.length"
>
{{
item
.
labelGroup
.
name
}}
:
</p>
<span
v-for=
"(tag, idx) in item.tagChecked"
:key=
"idx"
>
<span
class=
"tag-txt"
v-show=
"idx != 0"
>
或
</span>
<el-tag
:title=
"tag.name"
type=
"info"
class=
"customer-tag-selected-item"
:key=
"idx"
v-if=
"tag"
closable
:disable-transitions=
"false"
@
close=
"remove(item, idx)"
>
{{
tag
.
name
.
length
>
11
?
tag
.
name
.
slice
(
0
,
11
)
+
'...'
:
tag
.
name
}}
</el-tag>
</span>
</div>
</div>
</div>
</div>
</div>
...
...
@@ -274,6 +281,44 @@ export default {
text-decoration
:
underline
;
cursor
:
pointer
;
}
.select-tag
{
.label-box
{
margin-left
:
42px
;
height
:
100%
;
overflow-y
:
scroll
;
}
.tag-selected-label
{
margin
:
9px
0
;
}
.tag-line-and
{
position
:
relative
;
}
.tag-line
{
position
:
absolute
;
left
:
17px
;
border
:
1px
solid
rgba
(
88
,
80
,
255
,
1
);
border-width
:
0
0
0
1px
;
height
:
100%
;
}
.tag-and
{
position
:
absolute
;
background
:
#efeeff
;
border
:
1px
solid
rgba
(
88
,
80
,
255
,
1
);
border-radius
:
4px
;
padding
:
10px
;
z-index
:
20
;
}
.tag-txt
{
padding
:
0
8px
;
}
.customer-tag-selected-item
{
background
:
#f4f6fc
!important
;
border
:
1px
solid
rgba
(
232
,
232
,
234
,
1
)
!important
;
border-radius
:
4px
;
height
:
26px
;
line-height
:
26px
;
}
}
.tag-panel
{
display
:
flex
;
.tag-panel-select
{
...
...
@@ -360,5 +405,6 @@ export default {
}
.tag-selected-box
{
min-height
:
200px
;
display
:
flex
;
}
</
style
>
src/views/customerTransform/addCustomer.vue
View file @
89c41ee
...
...
@@ -17,11 +17,10 @@
已选人数:
<span>
{{
basicForm
.
userList
?
basicForm
.
userList
.
length
:
0
}}
</span>
</span>
<
span
v-show=
"isSelectCrowd"
class=
"tips-text"
>
锁定人群无法添加其他账号。
</span
>
<
div
v-show=
"isSelectCrowd"
class=
"tips-text"
>
锁定人群无法添加其他账号
</div
>
<div
class=
"sale-select"
v-show=
"basicForm.userList && basicForm.userList.length != 0"
>
<div
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<el-tag
effect=
"plain"
type=
"info"
v-for=
"(tag, idx) in basicForm.userList"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"remove(tag, idx)"
>
<el-tag
effect=
"plain"
type=
"info"
v-for=
"(tag, idx) in basicForm.userList"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"remove(tag, idx)"
>
<i
class=
"el-icon-user-solid"
></i>
{{
tag
.
staffName
}}
</el-tag>
...
...
@@ -57,16 +56,12 @@
</el-radio-group>
</el-form-item>
<el-form-item
label=
"所在群聊"
>
<el-select
v-model=
"basicForm.condition.chat"
@
change=
"valueChange"
@
focus=
"groupFocus"
:size=
"size"
value-key=
"id"
multiple
collapse-tags
placeholder=
"请选择"
>
<el-option
v-for=
"item in groupList"
:key=
"item.id"
:label=
"item.groupName"
:value=
"item"
>
</el-option>
<el-select
v-model=
"basicForm.condition.chat"
@
change=
"valueChange"
@
focus=
"groupFocus"
:size=
"size"
value-key=
"id"
multiple
collapse-tags
placeholder=
"请选择"
>
<el-option
v-for=
"item in groupList"
:key=
"item.id"
:label=
"item.groupName"
:value=
"item"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"添加客户时间"
>
<el-date-picker
v-model=
"basicForm.condition.date"
@
change=
"valueChange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:size=
"size"
style=
"width: 320px"
></el-date-picker>
<el-date-picker
v-model=
"basicForm.condition.date"
@
change=
"valueChange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:size=
"size"
style=
"width: 320px"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"标签筛选"
>
<el-button
size=
"small"
@
click=
"openLabel"
>
...
...
@@ -75,16 +70,12 @@
</el-button>
<div
v-show=
"tagging.length != 0"
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<span
v-for=
"(tag, idx) in tagging"
:key=
"idx"
>
<el-tag
v-for=
"(tagItem, idx1) in tag.labelList"
:key=
"idx1"
:size=
"size"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"removeTag(tag, idx1, idx)"
>
{{
tagItem
.
name
}}
</el-tag>
<el-tag
v-for=
"(tagItem, idx1) in tag.labelList"
:key=
"idx1"
:size=
"size"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"removeTag(tag, idx1, idx)"
>
{{
tagItem
.
name
}}
</el-tag>
</span>
</div>
<div
class=
"sale-select"
v-show=
"basicForm.condition.labelList"
>
<div
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<el-tag
v-for=
"(tag, idx) in basicForm.condition.labelList"
:key=
"idx"
:size=
"size"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"remove(tag)"
>
{{
tag
.
staffName
}}
</el-tag>
<el-tag
v-for=
"(tag, idx) in basicForm.condition.labelList"
:key=
"idx"
:size=
"size"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"remove(tag)"
>
{{
tag
.
staffName
}}
</el-tag>
<el-input
size=
"small"
style=
"outline: none; border: none"
></el-input>
</div>
</div>
...
...
@@ -93,17 +84,16 @@
</div>
</div>
<div
v-show=
"basicForm.selectType == 3"
style=
"line-height: 32px; padding-bottom: 10px"
>
<el-button
:size=
"size"
icon=
"el-icon-plus"
@
click=
"selectCrowd"
>
{{
isSelectCrowd
?
'继续选择'
:
'选择人群'
}}
</el-button>
<el-button
:size=
"size"
icon=
"el-icon-plus"
@
click=
"selectCrowd"
>
{{
isSelectCrowd
?
'继续选择'
:
'选择人群'
}}
</el-button>
<div
class=
"sale-select"
v-show=
"basicForm.crowdList && basicForm.crowdList.length != 0"
>
<div
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<el-tag
effect=
"plain"
type=
"info"
v-for=
"(t, i) in basicForm.crowdList"
:key=
"i"
closable
:disable-transitions=
"false"
@
close=
"removeCrowd(t, i)"
>
<el-tag
effect=
"plain"
type=
"info"
v-for=
"(t, i) in basicForm.crowdList"
:key=
"i"
closable
:disable-transitions=
"false"
@
close=
"removeCrowd(t, i)"
>
{{
t
.
crowdName
}}
</el-tag>
</div>
</div>
</div>
<div
v-show=
"basicForm.selectType == 3"
class=
"crowd-tips"
>
群标签存在重复客户,群发人数会自动去重。若一个客户有多个成员添加,可手动在群发账号中删除多余成员。
</div>
<div
class=
"filter-footer"
>
<!--
<span>
将消息发送给客户符合条件的客户
</span>
-->
<div
class=
"filter-number"
>
...
...
@@ -130,11 +120,9 @@
<el-radio
:label=
"2"
>
定时发送
</el-radio>
</el-radio-group>
<div
v-show=
"basicForm.sendType == 2"
class=
"date-picker"
>
<el-date-picker
v-model=
"basicForm.sendTime"
size=
"small"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"选择日期"
:picker-options=
"dateOptions"
@
change=
"changeValue"
></el-date-picker>
<el-date-picker
v-model=
"basicForm.sendTime"
size=
"small"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"选择日期"
:picker-options=
"dateOptions"
@
change=
"changeValue"
></el-date-picker>
-
<el-time-picker
v-model=
"basicForm.sendDate"
size=
"small"
value-format=
"HH:mm:ss"
placeholder=
"选择时间"
:picker-options=
"timeOptions"
></el-time-picker>
<el-time-picker
v-model=
"basicForm.sendDate"
size=
"small"
value-format=
"HH:mm:ss"
placeholder=
"选择时间"
:picker-options=
"timeOptions"
></el-time-picker>
</div>
</el-form-item>
</el-form>
...
...
@@ -145,16 +133,18 @@
</div>
</div>
</div>
<glsx-dialog
:title=
"'选择成员'"
:width=
"'1142px'"
:isVisible=
"membersVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"membersVisible = !membersVisible"
>
<glsx-dialog
:title=
"'选择成员'"
:width=
"'1142px'"
:isVisible=
"membersVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"membersVisible = !membersVisible"
>
<!--
<SelectMembers
islord=
"false"
:selectData=
"selectData"
ref=
"membersForm"
></SelectMembers>
-->
<SelectMember
ref=
"membersForm"
v-if=
"membersVisible"
:selectData=
"selectData"
></SelectMember>
</glsx-dialog>
</div>
<div
class=
"footer-panel"
:style=
"
{
left: footerLeft + 'px',
width: footerWidth + 'px'
}">
<div
class=
"footer-panel"
:style=
"
{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button
type=
"primary"
v-loading=
"addLoading"
@
click=
"handleSubmit"
>
确定
</el-button>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
</div>
...
...
@@ -354,7 +344,7 @@ export default {
.
then
(()
=>
{
this
.
$router
.
push
(
'/customerTransform/index'
)
})
.
catch
(()
=>
{
})
.
catch
(()
=>
{})
}
else
{
this
.
$router
.
push
(
'/customerTransform/index'
)
}
...
...
@@ -414,6 +404,12 @@ export default {
this
.
attachmentText
=
'请输入群发内容'
return
}
if
(
this
.
basicForm
.
selectType
==
3
&&
!
this
.
basicForm
.
crowdList
.
length
)
{
return
this
.
$message
({
type
:
'error'
,
message
:
'请选择人群'
})
}
this
.
$refs
.
groupForm
.
validate
(
async
v
=>
{
if
(
v
)
{
const
params
=
this
.
getSiftMembers
()
...
...
@@ -432,7 +428,7 @@ export default {
if
(
item
.
attType
==
1
)
{
const
list
=
emoji
.
flat
(
Infinity
)
const
cutImg
=
item
.
attContent
.
replaceAll
(
'<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/'
,
''
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
return
`[
${
s
}
]`
})
...
...
@@ -584,7 +580,7 @@ export default {
if
(
this
.
basicForm
.
userList
&&
this
.
basicForm
.
userList
.
length
)
{
params
.
userList
=
this
.
basicForm
.
userList
.
map
(
item
=>
{
return
{
staffId
:
item
.
staffId
,
staffId
:
item
.
staffId
// staffName: item.staffName
}
})
...
...
@@ -643,13 +639,17 @@ export default {
this
.
basicForm
.
condition
=
{
sex
:
''
}
this
.
tagging
=
[]
this
.
taggingList
=
[]
},
// 发送时间change事件
changeValue
(
v
)
{
const
date
=
new
Date
(
v
).
getTime
()
if
(
date
<
Date
.
now
())
{
this
.
timeOptions
=
{
selectableRange
:
`
${
dayjs
().
add
(
1
,
'm'
).
format
(
'HH:mm'
)}
:00 - 23:59:59`
selectableRange
:
`
${
dayjs
()
.
add
(
1
,
'm'
)
.
format
(
'HH:mm'
)}
:00 - 23:59:59`
}
}
else
{
this
.
timeOptions
=
{
...
...
@@ -716,7 +716,8 @@ export default {
justify-content
:
space-between
;
.info-content
{
width
:
calc
(
100%
-
360px
);
//
width
:
calc
(
100%
-
360px
);
width
:
50%
;
.filter-box
{
//
margin-left
:
120px
;
...
...
@@ -725,7 +726,7 @@ export default {
background-color
:
#f7f7f7
;
.filter-memeber
{
padding
:
20px
0
;
padding
:
20px
20px
20px
0
;
//
border-bottom
:
1px
solid
#dcdfe6
;
.el-form
{
...
...
@@ -801,6 +802,7 @@ export default {
.sale-select
{
display
:
flex
;
align-items
:
center
;
//
width
:
50%
;
}
.input-tag-wrapper
{
...
...
@@ -819,7 +821,7 @@ export default {
padding
:
5px
5px
0px
5px
;
flex-wrap
:
wrap
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
//
width
:
450px
;
//
width
:
50%
;
display
:
flex
;
align-items
:
center
;
margin-top
:
6px
;
...
...
@@ -887,8 +889,16 @@ export default {
}
.tips-text
{
color
:
12px
;
font-size
:
12px
;
color
:
#f56c6c
;
margin-left
:
20px
;
//
margin-left
:
20px
;
line-height
:
20px
;
padding-bottom
:
4px
;
}
.crowd-tips
{
color
:
#999999
;
font-size
:
12px
;
line-height
:
16px
;
padding-bottom
:
8px
;
}
</
style
>
src/views/customerTransform/addCustomerGroup.vue
View file @
89c41ee
...
...
@@ -302,7 +302,7 @@ export default {
if
(
item
.
attType
==
1
)
{
const
list
=
emoji
.
flat
(
Infinity
)
const
cutImg
=
item
.
attContent
.
replaceAll
(
'<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/'
,
''
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
return
`[
${
s
}
]`
})
...
...
@@ -354,7 +354,9 @@ export default {
const
date
=
new
Date
(
v
).
getTime
()
if
(
date
<
Date
.
now
())
{
this
.
timeOptions
=
{
selectableRange
:
`
${
dayjs
().
add
(
1
,
'm'
).
format
(
'HH:mm'
)}
:00 - 23:59:59`
selectableRange
:
`
${
dayjs
()
.
add
(
1
,
'm'
)
.
format
(
'HH:mm'
)}
:00 - 23:59:59`
}
}
else
{
this
.
timeOptions
=
{
...
...
@@ -386,7 +388,8 @@ export default {
align-items
:
flex-end
;
justify-content
:
space-between
;
.info-content
{
width
:
calc
(
100%
-
360px
);
//
width
:
calc
(
100%
-
360px
);
width
:
50%
;
//
flex
:
1
;
}
}
...
...
src/views/customerTransform/components/selectCrowd.vue
View file @
89c41ee
...
...
@@ -3,11 +3,11 @@
* @Author: huyue
* @Date: 2022-05-24 18:18:53
* @LastEditors: huyue
* @LastEditTime: 2022-06-
09 17:55:40
* @LastEditTime: 2022-06-
13 16:51:03
-->
<
template
>
<div>
<el-dialog
:title=
"'人群筛选'"
:visible
.
sync=
"crowdVisible"
>
<el-dialog
:title=
"'人群筛选'"
:
width=
"'1080px'"
:
visible
.
sync=
"crowdVisible"
>
<div
class=
"member-wrapper"
>
<div
class=
"member-left"
>
<div
class=
"member-title"
>
...
...
@@ -16,17 +16,14 @@
<div
class=
"member-content"
>
<el-form
:inline=
"true"
class=
"member-form"
:model=
"searchForm"
@
submit
.
native
.
prevent
>
<el-form-item
label=
"人群名称"
style=
"margin-bottom: 0"
size=
"small"
>
<el-input
:size=
"size"
v-model
.
trim=
"searchForm.keyword"
@
keyup
.
enter
.
native=
"search"
clearable
placeholder=
"请输入关键字搜索"
></el-input>
<el-input
:size=
"size"
v-model
.
trim=
"searchForm.keyword"
@
keyup
.
enter
.
native=
"search"
clearable
placeholder=
"请输入关键字搜索"
></el-input>
</el-form-item>
<el-form-item
label
style=
"margin-bottom: 0;margin-left:10px"
size=
"small"
>
<el-button
type=
"primary"
:size=
"size"
@
click=
"search"
>
搜索
</el-button>
</el-form-item>
</el-form>
<div
class=
"table-content"
>
<GLTable
v-loading=
"loading"
ref=
"crowdTable"
:tableData=
"tableData"
@
refreshTable=
"search"
:tableTotal=
"tableTotal"
:layout=
"layout"
:tableParams=
"crowdTableParams"
:hasNum=
"true"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
selectionTable=
"selectionTable"
@
row-click=
"rowClick"
></GLTable>
<GLTable
v-loading=
"loading"
ref=
"crowdTable"
:tableData=
"tableData"
@
refreshTable=
"search"
:tableTotal=
"tableTotal"
:layout=
"layout"
:tableParams=
"crowdTableParams"
:hasNum=
"true"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
selectionTable=
"selectionTable"
@
row-click=
"rowClick"
></GLTable>
</div>
</div>
</div>
...
...
@@ -35,8 +32,7 @@
<div
class=
"member-name"
>
人群(
{{
innerTags
.
length
}}
项)
</div>
<div
class=
"input-tag-wrapper"
>
<div
class=
"tag-box"
>
<el-tag
v-for=
"(tag, idx) in innerTags"
:key=
"idx"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"remove(tag)"
>
<el-tag
v-for=
"(tag, idx) in innerTags"
:key=
"idx"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"remove(tag)"
>
{{
tag
.
crowdName
}}
</el-tag>
</div>
...
...
@@ -44,8 +40,8 @@
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"crowdVisible = false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click
.
native=
"handleConfirm"
>
确 定
</el-button>
<el-button
s
tyle=
"width: 68px;"
s
ize=
"small"
@
click=
"crowdVisible = false"
>
取 消
</el-button>
<el-button
s
tyle=
"width: 68px;"
s
ize=
"small"
type=
"primary"
@
click
.
native=
"handleConfirm"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
...
...
@@ -87,7 +83,9 @@ export default {
},
{
label
:
'人群描述'
,
prop
:
'crowdDesc'
prop
:
'crowdDesc'
,
width
:
'200'
,
line
:
1
},
{
label
:
'人数'
,
...
...
@@ -177,7 +175,7 @@ export default {
.member-title
{
font-size
:
16px
;
color
:
#333
;
font-weight
:
6
00
;
font-weight
:
5
00
;
line-height
:
22px
;
margin-bottom
:
6px
;
...
...
@@ -287,7 +285,27 @@ export default {
background
:
#fafbfe
!important
;
}
/
deep
/
.el-dialog__title
{
font-weight
:
600
;
/
deep
/
{
.el-dialog__title
{
font-weight
:
600
;
}
.el-dialog__header
{
padding
:
20px
;
}
.el-dialog__headerbtn
{
height
:
30px
;
.el-dialog__close
{
width
:
24px
;
height
:
24px
;
}
}
.el-pagination
{
padding-left
:
20px
;
border-top
:
1px
solid
#e8e8ea
;
padding-top
:
16px
;
}
.el-table
:before
{
display
:
none
;
}
}
</
style
>
src/views/customerTransform/detailCustomer.vue
View file @
89c41ee
...
...
@@ -25,6 +25,7 @@
<p>
1.若插入活动发送失败,可能为企微未绑定活动小程序,请绑定后再尝试。
</p>
<p>
2.可能为客户开启消息免打扰,消息发送失败。
</p>
<p>
3.可能为群发次数达到上限,上限次数为每个客户/客户群每天仅可接收1条群发消息。
</p>
<p>
4.一个客户加多个员工时,先发消息的员工可以送达客户,后发消息的员工无法送达客户。
</p>
<img
slot=
"reference"
:src=
"iconUrl"
alt
/>
</el-popover>
</span>
...
...
src/views/productGroup/editProduct.vue
View file @
89c41ee
...
...
@@ -71,7 +71,7 @@
</glsx-combi-form>
<!--
<GLButton
class=
"default-blue-btn"
style=
"float: right; margin-bottom: 10px;"
:size=
"size"
fn=
"创建优惠券"
@
click=
"handleJumpCoupon"
>
创建优惠券
</GLButton>
-->
<el-button
class=
"default-blue-btn"
style=
"float: right; margin
-bottom: 10px
;"
:size=
"size"
@
click=
"handleJumpCoupon"
>
创建优惠券
</el-button>
<el-button
class=
"default-blue-btn"
style=
"float: right; margin
: 0 10px 10px 0
;"
:size=
"size"
@
click=
"handleJumpCoupon"
>
创建优惠券
</el-button>
<GLTable
ref=
"coupon"
:hasNum=
"false"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"associationTableParams"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"association"
slot-scope=
"scope"
class=
"association"
>
<el-radio
:label=
"scope.scope.id"
v-model=
"associationRadio"
@
change
.
native=
"getCouponInfo()"
></el-radio>
...
...
@@ -245,19 +245,19 @@
<span
class=
"txt-tips"
style=
"margin-left: 20px;"
>
销售:0
</span>
</p>
</div>
<div
class=
"inner-block
"
style=
"margin-bottom: 8px;"
>
<div
:class=
"{ 'inner-block': !!nameToValSpecsList.length || editForm.deliveryType == 2 }
"
style=
"margin-bottom: 8px;"
>
<div
class=
"line"
v-if=
"nameToValSpecsList.length"
>
<span
class=
"line-label"
>
已选
</span>
<span
class=
"line-txt"
>
{{ nameToValSpecsList[0].specificationData }}
</span>
</div>
<div
class=
"line"
style=
"display: flex;"
>
<div
v-show=
"editForm.deliveryType == 2"
class=
"line"
style=
"display: flex;"
>
<span
class=
"line-label"
>
配送
</span>
<div>
<div
style=
"height: 25px; line-height: 30px;"
class=
"line-txt"
>
填写地址
</div>
<div
style=
"height: 25px; line-height: 18px;"
class=
"line-txt"
>
支付后,预计48小时内发货
</div>
</div>
</div>
<div
class=
"line"
>
<div
v-show=
"editForm.deliveryType == 2"
class=
"line"
>
<span
class=
"line-label"
>
运费
</span>
<span
v-show=
"editForm.deliveryType == 1"
class=
"line-txt"
>
免运费
</span>
<span
v-show=
"editForm.deliveryType == 2"
class=
"line-txt"
>
{{ editForm.expressFee }}元
</span>
...
...
@@ -346,7 +346,7 @@ export default {
maxlength
:
20
}
],
getListApi
:
this
.
$apis
.
couponManage
.
get
Merchant
ListApi
,
getListApi
:
this
.
$apis
.
couponManage
.
get
Coupon
ListApi
,
associationTableParams
:
{
listName
:
'list'
,
tableOption
:
false
,
...
...
@@ -1178,23 +1178,23 @@ export default {
}
// console.log(this.nameToValSpecsList)
// console.log(this.specificationDetailList)
if
(
isRecovery
)
{
this
.
nameToValSpecsList
.
forEach
((
item
,
index
)
=>
{
var
specificationObj
=
{}
item
.
specsValueList
.
forEach
((
subItem
,
subIndex
)
=>
{
specificationObj
[
this
.
specificationDetailList
[
subIndex
].
specificationName
]
=
subItem
})
item
.
specificationData
=
this
.
setLocaleCompare
(
specificationObj
)
for
(
var
i
=
0
;
i
<
this
.
editForm
.
specificationDetailList
.
length
;
i
++
)
{
var
temp
=
this
.
editForm
.
specificationDetailList
[
i
]
if
(
temp
.
specificationData
==
item
.
specificationData
)
{
item
.
retailPrice
=
(
temp
.
retailPrice
/
100
).
toFixed
(
2
)
item
.
stock
=
temp
.
stock
break
}
}
// if (isRecovery) {
this
.
nameToValSpecsList
.
forEach
((
item
,
index
)
=>
{
var
specificationObj
=
{}
item
.
specsValueList
.
forEach
((
subItem
,
subIndex
)
=>
{
specificationObj
[
this
.
specificationDetailList
[
subIndex
].
specificationName
]
=
subItem
})
}
item
.
specificationData
=
this
.
setLocaleCompare
(
specificationObj
)
for
(
var
i
=
0
;
i
<
this
.
editForm
.
specificationDetailList
.
length
;
i
++
)
{
var
temp
=
this
.
editForm
.
specificationDetailList
[
i
]
if
(
temp
.
specificationData
==
item
.
specificationData
)
{
item
.
retailPrice
=
(
temp
.
retailPrice
/
100
).
toFixed
(
2
)
item
.
stock
=
temp
.
stock
break
}
}
})
// }
// console.log(this.nameToValSpecsList)
},
...
...
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