Commit 29c46baf by chenwq

核销记录

1 parent 3bbab550
...@@ -166,6 +166,7 @@ export default { ...@@ -166,6 +166,7 @@ export default {
{ {
label: '使用途径', label: '使用途径',
name: 'useChannel', name: 'useChannel',
width: 160,
formatter: cellValue => { formatter: cellValue => {
var useChannel = '-' var useChannel = '-'
if (cellValue.useChannel) { if (cellValue.useChannel) {
......
...@@ -26,6 +26,12 @@ ...@@ -26,6 +26,12 @@
<template slot="discountType" slot-scope="scope"> <template slot="discountType" slot-scope="scope">
<img :src="require(`@/assets/coupon/icon-${attrToIcon[scope.scope.discountType]}.png`)" /> <img :src="require(`@/assets/coupon/icon-${attrToIcon[scope.scope.discountType]}.png`)" />
</template> </template>
<template slot="packageName" slot-scope="scope">
<span v-if="$isGroupUp">{{ scope.scope.packageId ? scope.scope.packageName : scope.scope.directionalGiftId ? scope.scope.directionalGiftName : '-' }}</span>
<div v-else>
<p>{{ packageNameTxtObj[scope.scope.receiveWay] }}</p>
</div>
</template>
<span slot="orderCodeHtml" slot-scope="scope"> <span slot="orderCodeHtml" slot-scope="scope">
<span class="cursor-pointer" @click="couponNameHandleDetail(scope.scope)" v-if="scope.scope.directionalGiftId">{{ scope.scope.directionalGiftName }}</span> <span class="cursor-pointer" @click="couponNameHandleDetail(scope.scope)" v-if="scope.scope.directionalGiftId">{{ scope.scope.directionalGiftName }}</span>
<span class="cursor-pointer" @click="orderCodeHandleDetail(scope.scope)" v-else>{{ scope.scope.orderCode }}</span> <span class="cursor-pointer" @click="orderCodeHandleDetail(scope.scope)" v-else>{{ scope.scope.orderCode }}</span>
...@@ -167,6 +173,7 @@ export default { ...@@ -167,6 +173,7 @@ export default {
{ {
label: '用户信息', label: '用户信息',
prop: 'userName', prop: 'userName',
width: 220,
formatter: cellValue => { formatter: cellValue => {
return cellValue.userName + ' ' + cellValue.phone return cellValue.userName + ' ' + cellValue.phone
} }
...@@ -186,6 +193,7 @@ export default { ...@@ -186,6 +193,7 @@ export default {
{ {
label: '剩余核销次数', label: '剩余核销次数',
prop: 'residueAmount', prop: 'residueAmount',
width: 120,
formatter: cellValue => { formatter: cellValue => {
return cellValue.residueAmount || cellValue.residueAmount == 0 ? cellValue.residueAmount : '不限制次数' return cellValue.residueAmount || cellValue.residueAmount == 0 ? cellValue.residueAmount : '不限制次数'
} }
...@@ -201,6 +209,8 @@ export default { ...@@ -201,6 +209,8 @@ export default {
{ {
label: '券来源', label: '券来源',
prop: 'packageName', prop: 'packageName',
addHtml: 'packageName',
width: 200,
formatter: cellValue => { formatter: cellValue => {
let txt = '' let txt = ''
if (this.$isGroupUp) { if (this.$isGroupUp) {
...@@ -223,6 +233,7 @@ export default { ...@@ -223,6 +233,7 @@ export default {
{ {
label: '核销日期', label: '核销日期',
prop: 'verificationTime', prop: 'verificationTime',
width: 200,
formatter: cellValue => { formatter: cellValue => {
return dateFormat(cellValue.verificationTime) return dateFormat(cellValue.verificationTime)
} }
...@@ -235,6 +246,16 @@ export default { ...@@ -235,6 +246,16 @@ export default {
4: 'exchange', 4: 'exchange',
7: 'service' 7: 'service'
}, },
packageNameTxtObj: {
'': '-',
1: '营销活动',
2: '营销活动',
3: '会员服务套餐',
4: '营销活动',
5: '关联商品购买',
6: '通过集团套餐赠送',
7: '通过定向礼包赠送'
},
baseData: { baseData: {
discountTypeList: [ discountTypeList: [
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!