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 0efdbd58
authored
May 08, 2025
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
员工群发
1 parent
d4baac8b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
258 additions
and
3 deletions
src/common/constants.js
src/views/contentManager/SopContentAdd.vue
src/views/contentManager/components/empDialog/index.vue
src/views/contentManager/components/scriptDialog/index.vue
src/common/constants.js
View file @
0efdbd5
...
@@ -927,7 +927,8 @@ export const inviteStatusList = [
...
@@ -927,7 +927,8 @@ export const inviteStatusList = [
export
const
contentTypeList
=
[
export
const
contentTypeList
=
[
{
confId
:
1
,
confValue
:
"图文"
},
{
confId
:
1
,
confValue
:
"图文"
},
{
confId
:
2
,
confValue
:
"视频"
},
{
confId
:
2
,
confValue
:
"视频"
},
{
confId
:
3
,
confValue
:
"pdf"
}
{
confId
:
3
,
confValue
:
"pdf"
},
{
confId
:
4
,
confValue
:
"优秀话术"
}
]
]
// 内容管理-员工群发-发送状态
// 内容管理-员工群发-发送状态
...
...
src/views/contentManager/SopContentAdd.vue
View file @
0efdbd5
...
@@ -34,9 +34,15 @@
...
@@ -34,9 +34,15 @@
<el-radio
:label=
"1"
>
图文
</el-radio>
<el-radio
:label=
"1"
>
图文
</el-radio>
<el-radio
:label=
"2"
>
视频
</el-radio>
<el-radio
:label=
"2"
>
视频
</el-radio>
<el-radio
:label=
"3"
>
pdf
</el-radio>
<el-radio
:label=
"3"
>
pdf
</el-radio>
<el-radio
:label=
"4"
>
优秀话术
</el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label-width=
"120px"
label=
"封面:"
prop=
"coverImgUrl"
>
<template
v-if=
"formData.contentType != 4"
>
<el-form-item
label-width=
"120px"
label=
"封面:"
prop=
"coverImgUrl"
>
<glsx-preview
<glsx-preview
:pic-options=
"coverOptions"
:pic-options=
"coverOptions"
:image-url-arr=
"formData.coverImgUrl"
:image-url-arr=
"formData.coverImgUrl"
...
@@ -105,6 +111,84 @@
...
@@ -105,6 +111,84 @@
<p
class=
"photo-top-tips"
>
支持 .pdf,大小不超过50M
</p>
<p
class=
"photo-top-tips"
>
支持 .pdf,大小不超过50M
</p>
</div>
</div>
</el-form-item>
</el-form-item>
</
template
>
<
template
v-else
>
<el-form-item
label-width=
"120px"
label=
"员工对象:"
prop=
"sendChannelType"
>
<el-button
class=
"radio-box"
size=
"small"
@
click=
"selectScript"
>
选择话术
</el-button
>
<el-table
border
:data=
"scriptList"
style=
"width: 100%"
v-if=
"scriptList.length"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
>
</el-table-column>
<el-table-column
prop=
"className"
width=
"100"
label=
"分类名"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"sceneLabelName"
label=
"场景标签"
width=
"100"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"labelName"
width=
"100"
label=
"优秀标签"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"sourceContent"
label=
"话术内容"
align=
"center"
>
<template
slot-scope=
"scope"
>
<el-popover
placement=
"top-start"
trigger=
"hover"
:width=
"300"
:content=
"scope.row.sourceContent"
>
<div
slot=
"reference"
class=
"popover-reference"
>
{{
scope
.
row
.
sourceContent
}}
</div>
</el-popover>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
fixed=
"right"
label=
"操作"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click
.
native
.
prevent=
"
deleteScript(scope.$index, scriptList)
"
type=
"text"
size=
"small"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
</el-form-item>
</template>
</el-form>
</el-form>
</div>
</div>
</div>
</div>
...
@@ -285,7 +369,10 @@
...
@@ -285,7 +369,10 @@
label=
"发送渠道:"
label=
"发送渠道:"
prop=
"sendChannelType"
prop=
"sendChannelType"
>
>
<el-radio-group
v-model=
"formData.sendChannelType"
>
<el-radio-group
v-model=
"formData.sendChannelType"
:disabled=
"formData.contentType == 4"
>
<el-radio
:label=
"1"
>
企业微信
</el-radio>
<el-radio
:label=
"1"
>
企业微信
</el-radio>
<el-radio
:label=
"2"
>
展业助手
</el-radio>
<el-radio
:label=
"2"
>
展业助手
</el-radio>
</el-radio-group>
</el-radio-group>
...
@@ -364,6 +451,13 @@
...
@@ -364,6 +451,13 @@
@
handleRelateStoreConfirm=
"confirmGroup"
@
handleRelateStoreConfirm=
"confirmGroup"
@
confirmDialogFn=
"confirmGroup"
@
confirmDialogFn=
"confirmGroup"
></component>
></component>
<
script
-dialog
v-if=
"scriptVisible"
:scriptSelected=
"scriptList"
:relateScriptVisible=
"scriptVisible"
@
handleRelateScriptClose=
"handleRelateScriptClose"
@
handleRelateScriptConfirm=
"handleRelateScriptConfirm"
>
<
/script-dialog
>
<
/d2-container
>
<
/d2-container
>
<
/template
>
<
/template
>
...
@@ -375,6 +469,8 @@ import preview from "./components/preview"
...
@@ -375,6 +469,8 @@ import preview from "./components/preview"
import
uploadPdf
from
"./components/uploadPdf"
import
uploadPdf
from
"./components/uploadPdf"
import
tableDialog
from
"./components/tableDialog"
import
tableDialog
from
"./components/tableDialog"
import
brandDialog
from
"./components/brandDialog"
import
brandDialog
from
"./components/brandDialog"
import
scriptDialog
from
"./components/scriptDialog"
import
empDialog
from
"./components/empDialog"
import
merchantDialog
from
"./components/merchantDialog"
import
merchantDialog
from
"./components/merchantDialog"
import
previewEffectDialog
from
"./components/previewEffectDialog"
import
previewEffectDialog
from
"./components/previewEffectDialog"
import
{
getList
,
getAccountMerchantList
}
from
"@/api/merchant"
import
{
getList
,
getAccountMerchantList
}
from
"@/api/merchant"
...
@@ -389,7 +485,9 @@ import {
...
@@ -389,7 +485,9 @@ import {
export
default
{
export
default
{
name
:
"SopContentAdd"
,
name
:
"SopContentAdd"
,
components
:
{
components
:
{
scriptDialog
,
brandDialog
,
brandDialog
,
empDialog
,
glsxPreview
:
preview
,
glsxPreview
:
preview
,
uploadPdf
,
uploadPdf
,
tableDialog
,
tableDialog
,
...
@@ -400,6 +498,8 @@ export default {
...
@@ -400,6 +498,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
scriptVisible
:
false
,
scriptList
:
[],
empTableData
:
[],
empTableData
:
[],
empTypeList
:
[
empTypeList
:
[
{
{
...
@@ -423,6 +523,12 @@ export default {
...
@@ -423,6 +523,12 @@ export default {
{
{
label
:
"全部员工"
,
label
:
"全部员工"
,
type
:
4
type
:
4
},
{
label
:
"指定员工"
,
type
:
5
,
btn
:
"员工"
,
componentName
:
"empDialog"
}
}
],
],
loading
:
false
,
loading
:
false
,
...
@@ -654,6 +760,11 @@ export default {
...
@@ -654,6 +760,11 @@ export default {
},
},
"formData.imageList"
()
{
"formData.imageList"
()
{
this
.
$refs
.
ruleForm
.
validateField
(
"imageList"
)
this
.
$refs
.
ruleForm
.
validateField
(
"imageList"
)
},
"formData.contentType"
(
val
)
{
if
(
val
==
4
)
{
this
.
formData
.
sendChannelType
=
2
}
}
}
// 开始时间 的 小时限制
// 开始时间 的 小时限制
// "formData.sendTime"(selectTime) {
// "formData.sendTime"(selectTime) {
...
@@ -707,10 +818,23 @@ export default {
...
@@ -707,10 +818,23 @@ export default {
},
},
methods
:
{
methods
:
{
selectScript
()
{
this
.
scriptVisible
=
true
},
handleRelateScriptClose
()
{
this
.
scriptVisible
=
false
},
handleRelateScriptConfirm
(
val
)
{
this
.
scriptVisible
=
false
this
.
scriptList
=
val
},
deleteRow
(
index
,
rows
)
{
deleteRow
(
index
,
rows
)
{
rows
.
splice
(
index
,
1
)
rows
.
splice
(
index
,
1
)
this
.
getCustomerList
()
this
.
getCustomerList
()
},
},
deleteScript
(
index
,
rows
)
{
rows
.
splice
(
index
,
1
)
},
getSelectableRange
()
{
getSelectableRange
()
{
const
currentDate
=
new
Date
()
const
currentDate
=
new
Date
()
currentDate
.
setMinutes
(
currentDate
.
getMinutes
()
+
30
)
currentDate
.
setMinutes
(
currentDate
.
getMinutes
()
+
30
)
...
...
src/views/contentManager/components/empDialog/index.vue
0 → 100644
View file @
0efdbd5
<
template
>
<d2-dialog
:is-visible=
"dialogVisible"
class=
"accountDailog"
title=
"选择门店"
width=
"720px"
@
confirmDialog=
"handleAddConfirm"
@
closeDialog=
"handleClose"
>
<div
class=
"tableBox"
>
<div
style=
"padding: 10px 50px"
>
<el-input
v-model=
"realSearchForm.merchantName"
placeholder=
"搜索员工名称"
maxlength=
"20"
clearable
size=
"small"
style=
"width: 300px; margin-right: 12px"
/>
<el-button
size=
"small"
type=
"primary"
@
click=
"searchList"
>
查询
</el-button>
</div>
<d2-table
ref=
"merchantTable"
:search-form=
"realSearchForm"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
</d2-table>
</div>
</d2-dialog>
</
template
>
<
script
>
import
{
getAllMerchantList
,
getMerchantListByScene
}
from
"@api/contentManager"
export
default
{
name
:
"SelectGoodsTypeDialog"
,
props
:
{
config
:
{
type
:
Object
,
require
:
true
},
dialogVisible
:
{
type
:
Boolean
,
default
:
false
},
selectedRecord
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
data
()
{
return
{
getListApi
:
getAllMerchantList
,
realSearchForm
:
{
merchantName
:
""
},
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
"list"
,
mutiSelectUniqueKey
:
"id"
,
mutiSelectName
:
"merchantIndex"
,
tableColumns
:
[
{
label
:
"员工名称"
,
prop
:
"merchantName"
},
{
label
:
"员工手机号"
,
prop
:
"merchantName"
}
]
}
}
},
mounted
()
{},
methods
:
{
recoverySelection
(
list
)
{
var
exitIds
=
this
.
selectedRecord
.
map
((
item
)
=>
+
item
.
merchantId
)
console
.
log
(
exitIds
)
list
.
forEach
((
item
)
=>
{
console
.
log
(
item
.
merchantId
,
"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
)
{
this
.
getListApi
=
getAllMerchantList
}
else
{
this
.
getListApi
=
getMerchantListByScene
this
.
realSearchForm
.
scene
=
this
.
config
.
scene
}
resolve
()
})
},
setTableFinishFun
(
data
)
{
this
.
$nextTick
(()
=>
{
this
.
recoverySelection
(
data
)
})
},
searchList
()
{
this
.
$refs
?.
merchantTable
?.
refreshTable
(
true
,
true
)
},
handleAddConfirm
()
{
const
selectItemList
=
this
.
$refs
.
merchantTable
?.
mutiSelectArr
?.[
this
.
tableParams
.
mutiSelectName
]
||
[]
if
(
selectItemList
.
length
)
{
this
.
$emit
(
"confirmDialogFn"
,
selectItemList
)
}
else
{
this
.
$message
.
error
(
"请选择员工"
)
}
},
handleClose
()
{
this
.
$emit
(
"closeDialogFn"
)
}
}
}
</
script
>
<
style
></
style
>
src/views/contentManager/components/scriptDialog/index.vue
0 → 100644
View file @
0efdbd5
This diff is collapsed.
Click to expand it.
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