Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 0ede34d7
authored
Jul 10, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
七月份喜报1.4需求开发
1 parent
d2afcda2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
154 additions
and
296 deletions
src/api/modules/clewOrder.js
src/config/index.js
src/views/bulletin/addClewConfig.vue
src/views/bulletin/components/clewOrder/index.vue
src/views/bulletin/components/dialogs/clewWordDialog.vue
src/api/modules/clewOrder.js
0 → 100644
View file @
0ede34d
import
{
http
}
from
'@/main'
const
url1
=
'/rop-scrm-entmicro/router'
const
url
=
'/rop-scrm-shopmall/router'
//门店号选择服务
const
getMerchantList
=
params
=>
{
params
.
method
=
'entmicro.api.merchant.listDepartmentTree.select.merchant'
return
http
({
url
:
url1
,
method
:
'post'
,
data
:
params
,
sign
:
true
})
}
//分页查询线索喜报配置信息
const
getClueReportList
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.clueReportConfig.page`
return
http
({
url
,
method
:
'post'
,
data
:
params
,
sign
:
true
})
}
// 新增或修改喜报配置
const
updateClueReportConfig
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.clueReportConfig.insertOrUpdate`
return
http
({
url
,
method
:
'post'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
getMerchantList
,
getClueReportList
,
updateClueReportConfig
}
src/config/index.js
View file @
0ede34d
...
@@ -19,8 +19,8 @@ export const fetchConfig = function(isEnv = true) {
...
@@ -19,8 +19,8 @@ export const fetchConfig = function(isEnv = true) {
// return Promise.resolve(cfg)
// return Promise.resolve(cfg)
// }
// }
//return window.fetch('https://', {}).then(res => res.json())
//return window.fetch('https://', {}).then(res => res.json())
//
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config')
return
new
Http
().
get
(
'https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config'
)
return
new
Http
().
get
(
'https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config'
)
//
return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
}
}
export
const
config
=
{
export
const
config
=
{
install
(
vue
,
cfg
)
{
install
(
vue
,
cfg
)
{
...
...
src/views/bulletin/addClewConfig.vue
View file @
0ede34d
...
@@ -6,17 +6,18 @@
...
@@ -6,17 +6,18 @@
<!--
<span
class=
"weight-5 color6 font-14 ml12"
v-if=
"merchantName"
>
{{
merchantName
}}
</span>
-->
<!--
<span
class=
"weight-5 color6 font-14 ml12"
v-if=
"merchantName"
>
{{
merchantName
}}
</span>
-->
</div>
</div>
<div
class=
"config-wrap gl-form-page"
>
<div
class=
"config-wrap gl-form-page"
>
<el-form
ref=
"
form"
:model=
"form"
label-width=
"154px
"
>
<el-form
ref=
"
battleRef"
:model=
"config"
label-width=
"154px"
:rules=
"rules
"
>
<el-form-item
label=
"门店信息:"
>
<el-form-item
label=
"门店信息:"
prop=
"merchantId"
>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handleRelateStoreClose"
>
选择门店
</el-button>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handleRelateStoreClose"
>
选择门店
</el-button>
<div
class=
"merchantNameLabel"
v-if=
"config.merchantName"
>
<div
class=
"merchantNameLabel"
v-if=
"config.merchantName"
>
<p>
所属门店
</p>
<p>
所属门店
</p>
<div
class=
"merchantName ellipsis-1"
>
{{
config
.
merchantName
}}
</div>
<div
class=
"merchantName ellipsis-1"
>
{{
config
.
merchantName
}}
</div>
</div>
</div>
<
div
class=
"el-form-item__error mrt5"
v-if=
"merchantFlag"
>
请选择门店
</div
>
<
!--
<div
class=
"el-form-item__error mrt5"
v-if=
"merchantFlag"
>
请选择所属门店
</div>
--
>
</el-form-item>
</el-form-item>
<el-form-item
label=
"所属企业:"
>
<!-- 所属企业-->
<el-select
v-model=
"config.merchantId"
placeholder=
"请选择"
@
change=
"handleMerchatChange"
>
<el-form-item
label=
"所属企业:"
prop=
"groupMerchantId"
>
<el-select
v-model=
"config.groupMerchantId"
placeholder=
"请选择"
@
change=
"handleMerchatChange"
>
<el-option
v-for=
"item in merchantList"
:key=
"item.merchantId"
:label=
"item.merchantName"
:value=
"item.merchantId"
></el-option>
<el-option
v-for=
"item in merchantList"
:key=
"item.merchantId"
:label=
"item.merchantName"
:value=
"item.merchantId"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -25,8 +26,8 @@
...
@@ -25,8 +26,8 @@
<div
class=
"common el-form-item__content"
>
<div
class=
"common el-form-item__content"
>
<div
class=
"el-input"
ref=
"automaticRef"
>
<div
class=
"el-input"
ref=
"automaticRef"
>
<div
class=
"el-input__inner"
@
click=
"openAutomatic"
>
<div
class=
"el-input__inner"
@
click=
"openAutomatic"
>
<span
v-if=
"
wechat
.automaticName == ''"
class=
"placeholder"
>
选择成员
</span>
<span
v-if=
"
config
.automaticName == ''"
class=
"placeholder"
>
选择成员
</span>
{{
wechat
.
automaticName
}}
{{
config
.
automaticName
}}
</div>
</div>
<span
class=
"el-input__suffix"
@
click=
"openAutomatic"
>
<span
class=
"el-input__suffix"
@
click=
"openAutomatic"
>
<span
class=
"el-input__suffix-inner"
><i
:class=
"['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', isAutomatic ? 'is-reverse' : '']"
></i></span>
<span
class=
"el-input__suffix-inner"
><i
:class=
"['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', isAutomatic ? 'is-reverse' : '']"
></i></span>
...
@@ -70,7 +71,7 @@
...
@@ -70,7 +71,7 @@
<el-button
@
click=
"handlebattleClose"
size=
"medium"
>
取消
</el-button>
<el-button
@
click=
"handlebattleClose"
size=
"medium"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handlebattleConfirm"
size=
"medium"
:loading=
"loading"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"handlebattleConfirm"
size=
"medium"
:loading=
"loading"
>
保存
</el-button>
</GLFooter>
</GLFooter>
<component
:is=
"dialogComponent"
ref=
"componentRef"
v-if=
"isDialogVisible"
:isDialogVisible=
"isDialogVisible"
:
switchList=
"switchLis
t"
@
handlePreview=
"handlePreview"
@
handleClose=
"handleClose"
></component>
<component
:is=
"dialogComponent"
ref=
"componentRef"
v-if=
"isDialogVisible"
:isDialogVisible=
"isDialogVisible"
:
content=
"config.conten
t"
@
handlePreview=
"handlePreview"
@
handleClose=
"handleClose"
></component>
<select-store
v-if=
"relateStoreVisible"
ref=
"relateStore"
:dialogVisible=
"relateStoreVisible"
:storeSelected=
"selectedList"
:merchantInfo=
"config.merchantId"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
></select-store>
<select-store
v-if=
"relateStoreVisible"
ref=
"relateStore"
:dialogVisible=
"relateStoreVisible"
:storeSelected=
"selectedList"
:merchantInfo=
"config.merchantId"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
></select-store>
</div>
</div>
</template>
</template>
...
@@ -89,7 +90,6 @@ export default {
...
@@ -89,7 +90,6 @@ export default {
selectGroupName
:
[],
selectGroupName
:
[],
isDialogVisible
:
false
,
isDialogVisible
:
false
,
relateStoreVisible
:
false
,
// 选择门店
relateStoreVisible
:
false
,
// 选择门店
merchantFlag
:
false
,
paramsData
:
this
.
$route
.
query
,
paramsData
:
this
.
$route
.
query
,
dialogComponent
:
''
,
dialogComponent
:
''
,
merchantList
:
[],
merchantList
:
[],
...
@@ -101,23 +101,27 @@ export default {
...
@@ -101,23 +101,27 @@ export default {
},
},
config
:
{
config
:
{
merchantId
:
''
,
merchantId
:
''
,
merchantName
:
'流程测试4s店'
merchantName
:
''
,
staffId
:
''
,
automaticName
:
''
,
groupMerchantId
:
''
},
},
isAutomatic
:
true
,
isAutomatic
:
true
,
filterText
:
''
,
filterText
:
''
,
wechat
:
{
staffId
:
''
,
automaticName
:
''
// roomName: ''
},
groupCofList
:
{
groupCofList
:
{
clewWordReport
:
[]
clewWordReport
:
[]
},
},
switchList
:
{
rules
:
{
clewWordReport
:
[{
switchType
:
701
,
switchStatus
:
'Y'
,
actionReportType
:
7
,
switchText
:
''
}]
merchantId
:
[{
required
:
true
,
message
:
'请选择门店信息'
,
trigger
:
'change'
}],
groupMerchantId
:
[{
required
:
true
,
message
:
'请选择所属企业'
,
trigger
:
'change'
}],
staffId
:
[{
required
:
true
,
message
:
'请选择推送人'
,
trigger
:
'change'
}]
},
},
groupCofListInput
:
{
groupCofListInput
:
{
clewWordReportValue
:
[],
clewWordReportValue
:
[
{
name
:
''
}
]
},
},
groupToType
:
[
groupToType
:
[
{
{
...
@@ -137,9 +141,6 @@ export default {
...
@@ -137,9 +141,6 @@ export default {
watch
:
{
watch
:
{
filterText
(
val
)
{
filterText
(
val
)
{
this
.
$refs
.
tree
.
filter
(
val
)
this
.
$refs
.
tree
.
filter
(
val
)
},
roomName
(
val
)
{
this
.
filterRoomName
(
val
)
}
}
},
},
computed
:
{
computed
:
{
...
@@ -148,10 +149,10 @@ export default {
...
@@ -148,10 +149,10 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
let
{
data
,
sign
}
=
this
.
paramsData
let
{
data
}
=
this
.
paramsData
this
.
merchantName
=
data
.
merchantName
+
data
.
merchantId
this
.
getMerchantList
(
data
)
this
.
get
MerchantList
(
sign
)
this
.
get
DepartmentTree
(
)
this
.
handlebattleOn
(
data
,
sign
)
if
(
data
)
this
.
handlebattleOn
(
data
)
},
},
methods
:
{
methods
:
{
// 选择门店
// 选择门店
...
@@ -159,14 +160,14 @@ export default {
...
@@ -159,14 +160,14 @@ export default {
this
.
relateStoreVisible
=
!
this
.
relateStoreVisible
this
.
relateStoreVisible
=
!
this
.
relateStoreVisible
},
},
handleRelateStoreConfirm
(
selectedData
)
{
handleRelateStoreConfirm
(
selectedData
)
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
clearValidate
(
'merchantId'
)
selectedData
.
merchantId
&&
(
this
.
config
.
merchantId
=
selectedData
.
merchantId
)
selectedData
.
merchantId
&&
(
this
.
config
.
merchantId
=
selectedData
.
merchantId
)
selectedData
.
merchantName
&&
((
this
.
config
.
merchantName
=
selectedData
.
merchantName
),
(
this
.
merchantFlag
=
false
))
selectedData
.
merchantName
&&
(
this
.
config
.
merchantName
=
selectedData
.
merchantName
)
this
.
$refs
.
battleRef
.
clearValidate
(
'merchantId'
)
this
.
handleRelateStoreClose
()
this
.
handleRelateStoreClose
()
},
},
handlePreview
(
params
)
{
handlePreview
(
params
)
{
let
{
key
,
data
}
=
params
let
{
data
}
=
params
this
.
switchList
[
key
]
=
data
this
.
config
.
content
=
data
this
.
isDialogVisible
=
false
this
.
isDialogVisible
=
false
},
},
handleClose
()
{
handleClose
()
{
...
@@ -193,8 +194,9 @@ export default {
...
@@ -193,8 +194,9 @@ export default {
this
.
$apis
.
battle
.
getMerchantList
({}).
then
(
res
=>
{
this
.
$apis
.
battle
.
getMerchantList
({}).
then
(
res
=>
{
this
.
merchantList
=
res
this
.
merchantList
=
res
if
(
!
sign
)
{
if
(
!
sign
)
{
this
.
config
.
merchantId
=
res
[
0
]?.
merchantId
this
.
config
.
groupMerchantId
=
res
[
0
]?.
merchantId
this
.
config
.
merchantName
=
res
[
0
]?.
merchantName
this
.
config
.
groupMerchantName
=
res
[
0
]?.
merchantName
console
.
log
(
this
.
config
)
}
}
})
})
},
},
...
@@ -204,33 +206,18 @@ export default {
...
@@ -204,33 +206,18 @@ export default {
},
},
handleNodeClick
(
data
)
{
handleNodeClick
(
data
)
{
this
.
hideSelect
()
this
.
hideSelect
()
this
.
wechat
.
automaticName
=
data
.
name
this
.
config
.
automaticName
=
data
.
name
this
.
wechat
.
staffId
=
data
.
staffId
this
.
config
.
staffId
=
data
.
staffId
this
.
idBefEncryption
=
data
.
idBefEncryption
this
.
idBefEncryption
=
data
.
idBefEncryption
this
.
$apis
.
battle
.
activityreportWorktool
({
cloudId
:
this
.
idBefEncryption
}).
then
(
res
=>
{
this
.
$refs
.
battleRef
.
clearValidate
(
'staffId'
)
this
.
$apis
.
battle
.
activityreportWorktool
({
cloudId
:
1688855154413617
}).
then
(
res
=>
{
this
.
selectGroupName
=
res
.
data
.
result
||
[]
this
.
selectGroupName
=
res
.
data
.
result
||
[]
this
.
groupCofListInput
=
{
clewWordReportValue
:
[{
name
:
''
}]
}
this
.
groupCofListInput
=
{
clewWordReportValue
:
[{
name
:
''
}]
}
})
})
},
},
// 弹窗数据回显
//编辑回显
initswitchList
(
switchList
)
{
switchList
.
forEach
(
item
=>
{
this
.
groupToType
.
find
(
v
=>
{
if
(
v
.
type
==
item
.
actionReportType
)
{
this
.
switchList
[
v
.
attr
].
push
({
actionReportType
:
item
.
actionReportType
,
switchStatus
:
item
.
switchStatus
,
switchText
:
item
.
switchText
,
switchType
:
item
.
switchType
})
}
})
})
},
handlebattleOn
(
data
,
sign
)
{
handlebattleOn
(
data
,
sign
)
{
this
.
setectList
=
[]
this
.
config
=
{
this
.
setectList
.
push
(
data
)
this
.
wechat
=
{
staffId
:
''
,
staffId
:
''
,
automaticName
:
''
automaticName
:
''
}
}
...
@@ -241,11 +228,13 @@ export default {
...
@@ -241,11 +228,13 @@ export default {
this
.
battleVisible
=
true
this
.
battleVisible
=
true
// 编辑
// 编辑
if
(
sign
)
{
if
(
sign
)
{
this
.
wechat
.
staffId
=
data
.
staffId
this
.
config
.
staffId
=
data
.
staffId
this
.
wechat
.
automaticName
=
data
.
staffName
this
.
config
.
automaticName
=
data
.
staffName
this
.
config
.
merchantId
=
data
.
enterpriseMerchantId
this
.
config
.
merchantId
=
data
.
merchantId
this
.
config
.
merchantName
=
data
.
enterpriseMerchantName
this
.
config
.
merchantName
=
data
.
merchantName
this
.
initswitchList
(
data
.
switchList
)
this
.
config
.
groupMerchantId
=
data
.
groupMerchantId
this
.
config
.
groupMerchantName
=
data
.
groupMerchantName
this
.
config
.
content
=
data
.
content
data
.
groupConfigList
.
forEach
(
item
=>
{
data
.
groupConfigList
.
forEach
(
item
=>
{
let
groupHideAttr
=
this
.
groupToType
.
find
(
k
=>
k
.
type
==
item
.
actionReportType
)?.
attr
let
groupHideAttr
=
this
.
groupToType
.
find
(
k
=>
k
.
type
==
item
.
actionReportType
)?.
attr
if
(
!
groupHideAttr
)
return
if
(
!
groupHideAttr
)
return
...
@@ -273,7 +262,6 @@ export default {
...
@@ -273,7 +262,6 @@ export default {
this
.
$apis
.
battle
.
activityreportWorktool
({
cloudId
:
this
.
idBefEncryption
}).
then
(
res
=>
{
this
.
$apis
.
battle
.
activityreportWorktool
({
cloudId
:
this
.
idBefEncryption
}).
then
(
res
=>
{
this
.
selectGroupName
=
res
.
data
.
result
||
[]
this
.
selectGroupName
=
res
.
data
.
result
||
[]
})
})
this
.
getGroupList
(
this
.
wechat
.
staffId
)
}
else
{
}
else
{
this
.
groupCofListInput
=
{
this
.
groupCofListInput
=
{
clewWordReportValue
:
[{
name
:
''
}]
clewWordReportValue
:
[{
name
:
''
}]
...
@@ -281,44 +269,18 @@ export default {
...
@@ -281,44 +269,18 @@ export default {
}
}
this
.
getDepartmentTree
()
this
.
getDepartmentTree
()
},
},
getGroupList
(
id
,
isReset
=
false
)
{
this
.
$apis
.
saasOrder
.
getGroupList
({
msgStaffIdList
:
id
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
groupList
=
res
.
data
if
(
isReset
)
{
this
.
groupCofList
=
{
zhanReport
:
[],
orderReport
:
[],
saReport
:
[],
saPerReport
:
[],
scheduleReport
:
[],
clewWordReport
:
[]
}
}
}
})
},
//所属企业
//所属企业
handleMerchatChange
(
val
)
{
handleMerchatChange
(
val
)
{
console
.
log
(
val
)
this
.
getDepartmentTree
()
this
.
getDepartmentTree
()
this
.
merchantList
.
forEach
(
item
=>
{
this
.
merchantList
.
forEach
(
item
=>
{
item
.
merchantId
==
val
?
(
this
.
config
.
m
erchantName
=
item
.
merchantName
)
:
''
item
.
merchantId
==
val
?
(
this
.
config
.
groupM
erchantName
=
item
.
merchantName
)
:
''
})
})
this
.
wechat
=
{
this
.
config
.
staffId
=
''
staffId
:
''
,
this
.
config
.
automaticName
=
''
automaticName
:
''
}
this
.
groupCofList
=
{
zhanReport
:
[],
orderReport
:
[],
saReport
:
[],
saPerReport
:
[],
scheduleReport
:
[],
clewWordReport
:
[]
}
},
},
async
getDepartmentTree
()
{
async
getDepartmentTree
()
{
let
params
=
{
addChildrensFlag
:
true
,
queryMerchantId
:
this
.
config
.
m
erchantId
,
loginStatus
:
1
}
let
params
=
{
addChildrensFlag
:
true
,
queryMerchantId
:
this
.
config
.
groupM
erchantId
,
loginStatus
:
1
}
let
data
=
await
this
.
$apis
.
saasOrder
.
getlistDepartmentTree
(
params
)
let
data
=
await
this
.
$apis
.
saasOrder
.
getlistDepartmentTree
(
params
)
this
.
ids
=
[]
this
.
ids
=
[]
this
.
automaticData
=
data
this
.
automaticData
=
data
...
@@ -368,28 +330,18 @@ export default {
...
@@ -368,28 +330,18 @@ export default {
})
})
},
},
clearData
()
{
clearData
()
{
this
.
setectList
=
[]
// this.$refs.battleRef.clearMutiSelect()
this
.
$refs
.
battleRef
.
clearMutiSelect
()
//所属企业默认选择第一个
this
.
config
.
m
erchantId
=
this
.
merchantList
[
0
]?.
merchantId
this
.
config
.
groupM
erchantId
=
this
.
merchantList
[
0
]?.
merchantId
this
.
wechat
=
{
this
.
config
=
{
staffId
:
''
,
staffId
:
''
,
automaticName
:
''
automaticName
:
''
}
}
this
.
hideSelect
()
this
.
hideSelect
()
},
},
handlebattleConfirm
()
{
handlebattleConfirm
()
{
if
(
!
this
.
editForm
.
merchantName
)
{
this
.
$refs
.
battleRef
.
validate
(
valid
=>
{
this
.
merchantFlag
=
true
if
(
valid
)
{
return
}
if
(
!
this
.
wechat
.
staffId
)
{
this
.
$message
({
message
:
'请选择推送人'
,
type
:
'error'
,
customClass
:
'message-Z-zinde'
})
return
true
}
let
isGroupEmpty
=
Object
.
keys
(
this
.
groupCofList
)
let
isGroupEmpty
=
Object
.
keys
(
this
.
groupCofList
)
.
map
(
item
=>
this
.
groupCofList
[
item
].
length
)
.
map
(
item
=>
this
.
groupCofList
[
item
].
length
)
.
every
(
item
=>
item
==
0
)
.
every
(
item
=>
item
==
0
)
...
@@ -405,36 +357,20 @@ export default {
...
@@ -405,36 +357,20 @@ export default {
return
true
return
true
}
}
var
params
=
{
var
params
=
{
enterpriseMerchantId
:
this
.
config
.
merchantId
,
merchantId
:
this
.
config
.
merchantId
,
enterpriseMerchantName
:
this
.
config
.
merchantName
,
merchantName
:
this
.
config
.
merchantName
,
staffId
:
this
.
wechat
.
staffId
,
staffId
:
this
.
config
.
staffId
,
staffName
:
this
.
wechat
.
automaticName
,
staffName
:
this
.
config
.
automaticName
,
groupMerchantId
:
this
.
config
.
merchantId
,
updatedBy
:
this
.
$globalState
.
session
.
accountName
,
yqMerchantIdList
:
[],
groupConfigList
:
[],
groupConfigList
:
[],
merchantId
:
this
.
setectList
[
0
]?.
merchantId
,
content
:
this
.
config
.
content
scene
:
1
}
}
let
switchList
=
[]
let
reportParams
=
[
'saReport'
,
'zhanReport'
,
'orderReport'
,
'saPerReport'
,
'scheduleReport'
,
'clewWordReport'
]
reportParams
.
forEach
(
item
=>
{
switchList
.
push
(...
this
.
switchList
[
item
])
})
switchList
.
map
(
item
=>
(
item
.
switchStatus
=
item
.
switchStatus
?
'Y'
:
'N'
))
params
.
switchList
=
switchList
this
.
setectList
.
forEach
(
item
=>
{
params
.
yqMerchantIdList
.
push
(
item
.
yqMerchantId
)
})
Object
.
keys
(
this
.
groupCofList
).
map
(
item
=>
{
Object
.
keys
(
this
.
groupCofList
).
map
(
item
=>
{
let
type
=
this
.
groupToType
.
find
(
k
=>
k
.
attr
==
item
).
type
if
(
this
.
groupCofList
[
item
].
length
)
{
if
(
this
.
groupCofList
[
item
].
length
)
{
this
.
groupCofList
[
item
].
forEach
(
k
=>
{
this
.
groupCofList
[
item
].
forEach
(
k
=>
{
params
.
groupConfigList
.
push
({
params
.
groupConfigList
.
push
({
groupId
:
k
.
groupId
,
groupId
:
k
.
groupId
,
groupName
:
k
.
roomName
,
groupName
:
k
.
roomName
,
groupMerchantId
:
this
.
config
.
merchantId
,
groupMerchantId
:
this
.
config
.
groupMerchantId
actionReportType
:
type
})
})
})
})
}
else
if
(
this
.
groupCofListInput
[
item
+
'Value'
].
length
)
{
}
else
if
(
this
.
groupCofListInput
[
item
+
'Value'
].
length
)
{
...
@@ -442,16 +378,12 @@ export default {
...
@@ -442,16 +378,12 @@ export default {
params
.
groupConfigList
.
push
({
params
.
groupConfigList
.
push
({
groupId
:
this
.
idBefEncryption
+
'_R:'
+
k
.
name
,
groupId
:
this
.
idBefEncryption
+
'_R:'
+
k
.
name
,
groupName
:
k
.
name
,
groupName
:
k
.
name
,
groupMerchantId
:
this
.
config
.
merchantId
,
groupMerchantId
:
this
.
config
.
groupMerchantId
actionReportType
:
type
})
})
})
})
}
}
})
})
this
.
$apis
.
clewOrder
.
updateClueReportConfig
(
params
).
then
(
res
=>
{
console
.
log
(
params
,
'params---'
)
this
.
$apis
.
saasOrder
.
updateYqConfig
(
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'配置成功'
:
res
.
message
,
message
:
res
.
code
==
'0'
?
'配置成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
...
@@ -460,6 +392,8 @@ export default {
...
@@ -460,6 +392,8 @@ export default {
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
}
}
})
})
}
})
},
},
handlebattleClose
()
{
handlebattleClose
()
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
...
...
src/views/bulletin/components/clewOrder/index.vue
View file @
0ede34d
...
@@ -3,23 +3,18 @@
...
@@ -3,23 +3,18 @@
<div
class=
"activity"
>
<div
class=
"activity"
>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"flex-between title"
>
<div
class=
"flex-between title"
>
<div
class=
"title-text"
>
专员列表
</div>
<div
class=
"title-text"
>
喜报列表
</div>
<!--
<el-button
:size=
"size"
<el-button
:size=
"size"
type=
"primary"
class=
"battle-set-btn"
@
click=
"handlebattleOn()"
>
新增
</el-button>
type=
"primary"
class=
"battle-set-btn"
@
click=
"battleSetHandle"
>
批量配置专员
</el-button>
-->
</div>
</div>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLTable
ref=
"battleRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
@
selectionTable=
"selectionTable"
>
<GLTable
ref=
"battleRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
@
selectionTable=
"selectionTable"
>
<div
slot=
"activityTime"
slot-scope=
"scope"
>
{{
dateFormatFun
(
scope
.
scope
.
startTime
)
}}
-
{{
dateFormatFun
(
scope
.
scope
.
endTime
)
}}
</div>
<div
slot=
"activityTime"
slot-scope=
"scope"
>
{{
dateFormatFun
(
scope
.
scope
.
startTime
)
}}
-
{{
dateFormatFun
(
scope
.
scope
.
endTime
)
}}
</div>
<div
slot=
"content"
slot-scope=
"scope"
>
<div
slot=
"content"
slot-scope=
"scope"
>
<div
v-for=
"(item, index) in formatterContent(scope.scope)"
:key=
"index"
>
{{
item
}}
</div>
<div
v-for=
"(item, index) in formatterContent(scope.scope)"
:key=
"index"
>
{{
item
}}
</div>
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"!scope.scope.staffId"
@
click=
"handlebattleOn(scope.scope)"
>
配置
</el-button>
<el-button
type=
"text"
@
click=
"handlebattleOn(scope.scope, 'edit')"
>
编辑
</el-button>
<el-button
type=
"text"
v-else
@
click=
"handlebattleOn(scope.scope, 'edit')"
>
编辑
</el-button>
</div>
</div>
</GLTable>
</GLTable>
</div>
</div>
...
@@ -459,35 +454,38 @@ export default {
...
@@ -459,35 +454,38 @@ export default {
// }],
// }],
// 搜索
// 搜索
searchForm
:
{
searchForm
:
{
yqMerchantId
:
''
,
merchantId
:
''
,
yqMerchantName
:
''
,
merchantName
:
''
,
enterpriseMerchantId
:
''
,
groupMerchantName
:
''
scene
:
1
},
},
searchFormData
:
[
searchFormData
:
[
{
{
label
:
'
园区
店'
,
label
:
'
4S
店'
,
name
:
'
yqM
erchantName'
,
name
:
'
m
erchantName'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
128
maxlength
:
128
},
},
{
{
label
:
'商户号'
,
label
:
'商户号'
,
name
:
'
unionM
erchantId'
,
name
:
'
m
erchantId'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
11
maxlength
:
11
},
},
{
{
label
:
'4S店'
,
label
:
'企微名称'
,
name
:
'merchantName'
,
name
:
'groupMerchantName'
,
type
:
'input'
,
type
:
'select'
,
maxlength
:
128
width
:
'215px'
,
optionList
:
[],
optionId
:
'merchantId'
,
optionLabel
:
'merchantName'
,
optionsName
:
'merchantList'
}
}
],
],
// 表格
// 表格
// userList: [],
// userList: [],
selectArray
:
[],
selectArray
:
[],
getListApi
:
this
.
$apis
.
saasOrder
.
getYqReportl
ist
,
getListApi
:
this
.
$apis
.
clewOrder
.
getClueReportL
ist
,
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
true
,
...
@@ -649,10 +647,9 @@ export default {
...
@@ -649,10 +647,9 @@ export default {
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
yqMerchantId
:
''
,
merchantId
:
''
,
yqMerchantName
:
''
,
merchantName
:
''
,
enterpriseMerchantId
:
''
,
groupMerchantName
:
''
scene
:
1
}
}
this
.
handleSearch
()
this
.
handleSearch
()
},
},
...
@@ -793,99 +790,10 @@ export default {
...
@@ -793,99 +790,10 @@ export default {
handlestaffbattleClose
()
{
handlestaffbattleClose
()
{
this
.
battlestaffVisible
=
false
this
.
battlestaffVisible
=
false
},
},
handlebattleConfirm
()
{
if
(
!
this
.
wechat
.
staffId
)
{
this
.
$message
({
message
:
'请选择推送人'
,
type
:
'error'
,
customClass
:
'message-Z-zinde'
})
return
true
}
let
isGroupEmpty
=
Object
.
keys
(
this
.
groupCofList
)
.
map
(
item
=>
this
.
groupCofList
[
item
].
length
)
.
every
(
item
=>
item
==
0
)
let
isGroupEmptyInput
=
Object
.
keys
(
this
.
groupCofListInput
)
.
map
(
item
=>
this
.
groupCofListInput
[
item
].
length
)
.
every
(
item
=>
item
==
0
)
if
(
isGroupEmpty
&&
isGroupEmptyInput
)
{
this
.
$message
({
message
:
'推送配置必须配置至少一项'
,
type
:
'error'
,
customClass
:
'message-Z-zinde'
})
return
true
}
var
params
=
{
enterpriseMerchantId
:
this
.
config
.
merchantId
,
enterpriseMerchantName
:
this
.
config
.
merchantName
,
staffId
:
this
.
wechat
.
staffId
,
staffName
:
this
.
wechat
.
automaticName
,
// groupId: this.wechat.groupId,
// groupName: this.wechat.roomName,
groupMerchantId
:
this
.
config
.
merchantId
,
updatedBy
:
this
.
$globalState
.
session
.
accountName
,
yqMerchantIdList
:
[],
groupConfigList
:
[],
merchantId
:
this
.
setectList
[
0
]?.
merchantId
,
scene
:
1
}
this
.
setectList
.
forEach
(
item
=>
{
params
.
yqMerchantIdList
.
push
(
item
.
yqMerchantId
)
})
Object
.
keys
(
this
.
groupCofList
).
map
(
item
=>
{
// console.log(this.groupCofList[item])
let
type
=
this
.
groupToType
.
find
(
k
=>
k
.
attr
==
item
).
type
if
(
this
.
groupCofList
[
item
].
length
)
{
this
.
groupCofList
[
item
].
forEach
(
k
=>
{
params
.
groupConfigList
.
push
({
groupId
:
k
.
groupId
,
groupName
:
k
.
roomName
,
groupMerchantId
:
this
.
config
.
merchantId
,
actionReportType
:
type
})
})
}
else
if
(
this
.
groupCofListInput
[
item
+
'Value'
].
length
)
{
this
.
groupCofListInput
[
item
+
'Value'
].
forEach
(
k
=>
{
params
.
groupConfigList
.
push
({
groupId
:
this
.
idBefEncryption
+
'_R:'
+
k
.
name
,
groupName
:
k
.
name
,
groupMerchantId
:
this
.
config
.
merchantId
,
actionReportType
:
type
})
})
}
})
console
.
log
(
params
,
'params---'
)
this
.
$apis
.
saasOrder
.
updateYqConfig
(
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'配置成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
if
(
res
.
data
)
{
this
.
battleVisible
=
false
this
.
handleSearch
()
this
.
clearData
()
}
})
},
handlebattleClose
()
{
this
.
battleVisible
=
false
this
.
clearData
()
},
handleDetails
()
{},
handleDetails
()
{},
addGroup
(
group
)
{
group
.
push
({
name
:
''
})
},
delGroup
(
group
,
i
)
{
group
.
splice
(
i
,
1
)
},
handlebattleOn
(
data
,
sign
)
{
handlebattleOn
(
data
,
sign
)
{
let
params
=
{
let
params
=
{
data
:
data
,
data
:
data
sign
:
sign
?
sign
:
''
}
}
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/bulletin/addClewConfig'
,
path
:
'/bulletin/addClewConfig'
,
...
@@ -957,23 +865,6 @@ export default {
...
@@ -957,23 +865,6 @@ export default {
// }
// }
// this.getDepartmentTree()
// this.getDepartmentTree()
},
},
getGroupList
(
id
,
isReset
=
false
)
{
this
.
$apis
.
saasOrder
.
getGroupList
({
msgStaffIdList
:
id
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
groupList
=
res
.
data
if
(
isReset
)
{
this
.
groupCofList
=
{
xiReport
:
[],
zhanReport
:
[],
orderReport
:
[],
saReport
:
[],
saPerReport
:
[],
scheduleReport
:
[]
}
}
}
})
},
handleSetting
()
{
handleSetting
()
{
this
.
drawer
=
true
this
.
drawer
=
true
},
},
...
...
src/views/bulletin/components/dialogs/clewWordDialog.vue
View file @
0ede34d
...
@@ -34,16 +34,17 @@
...
@@ -34,16 +34,17 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
dialog
from
'./dialog'
export
default
{
export
default
{
mixins
:
[
dialog
],
props
:
{
content
:
{
type
:
String
,
default
:
''
},
isDialogVisible
:
Boolean
},
data
()
{
data
()
{
return
{
return
{
mode
:
'big'
,
mode
:
'big'
,
wordType
:
{
switchType
:
701
,
switchText
:
''
},
btnList
:
[
btnList
:
[
{
{
type
:
1
,
type
:
1
,
...
@@ -70,39 +71,31 @@ export default {
...
@@ -70,39 +71,31 @@ export default {
name
:
'浏览时长'
name
:
'浏览时长'
}
}
],
],
params
:
[
'wordType'
],
mapList
:
{
mapList
:
{
销售顾问
:
'${employeeName}'
,
客户姓名
:
'${customerName}'
,
客户姓名
:
'${customerName}'
,
车型
:
'${carTyp
e}'
,
手机号
:
'${employeeNam
e}'
,
订单总金额
:
'${totalPri
ce}'
,
线索来源
:
'${sour
ce}'
,
阳光激励费
:
'${sunshineInspiration
}'
,
具体线索
:
'${clue
}'
,
商品名称
:
'${goodsNames
}'
浏览时长
:
'${browseTime
}'
}
}
}
}
},
},
watch
:
{
methods
:
{
content
(
val
)
{
initData
()
{
this
.
switchList
.
wordReport
.
forEach
(
i
=>
{
this
.
params
.
find
(
data
=>
{
if
(
this
[
data
].
switchType
==
i
.
switchType
)
{
this
[
data
]
=
this
.
$common
.
utils
.
deepClone
(
i
)
}
})
})
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
verbalRef
&&
this
.
$refs
.
verbalRef
.
update
(
this
.
wordType
.
switchText
)
this
.
$refs
.
verbalRef
&&
this
.
$refs
.
verbalRef
.
update
(
val
)
})
})
}
},
},
methods
:
{
handlebattleConfirm
()
{
handlebattleConfirm
()
{
this
.
isDialogVisible
=
false
this
.
isDialogVisible
=
false
let
switchList
=
[]
let
content
=
this
.
$refs
.
verbalRef
.
getTextValue
()
this
.
params
.
forEach
(
data
=>
{
if
(
data
==
'wordType'
)
this
[
data
].
switchText
=
this
.
$refs
.
verbalRef
.
getTextValue
(
)
this
.
$emit
(
'handlePreview'
,
{
data
:
content
}
)
switchList
.
push
(
this
[
data
])
},
})
handlebattleClose
()
{
this
.
$emit
(
'handle
Preview'
,
{
key
:
'wordReport'
,
data
:
switchList
}
)
this
.
$emit
(
'handle
Close'
)
}
}
}
}
}
}
...
...
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