Commit d44c6895 by cwq0219

优惠券管理

1 parent c477dd39
......@@ -4,7 +4,8 @@ const defaultPath = 'scrm.api.coupon.'
//优惠券列表
const getMerchantListApi = params => {
params.method = `${defaultPath}list.merchant`
// params.method = `${defaultPath}list.merchant`
params.method = 'scrm.backstage.coupon.list.merchant'
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
......
......@@ -121,6 +121,7 @@ export default {
{
label: '优惠券类型',
name: 'discountType',
width: '100px',
formatter: cellValue => {
return this.baseData.discountTypeList.find(item => item.confId == cellValue.discountType).confName
}
......@@ -130,6 +131,14 @@ export default {
prop: 'getAmount'
},
{
label: '已核销',
prop: 'usedAmount'
},
{
label: '未核销',
prop: 'unUsedAmount'
},
{
label: '剩余',
prop: 'residueAmount'
},
......@@ -147,6 +156,7 @@ export default {
{
label: '优惠券状态',
name: 'status',
width: '100px',
formatter: cellValue => {
return this.baseData.statusList.find(item => item.confId == cellValue.status).confName
}
......
......@@ -100,7 +100,8 @@ export default {
},
{
label: '浏览量(次)',
prop: 'viewAmount'
prop: 'viewAmount',
width: '110px'
},
{
label: '销量',
......@@ -109,11 +110,12 @@ export default {
{
label: '秒杀价(元)',
name: 'activityPrice',
width: '110px',
formatter: cellValue => {
if (cellValue.activityPrice) {
return (cellValue.activityPrice / 100).toFixed(2)
}
return ''
// if (cellValue.activityPrice) {
return (cellValue.activityPrice / 100).toFixed(2)
// }
// return ''
}
},
{
......@@ -123,6 +125,7 @@ export default {
{
label: '创建日期',
name: 'createdDate',
width: '160px',
formatter: cellValue => {
return dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss')
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!