Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 e27a18ee
authored
Feb 13, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
收款模式更改为可配置
1 parent
a7c910f4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
40 deletions
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/editCrowdFund.vue
src/views/seckillActivity/crowdFundList.vue
View file @
e27a18e
...
@@ -279,13 +279,50 @@ export default {
...
@@ -279,13 +279,50 @@ export default {
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
baseData
:
{
statusList
:
[
{
{
label
:
'活动名称'
,
confId
:
'1'
,
prop
:
'activityName'
,
confName
:
'未开始 '
width
:
220
},
{
confId
:
'2'
,
confName
:
'进行中'
},
},
{
{
confId
:
'3'
,
confName
:
'已结束'
}
]
},
hideStatus
:
false
}
},
components
:
{
crowdFundingShare
,
singleGltable
:
GLTable
},
mounted
()
{
this
.
getCrowdfundingOrderConfig
()
this
.
getOptionsList
(
'searchFormData'
)
},
methods
:
{
async
getCrowdfundingOrderConfig
()
{
let
tableColumns
=
[
// {
// label: '序号',
// // prop: 'activityImg',
// addHtml: 'tableNum',
// fixed: 'left',
// width: 70
// },
{
label
:
'浏览量(次)'
,
label
:
'浏览量(次)'
,
prop
:
'viewAmount'
,
prop
:
'viewAmount'
,
addHtml
:
'linkText'
,
addHtml
:
'linkText'
,
...
@@ -306,6 +343,12 @@ export default {
...
@@ -306,6 +343,12 @@ export default {
prop
:
'saleAmount'
prop
:
'saleAmount'
},
},
{
{
label
:
'活动名称'
,
prop
:
'activityName'
,
width
:
220
,
fixed
:
'left'
},
{
label
:
'门店'
,
label
:
'门店'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
,
width
:
220
,
width
:
220
,
...
@@ -316,9 +359,10 @@ export default {
...
@@ -316,9 +359,10 @@ export default {
prop
:
'activityImg'
,
prop
:
'activityImg'
,
addHtml
:
'activityImg'
addHtml
:
'activityImg'
},
},
{
{
label
:
'收款模式'
,
label
:
'收款模式'
,
prop
:
'payM
entModel'
,
prop
:
'paym
entModel'
,
width
:
220
,
width
:
220
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
const
model
=
{
const
model
=
{
...
@@ -353,7 +397,15 @@ export default {
...
@@ -353,7 +397,15 @@ export default {
}
}
},
},
{
{
label
:
'秒杀价(元)'
,
label
:
'退单数'
,
prop
:
'chargebackNumber'
},
{
label
:
'核销数'
,
prop
:
'verificationNumber'
},
{
label
:
'定金(元)'
,
name
:
'activityPrice'
,
name
:
'activityPrice'
,
width
:
140
,
width
:
140
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
...
@@ -361,6 +413,14 @@ export default {
...
@@ -361,6 +413,14 @@ export default {
}
}
},
},
{
{
label
:
'众筹价(元)'
,
name
:
'crowdFundingPrice'
,
width
:
140
,
formatter
:
cellValue
=>
{
return
(
cellValue
.
crowdFundingPrice
/
100
).
toFixed
(
2
)
}
},
{
label
:
'库存'
,
label
:
'库存'
,
prop
:
'goodsStock'
,
prop
:
'goodsStock'
,
width
:
110
width
:
110
...
@@ -382,42 +442,19 @@ export default {
...
@@ -382,42 +442,19 @@ export default {
}
}
}
}
]
]
},
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
(),
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
filterTableList
=
[
'paymentModel'
],
baseData
:
{
hideStatus
=
res
==
1
statusList
:
[
if
(
hideStatus
)
{
{
for
(
let
i
=
0
;
i
<
tableColumns
.
length
;
i
++
)
{
confId
:
'1'
,
if
(
filterTableList
.
includes
(
tableColumns
[
i
].
prop
))
{
confName
:
'未开始 '
tableColumns
.
splice
(
i
,
1
)
},
i
--
{
confId
:
'2'
,
confName
:
'进行中'
},
{
confId
:
'3'
,
confName
:
'已结束'
}
}
]
},
hideStatus
:
false
}
}
},
}
this
.
hideStatus
=
hideStatus
components
:
{
this
.
tableParams
.
tableColumns
=
tableColumns
crowdFundingShare
,
singleGltable
:
GLTable
},
mounted
()
{
this
.
getCrowdfundingOrderConfig
()
this
.
getOptionsList
(
'searchFormData'
)
},
methods
:
{
async
getCrowdfundingOrderConfig
()
{
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
()
this
.
hideStatus
=
res
==
1
},
},
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
e27a18e
...
@@ -1297,6 +1297,7 @@ export default {
...
@@ -1297,6 +1297,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
getCrowdfundingOrderConfig
()
this
.
getLiveList
()
this
.
getLiveList
()
this
.
setMinHeight
(
'.crowd-config'
)
this
.
setMinHeight
(
'.crowd-config'
)
this
.
routeInfo
=
this
.
$route
.
query
this
.
routeInfo
=
this
.
$route
.
query
...
@@ -1402,6 +1403,10 @@ export default {
...
@@ -1402,6 +1403,10 @@ export default {
},
},
methods
:
{
methods
:
{
async
getCrowdfundingOrderConfig
()
{
const
res
=
await
this
.
$apis
.
common
.
getCrowdfundingOrderConfig
()
this
.
configEditFormData
.
find
(
item
=>
item
.
name
==
'paymentModel'
).
isHide
=
res
==
1
},
changeFormAttr
(
formName
,
attrName
,
labelList
,
attrValue
)
{
changeFormAttr
(
formName
,
attrName
,
labelList
,
attrValue
)
{
labelList
.
forEach
(
item
=>
{
labelList
.
forEach
(
item
=>
{
let
idx
=
this
[
formName
].
findIndex
(
k
=>
k
.
label
==
item
)
let
idx
=
this
[
formName
].
findIndex
(
k
=>
k
.
label
==
item
)
...
...
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