|
@@ -6,20 +6,30 @@
|
6
|
6
|
<div class="user-list">
|
7
|
7
|
<el-table
|
8
|
8
|
ref="multipleTable"
|
9
|
|
- :data="tableData"
|
|
9
|
+ :data="projectData"
|
10
|
10
|
tooltip-effect="dark"
|
11
|
11
|
height="354"
|
12
|
12
|
style="width: 100%;border-radius: 8px;"
|
13
|
13
|
@row-click="handleSelectionChange"
|
14
|
14
|
>
|
15
|
|
- <el-table-column prop="name" label="项目名称" width="120"></el-table-column>
|
16
|
|
- <el-table-column prop="numberList" label="数量" show-overflow-tooltip></el-table-column>
|
|
15
|
+ <el-table-column prop="goods" label="项目名称" width="200">
|
|
16
|
+ <template slot-scope="scope">
|
|
17
|
+ <div v-for="(val,index) in scope.row.goods" :key="index">
|
|
18
|
+ <div>{{val.name}}</div>
|
|
19
|
+ </div>
|
|
20
|
+ </template>
|
|
21
|
+ </el-table-column>
|
|
22
|
+ <el-table-column prop="goods" label="数量" show-overflow-tooltip>
|
|
23
|
+ <template slot-scope="scope">
|
|
24
|
+ <div>{{scope.row.goods.length}}</div>
|
|
25
|
+ </template>
|
|
26
|
+ </el-table-column>
|
17
|
27
|
<el-table-column prop="price" label="总价格" show-overflow-tooltip></el-table-column>
|
18
|
|
- <el-table-column prop="date" label="预约时间" width="180" show-overflow-tooltip></el-table-column>
|
19
|
|
- <el-table-column prop="shop" label="预约店铺" show-overflow-tooltip></el-table-column>
|
|
28
|
+ <el-table-column prop="order_time" label="预约时间" width="180" show-overflow-tooltip></el-table-column>
|
|
29
|
+ <el-table-column prop="store_name" label="预约店铺" show-overflow-tooltip></el-table-column>
|
20
|
30
|
<el-table-column prop="status" label="状态" show-overflow-tooltip>
|
21
|
31
|
<template slot-scope="scope">
|
22
|
|
- <div :class="'classShow'+scope.$index">{{statusStr[scope.row.status]}}</div>
|
|
32
|
+ <div :class="'color'+scope.row.status">{{statusStr[scope.row.status]}}</div>
|
23
|
33
|
</template>
|
24
|
34
|
</el-table-column>
|
25
|
35
|
</el-table>
|
|
@@ -40,20 +50,28 @@
|
40
|
50
|
<div class="user-list">
|
41
|
51
|
<el-table
|
42
|
52
|
ref="multipleTable"
|
43
|
|
- :data="tableData"
|
|
53
|
+ :data="couponData"
|
44
|
54
|
tooltip-effect="dark"
|
45
|
55
|
height="354"
|
46
|
56
|
style="width: 100%;border-radius: 8px;"
|
47
|
57
|
@row-click="handleSelectionChange"
|
48
|
58
|
>
|
49
|
|
- <el-table-column prop="name" label="卡卷名称" width="120"></el-table-column>
|
50
|
|
- <el-table-column prop="numberList" label="卡卷类型" show-overflow-tooltip></el-table-column>
|
|
59
|
+
|
|
60
|
+<!-- create_time: "2022-03-10 10:39:19"
|
|
61
|
+ex_time: "2022.03.17 23:59"
|
|
62
|
+id: 2517
|
|
63
|
+name: "新人体验券"
|
|
64
|
+status: 2
|
|
65
|
+type: "全额券" -->
|
|
66
|
+
|
|
67
|
+ <el-table-column prop="name" label="卡卷名称" width="200"></el-table-column>
|
|
68
|
+ <el-table-column prop="type" label="卡卷类型" show-overflow-tooltip></el-table-column>
|
51
|
69
|
<el-table-column prop="price" label="总价格" show-overflow-tooltip></el-table-column>
|
52
|
|
- <el-table-column prop="date" label="到期时间" width="180" show-overflow-tooltip></el-table-column>
|
53
|
|
- <el-table-column prop="date" label="创建时间" width="180" show-overflow-tooltip></el-table-column>
|
|
70
|
+ <el-table-column prop="create_time" label="到期时间" width="180" show-overflow-tooltip></el-table-column>
|
|
71
|
+ <el-table-column prop="create_time" label="创建时间" width="180" show-overflow-tooltip></el-table-column>
|
54
|
72
|
<el-table-column prop="status" label="状态" show-overflow-tooltip>
|
55
|
73
|
<template slot-scope="scope">
|
56
|
|
- <div :class="'classShow'+scope.$index">{{statusStr[scope.row.status]}}</div>
|
|
74
|
+ <div :class="'color'+scope.row.status">{{statusStr[scope.row.status]}}</div>
|
57
|
75
|
</template>
|
58
|
76
|
</el-table-column>
|
59
|
77
|
</el-table>
|
|
@@ -75,16 +93,33 @@
|
75
|
93
|
<div class="user-list">
|
76
|
94
|
<el-table
|
77
|
95
|
ref="multipleTable"
|
78
|
|
- :data="tableData"
|
|
96
|
+ :data="goodData"
|
79
|
97
|
tooltip-effect="dark"
|
80
|
98
|
height="354"
|
81
|
99
|
style="width: 100%;border-radius: 8px;"
|
82
|
100
|
@row-click="handleSelectionChange"
|
83
|
101
|
>
|
84
|
|
- <el-table-column prop="name" label="商品名称" width="120"></el-table-column>
|
85
|
|
- <el-table-column prop="numberList" label="数量" show-overflow-tooltip></el-table-column>
|
|
102
|
+
|
|
103
|
+<!-- create_time: "2022-03-19 22:53:40"
|
|
104
|
+goods: [{order_id: 47, name: "润百颜玻尿酸屏障调理面膜", num: 1}]
|
|
105
|
+id: 47
|
|
106
|
+price: "0.01"
|
|
107
|
+status: 5 -->
|
|
108
|
+
|
|
109
|
+ <el-table-column prop="goods" label="商品名称" width="200">
|
|
110
|
+ <template slot-scope="scope">
|
|
111
|
+ <div v-for="(val,index) in scope.row.goods" :key="index">
|
|
112
|
+ <div>{{val.name}}</div>
|
|
113
|
+ </div>
|
|
114
|
+ </template>
|
|
115
|
+ </el-table-column>
|
|
116
|
+ <el-table-column prop="goods" label="数量" show-overflow-tooltip>
|
|
117
|
+ <template slot-scope="scope">
|
|
118
|
+ <div>{{scope.row.goods.length}}</div>
|
|
119
|
+ </template>
|
|
120
|
+ </el-table-column>
|
86
|
121
|
<el-table-column prop="price" label="实付款" show-overflow-tooltip></el-table-column>
|
87
|
|
- <el-table-column prop="date" label="下单时间" width="180" show-overflow-tooltip></el-table-column>
|
|
122
|
+ <el-table-column prop="create_time" label="下单时间" width="180" show-overflow-tooltip></el-table-column>
|
88
|
123
|
<el-table-column prop="status" label="状态" show-overflow-tooltip>
|
89
|
124
|
<template slot-scope="scope">
|
90
|
125
|
<div :class="'classShow'+scope.$index">{{statusStr[scope.row.status]}}</div>
|
|
@@ -110,6 +145,8 @@
|
110
|
145
|
</template>
|
111
|
146
|
|
112
|
147
|
<script>
|
|
148
|
+import api from "../../../server/home";
|
|
149
|
+
|
113
|
150
|
export default {
|
114
|
151
|
data() {
|
115
|
152
|
return {
|
|
@@ -147,15 +184,65 @@ export default {
|
147
|
184
|
status: 1
|
148
|
185
|
}
|
149
|
186
|
],
|
150
|
|
- statusStr: ["未完成", "代发货", "代使用", "已完成"],
|
|
187
|
+ statusStr: [
|
|
188
|
+ "已预约",
|
|
189
|
+ "未支付",
|
|
190
|
+ "已支付",
|
|
191
|
+ "待使用",
|
|
192
|
+ "正在使用",
|
|
193
|
+ "已结算",
|
|
194
|
+ "已取消"
|
|
195
|
+ ],
|
151
|
196
|
currentPage1: 1,
|
152
|
|
- multipleSelection: ""
|
|
197
|
+ couponData: [],
|
|
198
|
+ goodData: [],
|
|
199
|
+ projectData: [],
|
|
200
|
+ total: ""
|
153
|
201
|
};
|
154
|
202
|
},
|
155
|
203
|
computed: {},
|
156
|
204
|
watch: {},
|
157
|
205
|
|
158
|
206
|
methods: {
|
|
207
|
+ // 获取优惠券订单
|
|
208
|
+ getUserCoupon() {
|
|
209
|
+ let params = {
|
|
210
|
+ page: this.currentPage1,
|
|
211
|
+ limit: this.limit,
|
|
212
|
+ id: this.id
|
|
213
|
+ };
|
|
214
|
+ api.getUserCoupon(params).then(res => {
|
|
215
|
+ this.couponData = res.data.list;
|
|
216
|
+ this.total = res.data.total;
|
|
217
|
+ });
|
|
218
|
+ },
|
|
219
|
+
|
|
220
|
+ // 获取商品订单
|
|
221
|
+ getUserGoods() {
|
|
222
|
+ let params = {
|
|
223
|
+ page: this.currentPage1,
|
|
224
|
+ limit: this.limit,
|
|
225
|
+ id: this.id
|
|
226
|
+ };
|
|
227
|
+ api.getUserGoods(params).then(res => {
|
|
228
|
+ this.goodData = res.data.list;
|
|
229
|
+ this.total = res.data.total;
|
|
230
|
+ });
|
|
231
|
+ },
|
|
232
|
+
|
|
233
|
+ // 获取获取项目订单
|
|
234
|
+ getUserProject() {
|
|
235
|
+ let params = {
|
|
236
|
+ page: this.currentPage1,
|
|
237
|
+ limit: this.limit,
|
|
238
|
+ id: this.id
|
|
239
|
+ };
|
|
240
|
+ api.getUserProject(params).then(res => {
|
|
241
|
+ this.projectData = res.data.list;
|
|
242
|
+ this.total = res.data.total;
|
|
243
|
+ });
|
|
244
|
+ },
|
|
245
|
+
|
159
|
246
|
handleSizeChange(val) {
|
160
|
247
|
console.log(`每页 ${val} 条`);
|
161
|
248
|
},
|
|
@@ -167,7 +254,13 @@ export default {
|
167
|
254
|
submitFrequency() {}
|
168
|
255
|
},
|
169
|
256
|
|
170
|
|
- created() {},
|
|
257
|
+ created() {
|
|
258
|
+ let id = this.$route.query.id;
|
|
259
|
+ this.id = id;
|
|
260
|
+ this.getUserCoupon();
|
|
261
|
+ this.getUserGoods();
|
|
262
|
+ this.getUserProject();
|
|
263
|
+ },
|
171
|
264
|
|
172
|
265
|
mounted() {}
|
173
|
266
|
};
|
|
@@ -187,12 +280,26 @@ export default {
|
187
|
280
|
color: green;
|
188
|
281
|
}
|
189
|
282
|
}
|
190
|
|
-.classShow1 {
|
191
|
|
- color: #00EC67;
|
|
283
|
+.color0 {
|
|
284
|
+ color: #fc3019;
|
192
|
285
|
}
|
193
|
|
-
|
194
|
|
-.classShow0 {
|
195
|
|
- color: #FF1818;
|
|
286
|
+.color1 {
|
|
287
|
+ color: #3ef3ed;
|
|
288
|
+}
|
|
289
|
+.color2 {
|
|
290
|
+ color: #00eeee;
|
|
291
|
+}
|
|
292
|
+.color3 {
|
|
293
|
+ color: #61d09d;
|
|
294
|
+}
|
|
295
|
+.color4 {
|
|
296
|
+ color: #3115cc;
|
|
297
|
+}
|
|
298
|
+.color5 {
|
|
299
|
+ color: #fc3019;
|
|
300
|
+}
|
|
301
|
+.color6 {
|
|
302
|
+ color: #a999ea;
|
196
|
303
|
}
|
197
|
304
|
|
198
|
305
|
.priceColor {
|