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 d44c6895
authored
Jan 06, 2022
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优惠券管理
1 parent
c477dd39
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
6 deletions
src/api/modules/couponManage.js
src/views/couponManage/index.vue
src/views/seckillActivity/index.vue
src/api/modules/couponManage.js
View file @
d44c689
...
@@ -4,7 +4,8 @@ const defaultPath = 'scrm.api.coupon.'
...
@@ -4,7 +4,8 @@ const defaultPath = 'scrm.api.coupon.'
//优惠券列表
//优惠券列表
const
getMerchantListApi
=
params
=>
{
const
getMerchantListApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
list.merchant`
// params.method = `${defaultPath}list.merchant`
params
.
method
=
'scrm.backstage.coupon.list.merchant'
return
http
({
return
http
({
url
:
'rop-scrm-coupon/router'
,
url
:
'rop-scrm-coupon/router'
,
method
:
'GET'
,
method
:
'GET'
,
...
...
src/views/couponManage/index.vue
View file @
d44c689
...
@@ -121,6 +121,7 @@ export default {
...
@@ -121,6 +121,7 @@ export default {
{
{
label
:
'优惠券类型'
,
label
:
'优惠券类型'
,
name
:
'discountType'
,
name
:
'discountType'
,
width
:
'100px'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
this
.
baseData
.
discountTypeList
.
find
(
item
=>
item
.
confId
==
cellValue
.
discountType
).
confName
return
this
.
baseData
.
discountTypeList
.
find
(
item
=>
item
.
confId
==
cellValue
.
discountType
).
confName
}
}
...
@@ -130,6 +131,14 @@ export default {
...
@@ -130,6 +131,14 @@ export default {
prop
:
'getAmount'
prop
:
'getAmount'
},
},
{
{
label
:
'已核销'
,
prop
:
'usedAmount'
},
{
label
:
'未核销'
,
prop
:
'unUsedAmount'
},
{
label
:
'剩余'
,
label
:
'剩余'
,
prop
:
'residueAmount'
prop
:
'residueAmount'
},
},
...
@@ -147,6 +156,7 @@ export default {
...
@@ -147,6 +156,7 @@ export default {
{
{
label
:
'优惠券状态'
,
label
:
'优惠券状态'
,
name
:
'status'
,
name
:
'status'
,
width
:
'100px'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
this
.
baseData
.
statusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
status
).
confName
return
this
.
baseData
.
statusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
status
).
confName
}
}
...
...
src/views/seckillActivity/index.vue
View file @
d44c689
...
@@ -100,7 +100,8 @@ export default {
...
@@ -100,7 +100,8 @@ export default {
},
},
{
{
label
:
'浏览量(次)'
,
label
:
'浏览量(次)'
,
prop
:
'viewAmount'
prop
:
'viewAmount'
,
width
:
'110px'
},
},
{
{
label
:
'销量'
,
label
:
'销量'
,
...
@@ -109,11 +110,12 @@ export default {
...
@@ -109,11 +110,12 @@ export default {
{
{
label
:
'秒杀价(元)'
,
label
:
'秒杀价(元)'
,
name
:
'activityPrice'
,
name
:
'activityPrice'
,
width
:
'110px'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
activityPrice
)
{
//
if (cellValue.activityPrice) {
return
(
cellValue
.
activityPrice
/
100
).
toFixed
(
2
)
return
(
cellValue
.
activityPrice
/
100
).
toFixed
(
2
)
}
//
}
return
''
//
return ''
}
}
},
},
{
{
...
@@ -123,6 +125,7 @@ export default {
...
@@ -123,6 +125,7 @@ export default {
{
{
label
:
'创建日期'
,
label
:
'创建日期'
,
name
:
'createdDate'
,
name
:
'createdDate'
,
width
:
'160px'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
}
...
...
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