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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
88 additions
and
164 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) {
// return Promise.resolve(cfg)
// }
//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.glsx.com.cn/mock/635fc7a254298ae78614407a/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')
}
export
const
config
=
{
install
(
vue
,
cfg
)
{
...
...
src/views/bulletin/addClewConfig.vue
View file @
0ede34d
This diff is collapsed.
Click to expand it.
src/views/bulletin/components/clewOrder/index.vue
View file @
0ede34d
...
...
@@ -3,23 +3,18 @@
<div
class=
"activity"
>
<!-- 表格区域 开始 -->
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"flex-between title"
>
<div
class=
"title-text"
>
专员列表
</div>
<!--
<el-button
:size=
"size"
type=
"primary"
class=
"battle-set-btn"
@
click=
"battleSetHandle"
>
批量配置专员
</el-button>
-->
<div
class=
"title-text"
>
喜报列表
</div>
<el-button
:size=
"size"
type=
"primary"
class=
"battle-set-btn"
@
click=
"handlebattleOn()"
>
新增
</el-button>
</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"
>
<div
slot=
"activityTime"
slot-scope=
"scope"
>
{{
dateFormatFun
(
scope
.
scope
.
startTime
)
}}
-
{{
dateFormatFun
(
scope
.
scope
.
endTime
)
}}
</div>
<div
slot=
"content"
slot-scope=
"scope"
>
<div
v-for=
"(item, index) in formatterContent(scope.scope)"
:key=
"index"
>
{{
item
}}
</div>
</div>
<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"
v-else
@
click=
"handlebattleOn(scope.scope, 'edit')"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"handlebattleOn(scope.scope, 'edit')"
>
编辑
</el-button>
</div>
</GLTable>
</div>
...
...
@@ -459,35 +454,38 @@ export default {
// }],
// 搜索
searchForm
:
{
yqMerchantId
:
''
,
yqMerchantName
:
''
,
enterpriseMerchantId
:
''
,
scene
:
1
merchantId
:
''
,
merchantName
:
''
,
groupMerchantName
:
''
},
searchFormData
:
[
{
label
:
'
园区
店'
,
name
:
'
yqM
erchantName'
,
label
:
'
4S
店'
,
name
:
'
m
erchantName'
,
type
:
'input'
,
maxlength
:
128
},
{
label
:
'商户号'
,
name
:
'
unionM
erchantId'
,
name
:
'
m
erchantId'
,
type
:
'input'
,
maxlength
:
11
},
{
label
:
'4S店'
,
name
:
'merchantName'
,
type
:
'input'
,
maxlength
:
128
label
:
'企微名称'
,
name
:
'groupMerchantName'
,
type
:
'select'
,
width
:
'215px'
,
optionList
:
[],
optionId
:
'merchantId'
,
optionLabel
:
'merchantName'
,
optionsName
:
'merchantList'
}
],
// 表格
// userList: [],
selectArray
:
[],
getListApi
:
this
.
$apis
.
saasOrder
.
getYqReportl
ist
,
getListApi
:
this
.
$apis
.
clewOrder
.
getClueReportL
ist
,
tableParams
:
{
listName
:
'list'
,
tableOption
:
true
,
...
...
@@ -649,10 +647,9 @@ export default {
},
handleReset
()
{
this
.
searchForm
=
{
yqMerchantId
:
''
,
yqMerchantName
:
''
,
enterpriseMerchantId
:
''
,
scene
:
1
merchantId
:
''
,
merchantName
:
''
,
groupMerchantName
:
''
}
this
.
handleSearch
()
},
...
...
@@ -793,99 +790,10 @@ export default {
handlestaffbattleClose
()
{
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
()
{},
addGroup
(
group
)
{
group
.
push
({
name
:
''
})
},
delGroup
(
group
,
i
)
{
group
.
splice
(
i
,
1
)
},
handlebattleOn
(
data
,
sign
)
{
let
params
=
{
data
:
data
,
sign
:
sign
?
sign
:
''
data
:
data
}
this
.
$router
.
push
({
path
:
'/bulletin/addClewConfig'
,
...
...
@@ -957,23 +865,6 @@ export default {
// }
// 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
()
{
this
.
drawer
=
true
},
...
...
src/views/bulletin/components/dialogs/clewWordDialog.vue
View file @
0ede34d
...
...
@@ -34,16 +34,17 @@
</
template
>
<
script
>
import
dialog
from
'./dialog'
export
default
{
mixins
:
[
dialog
],
props
:
{
content
:
{
type
:
String
,
default
:
''
},
isDialogVisible
:
Boolean
},
data
()
{
return
{
mode
:
'big'
,
wordType
:
{
switchType
:
701
,
switchText
:
''
},
btnList
:
[
{
type
:
1
,
...
...
@@ -70,39 +71,31 @@ export default {
name
:
'浏览时长'
}
],
params
:
[
'wordType'
],
mapList
:
{
销售顾问
:
'${employeeName}'
,
客户姓名
:
'${customerName}'
,
车型
:
'${carTyp
e}'
,
订单总金额
:
'${totalPri
ce}'
,
阳光激励费
:
'${sunshineInspiration
}'
,
商品名称
:
'${goodsNames
}'
手机号
:
'${employeeNam
e}'
,
线索来源
:
'${sour
ce}'
,
具体线索
:
'${clue
}'
,
浏览时长
:
'${browseTime
}'
}
}
},
methods
:
{
initData
()
{
this
.
switchList
.
wordReport
.
forEach
(
i
=>
{
this
.
params
.
find
(
data
=>
{
if
(
this
[
data
].
switchType
==
i
.
switchType
)
{
this
[
data
]
=
this
.
$common
.
utils
.
deepClone
(
i
)
}
})
})
watch
:
{
content
(
val
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
verbalRef
&&
this
.
$refs
.
verbalRef
.
update
(
this
.
wordType
.
switchText
)
this
.
$refs
.
verbalRef
&&
this
.
$refs
.
verbalRef
.
update
(
val
)
})
},
}
},
methods
:
{
handlebattleConfirm
()
{
this
.
isDialogVisible
=
false
let
switchList
=
[]
this
.
params
.
forEach
(
data
=>
{
if
(
data
==
'wordType'
)
this
[
data
].
switchText
=
this
.
$refs
.
verbalRef
.
getTextValue
(
)
switchList
.
push
(
this
[
data
])
})
this
.
$emit
(
'handle
Preview'
,
{
key
:
'wordReport'
,
data
:
switchList
}
)
let
content
=
this
.
$refs
.
verbalRef
.
getTextValue
()
this
.
$emit
(
'handlePreview'
,
{
data
:
content
}
)
},
handlebattleClose
()
{
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