|
@@ -3,6 +3,28 @@
|
3
|
3
|
<div class="system-table-search">
|
4
|
4
|
<div class="flex-h">
|
5
|
5
|
<div class="flex-item flex-h"></div>
|
|
6
|
+ <ul>
|
|
7
|
+ <li>
|
|
8
|
+ <el-input
|
|
9
|
+ placeholder="请输入用户手机号"
|
|
10
|
+ v-model="toPhone"
|
|
11
|
+ >
|
|
12
|
+ </el-input>
|
|
13
|
+ </li>
|
|
14
|
+ <li>
|
|
15
|
+ <el-input
|
|
16
|
+ placeholder="请输入被分享用户手机号"
|
|
17
|
+ v-model="fromPhone"
|
|
18
|
+ >
|
|
19
|
+ </el-input>
|
|
20
|
+ </li>
|
|
21
|
+ </ul>
|
|
22
|
+ <el-button
|
|
23
|
+ size="mini"
|
|
24
|
+ type="primary" @click="search">搜索</el-button>
|
|
25
|
+ <!-- <el-button
|
|
26
|
+ size="mini"
|
|
27
|
+ type="danger" @click="excel">导出Excel</el-button> -->
|
6
|
28
|
</div>
|
7
|
29
|
<div class="moreFilter"></div>
|
8
|
30
|
</div>
|
|
@@ -12,47 +34,35 @@
|
12
|
34
|
stripe
|
13
|
35
|
style="width: 100%">
|
14
|
36
|
<el-table-column
|
15
|
|
- prop="CaseName"
|
16
|
|
- label="案场">
|
|
37
|
+ prop="ToCustomerWxname"
|
|
38
|
+ label="用户昵称">
|
17
|
39
|
</el-table-column>
|
18
|
40
|
<el-table-column
|
19
|
|
- prop="ActivitName"
|
20
|
|
- label="活动名称">
|
|
41
|
+ prop="ToCustomerName"
|
|
42
|
+ label="用户姓名">
|
21
|
43
|
</el-table-column>
|
22
|
44
|
<el-table-column
|
23
|
|
- prop="Name"
|
24
|
|
- label="姓名">
|
|
45
|
+ prop="ToCustomerTel"
|
|
46
|
+ label="用户手机号">
|
25
|
47
|
</el-table-column>
|
26
|
48
|
<el-table-column
|
27
|
|
- prop="CustomerName"
|
28
|
|
- label="微信昵称">
|
|
49
|
+ prop="FromCustomerWxname"
|
|
50
|
+ label="被分享用户昵称">
|
29
|
51
|
</el-table-column>
|
30
|
52
|
<el-table-column
|
31
|
|
- prop="Phone"
|
32
|
|
- label="手机号">
|
|
53
|
+ prop="FromCustomerName"
|
|
54
|
+ label="被分享用户姓名">
|
33
|
55
|
</el-table-column>
|
34
|
56
|
<el-table-column
|
35
|
|
- prop="PrizeName"
|
36
|
|
- label="获取奖品">
|
|
57
|
+ prop="FromCustomerTel"
|
|
58
|
+ label="被分享用户手机号">
|
37
|
59
|
</el-table-column>
|
38
|
60
|
<el-table-column
|
39
|
|
- label="获取时间">
|
|
61
|
+ label="分享时间">
|
40
|
62
|
<template slot-scope="scope">
|
41
|
63
|
<label>{{toolClass.dateFormat(scope.row.CreateDate)}}</label>
|
42
|
64
|
</template>
|
43
|
65
|
</el-table-column>
|
44
|
|
- <el-table-column
|
45
|
|
- label="核销时间">
|
46
|
|
- <template slot-scope="scope">
|
47
|
|
- <label>{{toolClass.dateFormat(scope.row.WriteoffDate)}}</label>
|
48
|
|
- </template>
|
49
|
|
- </el-table-column>
|
50
|
|
- <el-table-column
|
51
|
|
- label="状态">
|
52
|
|
- <template slot-scope="scope">
|
53
|
|
- <label>{{scope.row.Status === 0 ? '未核销' : '已核销'}}</label>
|
54
|
|
- </template>
|
55
|
|
- </el-table-column>
|
56
|
66
|
</el-table>
|
57
|
67
|
</div>
|
58
|
68
|
<el-pagination
|
|
@@ -74,6 +84,8 @@ export default {
|
74
|
84
|
data () {
|
75
|
85
|
return {
|
76
|
86
|
total: 0,
|
|
87
|
+ toPhone: '',
|
|
88
|
+ fromPhone: '',
|
77
|
89
|
postData: { // 表格搜索条件
|
78
|
90
|
page: 1, // 当前页码
|
79
|
91
|
pagesize: 10, // 请求数据量
|
|
@@ -88,21 +100,18 @@ export default {
|
88
|
100
|
},
|
89
|
101
|
computed: {
|
90
|
102
|
...mapLuckState({
|
91
|
|
- list: x => x.luckDrawList
|
|
103
|
+ list: x => x.luckDrawShareList
|
92
|
104
|
}),
|
93
|
105
|
},
|
94
|
106
|
methods: {
|
95
|
|
- ...mapLuckActions(['getLuckDrawList']),
|
|
107
|
+ ...mapLuckActions(['getLuckDrawShareList']),
|
96
|
108
|
search () { // 搜索
|
97
|
109
|
this.postData.page = 1
|
98
|
110
|
this.currentList = []
|
99
|
111
|
this.getList()
|
100
|
112
|
},
|
101
|
|
- getCaseName (caseid) {
|
102
|
|
- return (this.cases.filter(x => x.CaseId === caseid)[0] || {}).CaseName
|
103
|
|
- },
|
104
|
113
|
getList () { // 获取列表
|
105
|
|
- this.getLuckDrawList({ ...this.postData }).then((res) => {
|
|
114
|
+ this.getLuckDrawShareList({ ...this.postData, toPhone: this.toPhone, fromPhone: this.fromPhone }).then((res) => {
|
106
|
115
|
this.currentList = this.list.list
|
107
|
116
|
this.postData.page = this.list.page
|
108
|
117
|
this.total = this.list.pagenum
|