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 bbe32f96
authored
Dec 22, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
3e11edd1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
16 deletions
src/api/modules/seckillActivity.js
src/views/orderManage/index.vue
src/views/seckillActivity/crowdFundList.vue
src/api/modules/seckillActivity.js
View file @
bbe32f9
...
...
@@ -269,4 +269,14 @@ const liveroomOverview = params => {
})
}
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
}
/**获取众筹活动名称&门店 */
const
getCrowdfundingParams
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.crowdfunding.activity.parameter.list'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
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
}
src/views/orderManage/index.vue
View file @
bbe32f9
...
...
@@ -462,7 +462,7 @@ export default {
orderCode
:
''
,
orderStatuses
:
[],
afterSaleStatuses
:
[],
merchantName
:
''
,
merchantName
s
:
[]
,
customerName
:
''
,
createDate
:
[],
orderSource
:
'4'
,
...
...
@@ -471,7 +471,7 @@ export default {
vin
:
''
,
shareStaffName
:
''
,
shareStaffType
:
''
,
activityName
:
''
,
activityName
s
:
[]
,
goodsName
:
''
,
requestSource
:
'0'
},
...
...
@@ -555,10 +555,9 @@ export default {
this
.
oldVal
.
afterSaleStatuses
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
.
afterSaleStatuses
)
}
},
/*******改👇 */
{
label
:
'门店'
,
name
:
'merchantName'
,
name
:
'merchantName
s
'
,
type
:
'select'
,
labelWidth
:
56
,
multiple
:
true
,
...
...
@@ -630,10 +629,9 @@ export default {
optionLabel
:
'confName'
,
optionsName
:
'shareStaffSourceList'
},
/*******改👇 */
{
label
:
'活动名称'
,
name
:
'activityName'
,
name
:
'activityName
s
'
,
labelWidth
:
56
,
type
:
'select'
,
multiple
:
true
,
...
...
@@ -643,7 +641,7 @@ export default {
noFilter
:
false
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionLabel
:
'confName'
},
{
label
:
'商品名称'
,
...
...
@@ -1175,6 +1173,7 @@ export default {
},
mounted
()
{
this
.
getCrowdfundingParams
()
// this.getCount()
this
.
getOptionsList
(
'searchFormData'
)
},
...
...
@@ -1528,6 +1527,35 @@ export default {
this
.
selectList
=
selectList
.
filter
(
e
=>
e
.
orderCode
)
},
async
getCrowdfundingParams
()
{
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
const
activity
=
await
this
.
$apis
.
seckillActivity
.
getCrowdfundingParams
({
parameterType
:
1
})
let
activityNameList
=
[]
if
(
activity
?.
parameters
&&
activity
.
parameters
.
length
)
{
activity
.
parameters
.
map
(
e
=>
{
activityNameList
.
push
({
confId
:
e
,
confName
:
e
})
})
}
this
.
$set
(
this
.
searchFormData
[
11
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
activityNameList
))
const
merchant
=
await
this
.
$apis
.
seckillActivity
.
getCrowdfundingParams
({
parameterType
:
2
})
let
merchantNameList
=
[]
if
(
merchant
?.
parameters
&&
merchant
.
parameters
.
length
)
{
merchant
.
parameters
.
map
(
e
=>
{
merchantNameList
.
push
({
confId
:
e
,
confName
:
e
})
})
}
this
.
$set
(
this
.
searchFormData
[
3
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
merchantNameList
))
}
}
}
</
script
>
...
...
@@ -1649,4 +1677,7 @@ export default {
margin
:
0
8px
0
0
!important
;
}
}
.el-select
.el-tag
{
max-width
:
65%
!important
;
}
</
style
>
src/views/seckillActivity/crowdFundList.vue
View file @
bbe32f9
...
...
@@ -123,16 +123,16 @@ export default {
isShareVisible
:
false
,
shareForm
:
{},
searchForm
:
{
activityName
:
''
,
activityStatus
:
''
activityNames
:
[],
activityStatus
:
''
,
merchantNames
:
[]
},
tableSearchForm
:
{},
// 搜索
searchFormData
:
[
/*******改👇 */
{
label
:
'活动名称'
,
name
:
'activityName'
,
name
:
'activityName
s
'
,
type
:
'select'
,
width
:
'215px'
,
multiple
:
true
,
...
...
@@ -154,10 +154,9 @@ export default {
optionLabel
:
'confName'
,
optionsName
:
'statusList'
},
/*******改👇 */
{
label
:
'门店'
,
name
:
'merchantName'
,
name
:
'merchantName
s
'
,
type
:
'select'
,
width
:
'215px'
,
multiple
:
true
,
...
...
@@ -427,7 +426,7 @@ export default {
statusList
:
[
{
confId
:
'1'
,
confName
:
'未开始
'
confName
:
'未开始'
},
{
confId
:
'2'
,
...
...
@@ -448,7 +447,11 @@ export default {
},
mounted
()
{
this
.
getCrowdfundingParams
()
this
.
getOptionsList
(
'searchFormData'
)
// const {
// $GLBUTTION_PERMISSIONS: { routes = [], routerBase }
// } = this
...
...
@@ -654,9 +657,43 @@ export default {
setTableFinishFun
()
{
//接收到的数据为空
this
.
$refs
.
activity
.
data
.
length
?
(
this
.
$refs
.
activity
.
tableHeightValues
=
''
)
:
this
.
$refs
.
activity
.
setTableHeightFun
()
},
async
getCrowdfundingParams
()
{
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
const
activity
=
await
this
.
$apis
.
seckillActivity
.
getCrowdfundingParams
({
parameterType
:
1
})
let
activityNameList
=
[]
if
(
activity
?.
parameters
&&
activity
.
parameters
.
length
)
{
activity
.
parameters
.
map
(
e
=>
{
activityNameList
.
push
({
confId
:
e
,
confName
:
e
})
})
}
this
.
$set
(
this
.
searchFormData
[
0
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
activityNameList
))
const
merchant
=
await
this
.
$apis
.
seckillActivity
.
getCrowdfundingParams
({
parameterType
:
2
})
let
merchantNameList
=
[]
if
(
merchant
?.
parameters
&&
merchant
.
parameters
.
length
)
{
merchant
.
parameters
.
map
(
e
=>
{
merchantNameList
.
push
({
confId
:
e
,
confName
:
e
})
})
}
this
.
$set
(
this
.
searchFormData
[
2
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
merchantNameList
))
}
}
}
</
script
>
<
style
scoped
></
style
>
<
style
scoped
>
.el-select
.el-tag
{
max-width
:
65%
!important
;
}
</
style
>
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