Commit d44c6895 by cwq0219

优惠券管理

1 parent c477dd39
...@@ -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',
......
...@@ -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
} }
......
...@@ -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')
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!