1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
| <template>
| <el-bus-crud v-bind="tableConfig" />
| </template>
|
| <script>
| export default {
| data() {
| return {
| tableConfig: {
| url: 'flower/v2/coupon-record/page',
| hasNew: false,
| hasOperation: false,
| columns: [
| { label: '序号', type: 'index', minWidth: 60, fixed: 'left' },
| {
| label: '店铺名称',
| prop: 'customerName',
| minWidth: 150,
| fixed: 'left',
| },
| { label: '联系方式', prop: 'tel', minWidth: 120 },
| { label: '优惠券名称', prop: 'couponName', minWidth: 150 },
| {
| label: '优惠券分类',
| prop: 'categoryName',
| minWidth: 120,
| },
| {
| label: '优惠券类型',
| prop: 'couponDiscountTypeName',
| minWidth: 120,
| },
| { label: '状态', prop: 'statusName', minWidth: 120 },
| { label: '领取时间', prop: 'createTime', minWidth: 180 },
| {
| label: '有效期',
| formatter: (row) =>
| row.effectiveStart
| ? `${row.effectiveStart} ~ ${row.effectiveEnd || ''}`
| : '',
| minWidth: 320,
| },
| { label: '面值', prop: 'couponDiscountValue', minWidth: 120 },
| {
| label: '使用条件',
| formatter: (row) => `满${row.minOrderAmount}`,
| minWidth: 150,
| },
| { label: '领取渠道', prop: 'getTypeName', minWidth: 150 },
| { label: '使用的订单号', prop: 'orderNo', minWidth: 150 },
| ],
| searchForm: [
| {
| type: 'row',
| items: [
| {
| label: '优惠券分类',
| id: 'category',
| type: 'bus-select-dict',
| el: {
| code: 'COUPON_CATEGORY',
| style: 'width:100%',
| clearable: true,
| },
| },
| {
| label: '优惠券类型',
| id: 'couponDiscountType',
| type: 'bus-select-dict',
| el: {
| code: 'COUPON_TYPE',
| style: 'width:100%',
| clearable: true,
| },
| },
| {
| label: '优惠券名称',
| id: 'name',
| type: 'input',
| },
| {
| label: '订单号',
| id: 'orderNo',
| type: 'input',
| },
| {
| label: '用户id/店铺名称',
| id: 'keyword',
| type: 'input',
| },
| {
| label: '联系方式',
| id: 'tel',
| type: 'input',
| },
| {
| label: '领取渠道',
| id: 'getType',
| type: 'bus-select-dict',
| el: {
| code: 'COUPON_GET_TYPE',
| style: 'width:100%',
| clearable: true,
| },
| },
| {
| label: '状态',
| id: 'status',
| type: 'bus-select-dict',
| el: {
| code: 'COUPON_USED_STATUS',
| style: 'width:100%',
| clearable: true,
| },
| },
| ],
| },
| ],
| },
| }
| },
| head() {
| return {
| title: '优惠券领取记录',
| }
| },
| }
| </script>
|
|