Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 7bde4862
authored
Apr 08, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
员工群发
1 parent
af59fbf7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
277 additions
and
62 deletions
src/api/contentManager.js
src/common/constants.js
src/views/contentManager/SopContentAdd.vue
src/views/contentManager/components/brandDialog/index.vue
src/views/contentManager/components/merchantDialog/index.vue
src/views/contentManager/components/screenTag/index.vue
src/views/contentManager/components/selectTag/index.vue
src/views/contentManager/components/tableDialog.vue
src/views/contentManager/sopContentDetail.vue
src/views/contentManager/staffMassSending/index.vue
src/api/contentManager.js
View file @
7bde486
...
...
@@ -250,3 +250,11 @@ export function getCustomerInfoDetail(data) {
data
.
method
=
`dj.api.mindworkplate.customervisit.getCustomerInfoDetail`
return
request
(
data
,
"post"
)
}
export
function
listMerchantStaffPage
(
data
)
{
data
.
method
=
`dj.api.smartcarlife.contentManagerTask.listMerchantStaffPage`
return
request
(
data
,
"post"
)
}
export
function
listBrandStaffPage
(
data
)
{
data
.
method
=
`dj.api.smartcarlife.contentManagerTask.listBrandStaffPage`
return
request
(
data
,
"post"
)
}
src/common/constants.js
View file @
7bde486
...
...
@@ -983,7 +983,7 @@ export const filterOpt = [
{
confId
:
2
,
confValue
:
"待我处理的"
},
{
confId
:
3
,
confValue
:
"我处理过的"
}
]
export
const
supervisorStatuOpt
=
[
export
const
supervisorStatuOpt
=
[
{
confId
:
1
,
confValue
:
"已跟进"
},
{
confId
:
0
,
confValue
:
"未跟进"
}
]
...
...
@@ -1123,3 +1123,8 @@ export const outputValue_operTypeOpt = [
{
confId
:
2
,
confValue
:
"修改"
},
{
confId
:
3
,
confValue
:
"删除"
}
]
export
const
channelTypeList
=
[
{
confId
:
1
,
confValue
:
"企业微信"
},
{
confId
:
2
,
confValue
:
"展业app"
}
]
src/views/contentManager/SopContentAdd.vue
View file @
7bde486
This diff is collapsed.
Click to expand it.
src/views/contentManager/components/brandDialog/index.vue
View file @
7bde486
...
...
@@ -7,7 +7,8 @@
btn-ok-label=
"确定"
@
confirmDialog=
"handleRelateStoreConfirm"
@
closeDialog=
"handleRelateStoreClose"
class=
"relateStore"
>
class=
"relateStore"
>
<el-form
:model=
"storeSearchForm"
ref=
"relate"
:inline=
"true"
>
<el-form-item
label=
"品牌名称:"
>
<el-input
...
...
@@ -15,7 +16,8 @@
placeholder=
"品牌名称"
max-length=
"20"
@
keydown
.
native=
"handleStoreInput"
clearable
/>
clearable
/>
</el-form-item>
<el-button
type=
"primary"
@
click=
"handleCurrentChange(1)"
>
搜索
</el-button>
</el-form>
...
...
@@ -28,7 +30,8 @@
class=
"table"
border
@
select=
"handleChange"
@
select-all=
"handleAll"
>
@
select-all=
"handleAll"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
prop=
"label"
label=
"品牌名称"
align=
"center"
>
</el-table-column>
...
...
@@ -40,13 +43,15 @@
:current-page
.
sync=
"currentPage"
:page-size=
"pageSize"
layout=
"total, prev, pager, next"
:total=
"total"
/>
:total=
"total"
/>
</div>
<el-table
class=
"tableBox table"
:data=
"selectedData"
border
height=
"464px"
>
height=
"464px"
>
<el-table-column
prop=
"merchantName"
label=
"品牌名称"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
label
}}
</span>
...
...
@@ -57,7 +62,8 @@
<el-button
class=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
type=
"text"
/>
type=
"text"
/>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -102,6 +108,7 @@ export default {
var
exitIds
=
this
.
selectedData
.
map
((
item
)
=>
item
.
id
)
this
.
selectingData
.
forEach
((
item
)
=>
{
exitIds
.
includes
(
item
.
id
)
&&
this
.
$refs
.
seletingTable
&&
this
.
$refs
.
seletingTable
.
toggleRowSelection
(
item
,
true
)
})
},
...
...
@@ -123,8 +130,8 @@ export default {
addOrDelete
?
this
.
selectedData
.
push
(
row
)
:
(
this
.
selectedData
=
this
.
selectedData
.
filter
(
(
item
)
=>
item
.
id
!==
row
.
id
))
(
item
)
=>
item
.
id
!==
row
.
id
))
},
handleAll
(
selection
)
{
this
.
selectingData
.
forEach
((
item
)
=>
{
...
...
src/views/contentManager/components/merchantDialog/index.vue
View file @
7bde486
...
...
@@ -5,7 +5,8 @@
title=
"选择门店"
width=
"720px"
@
confirmDialog=
"handleAddConfirm"
@
closeDialog=
"handleClose"
>
@
closeDialog=
"handleClose"
>
<div
class=
"tableBox"
>
<div
style=
"padding: 10px 50px"
>
<el-input
...
...
@@ -14,7 +15,8 @@
maxlength=
"20"
clearable
size=
"small"
style=
"width: 300px; margin-right: 12px"
/>
style=
"width: 300px; margin-right: 12px"
/>
<el-button
size=
"small"
type=
"primary"
@
click=
"searchList"
>
查询
</el-button>
...
...
@@ -24,7 +26,9 @@
:search-form=
"realSearchForm"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
:before-search-fn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
</d2-table>
</div>
</d2-dialog>
...
...
@@ -75,6 +79,21 @@ export default {
},
mounted
()
{},
methods
:
{
recoverySelection
(
list
)
{
var
exitIds
=
this
.
selectedRecord
.
map
((
item
)
=>
item
.
merchantId
)
console
.
log
(
"this.$refs.merchantTable.toggleRowSelection"
,
this
.
$refs
.
merchantTable
.
$refs
.
merchantIndexMutiTable
.
toggleRowSelection
)
list
.
forEach
((
item
)
=>
{
console
.
log
(
exitIds
.
includes
(
item
.
merchantId
+
""
))
exitIds
.
includes
(
item
.
merchantId
+
""
)
&&
this
.
$refs
.
merchantTable
.
$refs
.
merchantIndexMutiTable
.
toggleRowSelection
(
item
,
true
)
})
},
beforeSearchFn
()
{
return
new
Promise
((
resolve
)
=>
{
if
(
this
.
config
.
scene
==
0
||
this
.
config
.
scene
==
4
)
{
...
...
@@ -86,6 +105,11 @@ export default {
resolve
()
})
},
setTableFinishFun
(
data
)
{
this
.
$nextTick
(()
=>
{
this
.
recoverySelection
(
data
)
})
},
searchList
()
{
this
.
$refs
?.
merchantTable
?.
refreshTable
(
true
,
true
)
},
...
...
src/views/contentManager/components/screenTag/index.vue
View file @
7bde486
...
...
@@ -333,7 +333,7 @@ export default {
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
//
.dialog-jump
{
//
color
:
#5850ff
;
//
float
:
left
;
...
...
src/views/contentManager/components/selectTag/index.vue
View file @
7bde486
...
...
@@ -84,7 +84,9 @@
</el-tooltip>
</div>
<div
class=
"tag-select-box"
>
<div
class=
"tag-box-header"
>
标签名称(
{{
selectNum
}}
项)
</div>
<div
class=
"tag-box-header"
>
标签名称(
{{
selectNum
}}
项)
<span
@
click=
"clearTag"
>
清空
</span>
</div>
<div
class=
"tag-selected-box"
:style=
"
{ height: heightBox + 'px' }">
<div
v-show=
"!!selectNum"
...
...
@@ -176,6 +178,18 @@ export default {
}
},
methods
:
{
clearTag
()
{
this
.
labelTreeRets
.
forEach
((
i
)
=>
{
i
.
checked
=
false
i
.
tagChecked
=
[]
i
.
isIndeterminate
=
false
i
.
checkAll
=
false
})
this
.
labelTreeRetSelect
.
forEach
((
i
)
=>
{
i
.
tagChecked
=
[]
})
this
.
selectNum
=
0
},
init
(
item
)
{
this
.
labelGroupName
=
""
this
.
labelTreeRetSelect
=
[]
...
...
@@ -362,6 +376,7 @@ export default {
},
//选中
handleCheckedChange
(
value
,
index
,
status
)
{
console
.
log
(
value
,
index
,
status
)
let
checkedCount
=
value
.
length
this
.
labelTreeRets
[
index
].
checkAll
=
checkedCount
===
this
.
labelTreeRets
[
index
].
labelList
.
length
...
...
@@ -386,7 +401,7 @@ export default {
}
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.select-tag
{
.label-box
{
margin-left
:
42px
;
...
...
@@ -453,7 +468,13 @@ export default {
font-weight
:
400
;
color
:
#333333
;
line-height
:
20px
;
padding-left
:
20px
!important
;
padding
:
0
20px
!important
;
display
:
flex
;
span
{
margin-left
:
auto
;
cursor
:
pointer
;
color
:
#5579bd
;
}
}
}
.tag-title
{
...
...
src/views/contentManager/components/tableDialog.vue
View file @
7bde486
This diff is collapsed.
Click to expand it.
src/views/contentManager/sopContentDetail.vue
View file @
7bde486
...
...
@@ -73,49 +73,90 @@
<div
class=
"main-box"
>
<div
class=
"cell"
>
<div
class=
"label"
>
员工对象:
</div>
<div
v-show=
"
formData.customerDataList.length != 0 &&
formData.customerDataList.some(
(item) => item.labelList.length !== 0
)
"
>
<div
class=
"customer-box m-t-10"
>
<div
class=
"el-input-tag input-tag-wrapper"
>
<div
class=
"customer-title"
>
发送员工:预估
<el-button
type=
"text"
:loading=
"customerLoading"
@
click=
"handlePopStaff"
<div>
<div
class=
"label m-b-10"
>
{{
getStaffVal
(
formData
.
selectStaffType
)
}}
</div>
<template>
<div
class=
"emp-table-box"
v-if=
"
[2, 3].includes(formData.selectStaffType) &&
empTableData.length
"
>
<el-table
:data=
"empTableData"
style=
"width: 100%"
>
<el-table-column
type=
"index"
width=
"50"
>
</el-table-column>
<el-table-column
prop=
"merchantName"
label=
"门店名称"
v-if=
"formData.selectStaffType == 2"
>
<span
v-if=
"!customerLoading"
>
{{
estimatedNumberOfPeople
}}
</span>
</el-button>
人
</div>
<div>
<div
v-for=
"(subItem, subIdx) in formData.customerDataList"
:key=
"subIdx"
</el-table-column>
<el-table-column
prop=
"merchantId"
v-if=
"formData.selectStaffType == 2"
label=
"门店号"
width=
"100"
></el-table-column>
<el-table-column
prop=
"label"
v-if=
"formData.selectStaffType == 3"
label=
"品牌名称"
>
<el-tag
v-for=
"(k, n) in subItem.labelList"
:key=
"n"
class=
"customer-tag"
size=
"small"
type=
"info"
:disable-transitions=
"false"
@
close=
"handleDeleteCustomer(n, subIdx)"
>
<span>
{{
subItem
.
labelGroup
.
name
}}
:
{{
k
.
name
}}
</span>
</el-tag>
</el-table-column>
</el-table>
</div>
<div
v-show=
"
formData.customerDataList &&
formData.customerDataList.length != 0 &&
formData.customerDataList.some(
(item) => item.labelList.length !== 0
)
"
>
<div
class=
"customer-box m-t-10"
>
<div
class=
"el-input-tag input-tag-wrapper"
>
<div>
<div
v-for=
"(subItem, subIdx) in formData.customerDataList"
:key=
"subIdx"
>
<el-tag
v-for=
"(k, n) in subItem.labelList"
:key=
"n"
class=
"customer-tag"
size=
"small"
type=
"info"
:closable=
"true"
:disable-transitions=
"false"
@
close=
"handleDeleteCustomer(n, subIdx)"
>
<span
>
{{
subItem
.
labelGroup
.
name
}}
:
{{
k
.
name
}}
</span
>
</el-tag>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"customer-title"
>
发送员工:预估
{{
estimatedNumberOfPeople
||
0
}}
人
<el-button
type=
"text"
:loading=
"customerLoading"
@
click=
"handlePopStaff"
>
<span
v-if=
"!customerLoading && estimatedNumberOfPeople"
>
查看明细
</span
>
</el-button>
</div>
</
template
>
</div>
</div>
</div>
...
...
@@ -132,6 +173,12 @@
{{ formData[item.prop] || "--" }}
</div>
</div>
<div
class=
"cell"
>
<div
class=
"label"
>
发送渠道:
</div>
<div
class=
"value"
>
{{ formData.sendChannelType == 1 ? "企业微信" : "展业助手" }}
</div>
</div>
</div>
</div>
<p
style=
"text-align: center"
>
...
...
@@ -176,7 +223,9 @@ import { Util, deepClone } from "@/common/util"
import
tableDialog
from
"./components/tableDialog"
import
{
contentManagerTaskById
,
getListLabelStaffPage
getListLabelStaffPage
,
listMerchantStaffPage
,
listBrandStaffPage
}
from
"@api/contentManager"
import
previewEffectDialog
from
"./components/previewEffectDialog"
import
textBox
from
"@/components/glsx-combi-form/textBox"
...
...
@@ -189,6 +238,31 @@ export default {
},
data
()
{
return
{
empTableData
:
[],
empTypeList
:
[
{
label
:
"员工标签"
,
type
:
1
,
btn
:
"标签"
,
componentName
:
"selectTag"
},
{
label
:
"指令门店"
,
type
:
2
,
btn
:
"门店"
,
componentName
:
"merchantDialog"
},
{
label
:
"指令品牌"
,
type
:
3
,
btn
:
"品牌"
,
componentName
:
"brandDialog"
},
{
label
:
"全部员工"
,
type
:
4
}
],
contentListData
:
[
{
label
:
"标题:"
,
...
...
@@ -239,7 +313,8 @@ export default {
sendTime
:
""
,
// formData: [],
customerDataList
:
[],
content
:
""
content
:
""
,
selectStaffType
:
""
},
showImageView
:
false
,
customerLoading
:
false
,
...
...
@@ -264,6 +339,9 @@ export default {
handleStoreInput
(
e
)
{
e
.
keyCode
===
13
&&
this
.
handleSearchStore
()
},
getStaffVal
(
type
)
{
return
this
.
empTypeList
.
find
((
i
)
=>
i
.
type
==
type
)?.
label
},
// 门店弹窗点击查询
handleSearchStore
()
{
this
.
$refs
.
formRelateStore
.
handleCurrentChange
(
1
)
...
...
@@ -294,6 +372,30 @@ export default {
handlePopStaff
()
{
this
.
relateStoreVisible
=
true
},
getCustomerList
()
{
const
merchantIds
=
this
.
empTableData
.
map
((
item
)
=>
item
.
merchantId
)
const
brandIds
=
this
.
empTableData
.
map
((
item
)
=>
item
.
id
)
if
(
!
merchantIds
.
length
&&
!
brandIds
.
length
)
{
this
.
estimatedNumberOfPeople
=
0
return
}
const
params
=
{
pageSize
:
999999
,
merchantIds
,
brandIds
,
pageNum
:
1
}
this
.
getList
=
this
.
formData
.
selectStaffType
==
2
?
listMerchantStaffPage
:
listBrandStaffPage
this
.
storeSearchForm
=
params
this
.
customerLoading
=
true
this
.
getList
(
params
).
then
((
res
)
=>
{
this
.
estimatedNumberOfPeople
=
res
?.
total
||
0
this
.
customerLoading
=
false
})
},
getCustomerByTagList
(
type
)
{
let
params
=
{}
if
(
type
==
"filtrate"
)
{
...
...
@@ -381,13 +483,34 @@ export default {
this
.
formData
[
key
]
=
res
[
key
]
}
}
this
.
formData
.
customerDataList
=
this
.
transformLabelList
(
res
.
labelList
)
// 初始化 富文本内容
this
.
formData
.
contentType
==
1
&&
this
.
handleTextBoxFocus
()
this
.
getCustomerByTagList
(
"filtrate"
)
if
(
this
.
formData
.
selectStaffType
==
1
)
{
this
.
formData
.
customerDataList
=
this
.
transformLabelList
(
res
.
labelList
)
this
.
getCustomerByTagList
(
"filtrate"
)
}
const
selectStaffValue
=
JSON
.
parse
(
res
.
selectStaffValue
||
"{}"
)
if
(
this
.
formData
.
selectStaffType
==
2
)
{
for
(
let
[
key
,
value
]
of
Object
.
entries
(
selectStaffValue
))
{
this
.
empTableData
.
push
({
merchantId
:
key
,
merchantName
:
value
})
}
this
.
getCustomerList
()
}
if
(
this
.
formData
.
selectStaffType
==
3
)
{
for
(
let
[
key
,
value
]
of
Object
.
entries
(
selectStaffValue
))
{
this
.
empTableData
.
push
({
id
:
key
,
label
:
value
})
}
this
.
getCustomerList
()
}
}
})
// contentManagerTaskById({ id }).then((res) => {
...
...
@@ -614,6 +737,9 @@ export default {
.img-size
{
cursor
:
pointer
;
}
.emp-table-box
{
width
:
567px
;
}
.customer-box
{
width
:
567px
;
background-color
:
#fff
;
...
...
src/views/contentManager/staffMassSending/index.vue
View file @
7bde486
...
...
@@ -65,7 +65,11 @@
<
script
>
import
{
Util
,
deepClone
}
from
"@/common/util"
import
{
mapActions
,
mapState
}
from
"vuex"
import
{
contentTypeList
,
sendStatusList
}
from
"@/common/constants.js"
import
{
contentTypeList
,
sendStatusList
,
channelTypeList
}
from
"@/common/constants.js"
// import { rewithdraw } from '@api/withdrawalManage'
import
{
contentManagerTaskPage
,
deleteTaskById
}
from
"@api/contentManager"
// import addDialog from './components/addDialog'
...
...
@@ -109,6 +113,15 @@ export default {
optionId
:
"confId"
,
optionLabel
:
"confValue"
,
optionsName
:
"sendStatusList"
},
{
label
:
"发送渠道"
,
name
:
"sendChannelType"
,
type
:
"select"
,
optionList
:
[],
optionId
:
"confId"
,
optionLabel
:
"confValue"
,
optionsName
:
"channelTypeList"
}
],
getListApi
:
contentManagerTaskPage
,
...
...
@@ -134,6 +147,16 @@ export default {
}
},
{
label
:
"发送渠道"
,
prop
:
"sendChannelType"
,
width
:
"100px"
,
formatter
:
(
cellValue
)
=>
{
return
this
.
baseData
.
channelTypeList
.
find
(
(
item
)
=>
item
.
confId
===
cellValue
.
sendChannelType
)?.
confValue
}
},
{
label
:
"发送时间"
,
prop
:
"sendTime"
,
width
:
"150px"
,
...
...
@@ -177,7 +200,8 @@ export default {
},
baseData
:
{
contentTypeList
:
deepClone
(
contentTypeList
),
sendStatusList
:
deepClone
(
sendStatusList
)
sendStatusList
:
deepClone
(
sendStatusList
),
channelTypeList
:
deepClone
(
channelTypeList
)
},
infos
:
[],
...
...
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