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 bd0d3caa
authored
Jan 11, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.4.0-0117' of
http://192.168.3.233:8090/saas/scrm-micro-battles
into v3.4.0-0117
2 parents
a4dcf5fe
fd940d85
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
149 additions
and
24 deletions
src/api/modules/seckillActivity.js
src/assets/css/public.scss
src/views/orderManage/index.vue
src/views/saasOrder/index.vue
src/views/seckillActivity/editCrowdFund.vue
src/api/modules/seckillActivity.js
View file @
bd0d3ca
...
...
@@ -183,6 +183,17 @@ const getPayListApi = params => {
})
}
/**支付商户管理-下拉列表 */
const
getPayMerchatListApi
=
params
=>
{
params
.
method
=
'entmicro.api.payment.pageListPayment'
return
http
({
url
:
'rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
/**数据看板员工排名 */
const
getRankListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.activity.ranking.page'
...
...
@@ -281,4 +292,4 @@ const getCrowdfundingParams = params => {
sign
:
true
})
}
export
default
{
getPayListApi
,
liveroomDetailexport
,
liveroomDetailpage
,
liveroomOverview
,
getActivityPageApi
,
getCrowdfundListApi
,
exportCrowdfundApi
,
getBrowseListApi
,
exportBrowseApi
,
toggleStatusApi
,
deleteActivityApi
,
topActivityApi
,
getSharedApi
,
addOrUpdateActivityApi
,
getActivityDetailApi
,
getCrowdSharedApi
,
getLiveListApi
,
getRankListApi
,
exportRankListApi
,
getDataBoardApi
,
getVisitorListApi
,
getSharedListApi
,
getDailyOrderQuantityStatistics
,
exportDailyOrderQuantityStatistics
,
getCrowdfundingParams
}
export
default
{
getPayListApi
,
getPayMerchatListApi
,
liveroomDetailexport
,
liveroomDetailpage
,
liveroomOverview
,
getActivityPageApi
,
getCrowdfundListApi
,
exportCrowdfundApi
,
getBrowseListApi
,
exportBrowseApi
,
toggleStatusApi
,
deleteActivityApi
,
topActivityApi
,
getSharedApi
,
addOrUpdateActivityApi
,
getActivityDetailApi
,
getCrowdSharedApi
,
getLiveListApi
,
getRankListApi
,
exportRankListApi
,
getDataBoardApi
,
getVisitorListApi
,
getSharedListApi
,
getDailyOrderQuantityStatistics
,
exportDailyOrderQuantityStatistics
,
getCrowdfundingParams
}
src/assets/css/public.scss
View file @
bd0d3ca
...
...
@@ -136,7 +136,7 @@ html {
.el-range-editor.is-active
,
.el-range-editor.is-active
:hover
{
border-color
:
#5850ff
;
width
:
215px
;
//
width: 215px;
}
.marketing
.container
{
...
...
src/views/orderManage/index.vue
View file @
bd0d3ca
...
...
@@ -32,7 +32,7 @@
class=
"default-blue-btn"
:size=
"size"
type=
"default"
@
click=
"
importVisible = true
"
@
click=
"
visibleImportDialog(true)
"
>
导入
</el-button>
<el-button
class=
"default-blue-btn"
...
...
@@ -501,6 +501,7 @@
class=
"upload-input"
accept=
".xlsx, .xls"
@
change=
"e => handleXlsxChange(e)"
ref=
"uploadInput"
/>
</el-button>
<el-button
...
...
@@ -1690,14 +1691,13 @@ export default {
},
handleXlsxChange
(
e
)
{
console
.
log
(
e
)
var
[
file
]
=
e
.
srcElement
.
files
if
(
!
file
)
return
let
[
file
]
=
e
.
srcElement
.
files
,
reader
=
new
FileReader
()
if
(
!
file
)
return
this
.
$notify
({
title
:
'提示'
,
message
:
'文件上传中,请稍后'
})
var
reader
=
new
FileReader
()
// 默认1MB
this
.
file
.
fileName
=
file
.
name
reader
.
readAsDataURL
(
file
)
...
...
@@ -1706,7 +1706,11 @@ export default {
const
arrBase64
=
imgFile
.
split
(
','
)
const
splitStr
=
file
.
name
.
split
(
'.'
)
this
.
file
.
fileType
=
splitStr
[
splitStr
.
length
-
1
]
+
'@'
+
arrBase64
[
1
]
console
.
log
(
el
)
this
.
$notify
({
title
:
'提示'
,
message
:
'图片上传成功'
,
type
:
'success'
})
}
},
...
...
@@ -1718,16 +1722,12 @@ export default {
if
(
fileType
)
this
.
$apis
.
orderManage
.
importCrowdFundingOrder
({
file
:
fileType
}).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
{
this
.
importVisible
=
false
this
.
$notify
({
title
:
'提示'
,
message
:
'订单导入成功'
,
type
:
'success'
})
this
.
file
=
{
fileName
:
''
,
fileType
:
''
}
this
.
visibleImportDialog
()
this
.
searchForm
.
requestSource
!=
0
?
this
.
handleSearch
()
:
this
.
$refs
.
allOrderRef
.
refreshTable
(
false
)
}
})
...
...
@@ -1741,6 +1741,15 @@ export default {
alink
.
download
=
'订单导入模板.xlsx'
alink
.
click
()
alink
.
remove
()
},
visibleImportDialog
(
val
=
false
)
{
if
(
this
.
$refs
?.
uploadInput
)
this
.
$refs
.
uploadInput
.
value
=
null
this
.
file
=
{
fileName
:
''
,
fileType
:
''
}
this
.
importVisible
=
val
}
}
}
...
...
src/views/saasOrder/index.vue
View file @
bd0d3ca
...
...
@@ -7,7 +7,9 @@
<div
class=
"title-text"
>
专员列表
</div>
<el-button
:size=
"size"
type=
"primary"
class=
"battle-set-btn"
@
click=
"battleSetHandle"
>
批量配置专员
</el-button>
</div>
<GLTable
ref=
"battleRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
@
selectionTable=
"selectionTable"
>
<!--
<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
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"!scope.scope.staffId"
@
click=
"handlebattleOn(scope.scope)"
>
配置
</el-button>
...
...
@@ -111,7 +113,26 @@ export default {
setectList
:
[],
merchantList
:
[],
groupList
:
[],
tableSearchForm
:
{},
// tableSearchForm: {},
// 搜索
searchForm
:
{
yqMerchantId
:
''
,
yqMerchantName
:
''
},
searchFormData
:
[
{
label
:
'园区店'
,
name
:
'yqMerchantName'
,
type
:
'input'
,
maxlength
:
128
},
{
label
:
'商户号'
,
name
:
'yqMerchantId'
,
type
:
'input'
,
maxlength
:
11
}
],
// 表格
// userList: [],
selectArray
:
[],
...
...
@@ -141,6 +162,7 @@ export default {
}
]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
defaultProps
:
{
children
:
'children'
,
label
:
'name'
...
...
@@ -161,6 +183,9 @@ export default {
staffId
:
''
,
automaticName
:
''
,
roomName
:
''
},
baseData
:
{
merchantList
:
[]
}
}
},
...
...
@@ -169,6 +194,7 @@ export default {
this
.
merchantList
=
this
.
$saasOrder
?.
merchantList
||
[]
this
.
config
.
merchantId
=
this
.
merchantList
[
0
]?.
merchantId
this
.
config
.
merchantName
=
this
.
merchantList
[
0
]?.
merchantName
// this.getOptionsList('searchFormData')
},
computed
:
{
domEl
()
{
...
...
@@ -187,8 +213,41 @@ export default {
}
},
methods
:
{
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
''
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
else
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
].
length
)
{
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
''
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
})
}
},
handleReset
()
{
this
.
searchForm
=
{
yqMerchantId
:
''
,
yqMerchantName
:
''
}
this
.
handleSearch
()
},
clearData
()
{
this
.
setectList
=
[]
this
.
$refs
.
battleRef
.
clearMutiSelect
()
this
.
config
.
merchantId
=
this
.
merchantList
[
0
]?.
merchantId
this
.
wechat
=
{
automaticName
:
''
,
...
...
@@ -241,11 +300,12 @@ export default {
battleSetHandle
()
{
if
(
this
.
setectList
.
length
==
0
)
{
this
.
$message
({
message
:
'请选择
活动
'
,
message
:
'请选择
园区店
'
,
type
:
'error'
})
return
}
this
.
getDepartmentTree
()
this
.
battleVisible
=
true
},
dateFormatFun
(
date
)
{
...
...
@@ -307,8 +367,8 @@ export default {
})
},
handlebattleClose
()
{
this
.
clearData
()
this
.
battleVisible
=
false
this
.
clearData
()
},
handleDetails
()
{
},
handlebattleOn
(
data
,
sign
)
{
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
bd0d3ca
...
...
@@ -889,7 +889,9 @@ export default {
reservationInstallContactsName
:
''
,
reservationInstallContactsPhone
:
''
,
targetStock
:
''
,
paymentAccountSource
:
'1'
,
paymentAccountId
:
''
,
payMannerId
:
''
,
paymentModel
:
1
,
// 战报内容配置
activityActionReport
:
{
...
...
@@ -1553,6 +1555,28 @@ export default {
addHtml
:
'live'
},
{
label
:
'账户类型'
,
name
:
'paymentAccountSource'
,
type
:
'radio'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionList
:
[
{
confId
:
'1'
,
confName
:
'广联'
},
{
confId
:
'2'
,
confName
:
'服务商'
}
],
isDisabled
:
false
,
handleRadioChange
:
(
value
,
targetItem
)
=>
{
this
.
editForm
.
paymentAccountId
=
''
this
.
configEditFormData
.
find
(
item
=>
item
.
name
==
'paymentAccountId'
).
optionList
=
value
==
'1'
?
this
.
baseData
.
payList
:
this
.
baseData
.
payMerchatList
}
},
{
label
:
'定金收款账户'
,
name
:
'paymentAccountId'
,
type
:
'select'
,
...
...
@@ -1676,7 +1700,11 @@ export default {
COVER_LIVE
:
'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/COVER_LIVE.gif'
,
COVER_REPLAY
:
'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/COVER_REPLAY.gif'
}),
defaultFloatingMaskDiagram
:
'https://wx.glsx.com.cn/upload/biz/ba63349f-8e9e-4e80-be3b-45cc38dcf13f.gif'
defaultFloatingMaskDiagram
:
'https://wx.glsx.com.cn/upload/biz/ba63349f-8e9e-4e80-be3b-45cc38dcf13f.gif'
,
baseData
:
{
payList
:
[],
payMerchatList
:
[]
}
}
},
filters
:
{
...
...
@@ -1699,7 +1727,7 @@ export default {
this
.
editFormData
.
map
(
item
=>
{
if
(
!
[
'activityName'
,
'activityImg'
,
'promotion'
].
includes
(
item
.
name
))
this
.
changeFormAttr
(
'editFormData'
,
'isDisabled'
,
[
item
.
label
],
true
)
})
this
.
changeFormAttr
(
'configEditFormData'
,
'isDisabled'
,
[
'定金收款账户'
],
true
)
this
.
changeFormAttr
(
'configEditFormData'
,
'isDisabled'
,
[
'
账户类型'
,
'
定金收款账户'
],
true
)
}
}
},
...
...
@@ -2269,6 +2297,8 @@ export default {
this
.
handleMusicChange
(
this
.
musicList
.
length
-
1
)
}
}
// 定金收款账户
this
.
editForm
.
paymentAccountSource
=
this
.
editForm
.
paymentAccountSource
+
''
// 表单设置
this
.
editForm
.
formDescribeCheck
=
[]
this
.
editForm
.
selectCarNumberFlag
=
this
.
editForm
.
selectCarNumberFlag
||
1
...
...
@@ -2423,6 +2453,9 @@ export default {
param
[
item
]
=
''
})
}
// 定金收款账户
param
.
payMannerId
=
param
.
paymentAccountSource
==
1
?
''
:
param
.
paymentAccountId
param
.
paymentAccountId
=
param
.
paymentAccountSource
==
1
?
param
.
paymentAccountId
:
''
// 标杆门店总产值/元(已结束战报)
if
(
param
.
activityActionReport
.
signMerchantProduceCount
)
{
param
.
activityActionReport
.
signMerchantProduceCount
=
(
this
.
editForm
.
activityActionReport
.
signMerchantProduceCount
*
10000
).
toFixed
(
0
)
...
...
@@ -2655,15 +2688,27 @@ export default {
this
.
liveEditFormData
.
find
(
item
=>
item
.
name
==
'liveBroadcastRoomId'
).
optionList
=
staff
})
},
// 定金收款账户
getPayList
()
{
this
.
$apis
.
seckillActivity
.
getPayListApi
({}).
then
(
res
=>
{
this
.
configEditFormData
.
find
(
item
=>
item
.
name
==
'paymentAccountId'
).
optionList
=
res
this
.
editForm
.
paymentAccountId
=
this
.
editForm
.
paymentAccountId
||
res
.
find
(
item
=>
item
.
isDefault
==
'Y'
).
id
getPayMerchatList
()
{
this
.
$apis
.
seckillActivity
.
getPayMerchatListApi
({
pageNum
:
1
,
pageSize
:
9999
}).
then
(
res
=>
{
res
.
list
.
forEach
(
item
=>
{
item
.
id
=
item
.
payMannerId
item
.
accountName
=
item
.
mchName
})
this
.
baseData
.
payMerchatList
=
res
.
list
this
.
configEditFormData
.
find
(
item
=>
item
.
name
==
'paymentAccountId'
).
optionList
=
this
.
editForm
.
paymentAccountSource
==
1
?
this
.
baseData
.
payList
:
this
.
baseData
.
payMerchatList
this
.
$nextTick
(()
=>
{
this
.
editStatus
=
false
})
})
},
// 定金收款账户
getPayList
()
{
this
.
$apis
.
seckillActivity
.
getPayListApi
({}).
then
(
res
=>
{
this
.
baseData
.
payList
=
res
this
.
editForm
.
paymentAccountSource
=
this
.
editForm
.
paymentAccountSource
||
'1'
this
.
editForm
.
paymentAccountId
=
this
.
editForm
.
paymentAccountId
||
this
.
editForm
.
payMannerId
||
res
.
find
(
item
=>
item
.
isDefault
==
'Y'
).
id
this
.
getPayMerchatList
()
})
}
}
}
...
...
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