|
@@ -7,8 +7,7 @@
|
7
|
7
|
type="primary"
|
8
|
8
|
@click="refreshList"
|
9
|
9
|
:loading="refresh"
|
10
|
|
- >{{ refresh ? "加载中..." : "刷新" }}</el-button
|
11
|
|
- >
|
|
10
|
+ >{{ refresh ? "加载中..." : "刷新" }}</el-button>
|
12
|
11
|
</div>
|
13
|
12
|
<el-tabs type="border-card" @tab-click="changeTab" v-model="activeName">
|
14
|
13
|
<el-tab-pane label="项目订单" name="first">
|
|
@@ -33,40 +32,27 @@
|
33
|
32
|
<div>{{ scope.row.goods.length }}</div>
|
34
|
33
|
</template>
|
35
|
34
|
</el-table-column>
|
36
|
|
- <el-table-column
|
37
|
|
- prop="price"
|
38
|
|
- label="总价格"
|
39
|
|
- show-overflow-tooltip
|
40
|
|
- ></el-table-column>
|
41
|
|
- <el-table-column
|
42
|
|
- prop="order_time"
|
43
|
|
- label="预约时间"
|
44
|
|
- width="180"
|
45
|
|
- show-overflow-tooltip
|
46
|
|
- ></el-table-column>
|
47
|
|
- <el-table-column
|
48
|
|
- prop="store_name"
|
49
|
|
- label="预约店铺"
|
50
|
|
- show-overflow-tooltip
|
51
|
|
- ></el-table-column>
|
|
35
|
+ <el-table-column prop="price" label="总价格" show-overflow-tooltip></el-table-column>
|
|
36
|
+ <el-table-column prop="order_time" label="预约时间" width="180" show-overflow-tooltip></el-table-column>
|
|
37
|
+ <el-table-column prop="store_name" label="预约店铺" show-overflow-tooltip></el-table-column>
|
52
|
38
|
<el-table-column prop="status" label="状态" show-overflow-tooltip>
|
53
|
39
|
<template slot-scope="scope">
|
54
|
40
|
<div :class="'color' + scope.row.status">
|
55
|
41
|
<!-- 状态:0已预约,未支付,1已支付,待使用,2正在使用,3已结算,-1已取消,-2退款审核中,-3已退款 -->
|
56
|
42
|
{{
|
57
|
|
- scope.row.status == 0
|
58
|
|
- ? "已预约"
|
59
|
|
- : scope.row.status == 1
|
60
|
|
- ? "待使用"
|
61
|
|
- : scope.row.status == 2
|
62
|
|
- ? "正在使用"
|
63
|
|
- : scope.row.status == 3
|
64
|
|
- ? "已结算"
|
65
|
|
- : scope.row.status == -1
|
66
|
|
- ? "已取消"
|
67
|
|
- : scope.row.status == -2
|
68
|
|
- ? "退款审核中"
|
69
|
|
- : "已退款"
|
|
43
|
+ scope.row.status == 0
|
|
44
|
+ ? "已预约"
|
|
45
|
+ : scope.row.status == 1
|
|
46
|
+ ? "待使用"
|
|
47
|
+ : scope.row.status == 2
|
|
48
|
+ ? "正在使用"
|
|
49
|
+ : scope.row.status == 3
|
|
50
|
+ ? "已结算"
|
|
51
|
+ : scope.row.status == -1
|
|
52
|
+ ? "已取消"
|
|
53
|
+ : scope.row.status == -2
|
|
54
|
+ ? "退款审核中"
|
|
55
|
+ : "已退款"
|
70
|
56
|
}}
|
71
|
57
|
</div>
|
72
|
58
|
</template>
|
|
@@ -99,25 +85,19 @@
|
99
|
85
|
<div>{{ scope.row.card_name | ellipsis(8) }}</div>
|
100
|
86
|
</template>
|
101
|
87
|
</el-table-column>
|
102
|
|
- <el-table-column
|
103
|
|
- prop="total_num"
|
104
|
|
- label="总次数"
|
105
|
|
- show-overflow-tooltip
|
106
|
|
- align="center"
|
107
|
|
- >
|
108
|
|
- <template slot-scope="{ row }" v-if="row.card_type == 1">{{
|
|
88
|
+ <el-table-column prop="total_num" label="总次数" show-overflow-tooltip align="center">
|
|
89
|
+ <template slot-scope="{ row }" v-if="row.card_type == 1">
|
|
90
|
+ {{
|
109
|
91
|
row.total_num
|
110
|
|
- }}</template>
|
|
92
|
+ }}
|
|
93
|
+ </template>
|
111
|
94
|
</el-table-column>
|
112
|
|
- <el-table-column
|
113
|
|
- prop="num"
|
114
|
|
- label="剩余次数"
|
115
|
|
- show-overflow-tooltip
|
116
|
|
- align="center"
|
117
|
|
- >
|
118
|
|
- <template slot-scope="{ row }" v-if="row.card_type == 1">{{
|
|
95
|
+ <el-table-column prop="num" label="剩余次数" show-overflow-tooltip align="center">
|
|
96
|
+ <template slot-scope="{ row }" v-if="row.card_type == 1">
|
|
97
|
+ {{
|
119
|
98
|
row.num
|
120
|
|
- }}</template>
|
|
99
|
+ }}
|
|
100
|
+ </template>
|
121
|
101
|
</el-table-column>
|
122
|
102
|
|
123
|
103
|
<el-table-column
|
|
@@ -127,49 +107,30 @@
|
127
|
107
|
show-overflow-tooltip
|
128
|
108
|
align="center"
|
129
|
109
|
></el-table-column>
|
130
|
|
- <el-table-column
|
131
|
|
- prop="expir_time"
|
132
|
|
- label="过期时间"
|
133
|
|
- width="180"
|
134
|
|
- show-overflow-tooltip
|
135
|
|
- >
|
|
110
|
+ <el-table-column prop="expir_time" label="过期时间" width="180" show-overflow-tooltip>
|
136
|
111
|
<template slot-scope="{ row }">
|
137
|
|
- <div class="expir_time" @click.stop="amendCardTime(row)">
|
138
|
|
- {{ row.expir_time }}
|
139
|
|
- </div>
|
|
112
|
+ <div class="expir_time" @click.stop="amendCardTime(row)">{{ row.expir_time }}</div>
|
140
|
113
|
</template>
|
141
|
114
|
</el-table-column>
|
142
|
|
- <el-table-column
|
143
|
|
- prop="create_time"
|
144
|
|
- label="创建时间"
|
145
|
|
- width="180"
|
146
|
|
- show-overflow-tooltip
|
147
|
|
- ></el-table-column>
|
|
115
|
+ <el-table-column prop="create_time" label="创建时间" width="180" show-overflow-tooltip></el-table-column>
|
148
|
116
|
<el-table-column prop="status" label="状态" show-overflow-tooltip>
|
149
|
117
|
<template slot-scope="scope">
|
150
|
118
|
<div :class="'colorB' + scope.row.status">
|
151
|
119
|
{{
|
152
|
|
- scope.row.status == -2
|
153
|
|
- ? "已注销"
|
154
|
|
- : scope.row.status == -1
|
155
|
|
- ? "已过期"
|
156
|
|
- : scope.row.status == -0
|
157
|
|
- ? "已使用"
|
158
|
|
- : "待使用"
|
|
120
|
+ scope.row.status == -2
|
|
121
|
+ ? "已注销"
|
|
122
|
+ : scope.row.status == -1
|
|
123
|
+ ? "已过期"
|
|
124
|
+ : scope.row.status == -0
|
|
125
|
+ ? "已使用"
|
|
126
|
+ : "待使用"
|
159
|
127
|
}}
|
160
|
128
|
</div>
|
161
|
129
|
</template>
|
162
|
130
|
</el-table-column>
|
163
|
|
- <el-table-column
|
164
|
|
- prop=""
|
165
|
|
- label="操作"
|
166
|
|
- width="100"
|
167
|
|
- show-overflow-tooltip
|
168
|
|
- >
|
|
131
|
+ <el-table-column prop label="操作" width="100" show-overflow-tooltip>
|
169
|
132
|
<template slot-scope="scope" v-if="scope.row.status == 1">
|
170
|
|
- <div class="cancleCoupon" @click.stop="cancleCard(scope.row)">
|
171
|
|
- 操作
|
172
|
|
- </div>
|
|
133
|
+ <div class="cancleCoupon" @click.stop="cancleCard(scope.row)">操作</div>
|
173
|
134
|
</template>
|
174
|
135
|
</el-table-column>
|
175
|
136
|
</el-table>
|
|
@@ -199,7 +160,7 @@
|
199
|
160
|
goods: [{order_id: 47, name: "润百颜玻尿酸屏障调理面膜", num: 1}]
|
200
|
161
|
id: 47
|
201
|
162
|
price: "0.01"
|
202
|
|
-status: 5 -->
|
|
163
|
+ status: 5-->
|
203
|
164
|
|
204
|
165
|
<el-table-column prop="goods" label="商品名称" width="200">
|
205
|
166
|
<template slot-scope="scope">
|
|
@@ -213,32 +174,23 @@ status: 5 -->
|
213
|
174
|
<div>{{ scope.row.goods.length }}</div>
|
214
|
175
|
</template>
|
215
|
176
|
</el-table-column>
|
216
|
|
- <el-table-column
|
217
|
|
- prop="price"
|
218
|
|
- label="实付款"
|
219
|
|
- show-overflow-tooltip
|
220
|
|
- ></el-table-column>
|
221
|
|
- <el-table-column
|
222
|
|
- prop="create_time"
|
223
|
|
- label="下单时间"
|
224
|
|
- width="180"
|
225
|
|
- show-overflow-tooltip
|
226
|
|
- ></el-table-column>
|
|
177
|
+ <el-table-column prop="price" label="实付款" show-overflow-tooltip></el-table-column>
|
|
178
|
+ <el-table-column prop="create_time" label="下单时间" width="180" show-overflow-tooltip></el-table-column>
|
227
|
179
|
<el-table-column prop="status" label="状态" show-overflow-tooltip>
|
228
|
180
|
<template slot-scope="scope">
|
229
|
181
|
<div :class="'color' + scope.row.status">
|
230
|
182
|
{{
|
231
|
|
- scope.row.status == 0
|
232
|
|
- ? "未支付"
|
233
|
|
- : scope.row.status == 1
|
234
|
|
- ? "待取货"
|
235
|
|
- : scope.row.status == 2
|
236
|
|
- ? "已取货"
|
237
|
|
- : scope.row.status == -1
|
238
|
|
- ? "已取消"
|
239
|
|
- : scope.row.status == -2
|
240
|
|
- ? "退款审核中"
|
241
|
|
- : "已退款"
|
|
183
|
+ scope.row.status == 0
|
|
184
|
+ ? "未支付"
|
|
185
|
+ : scope.row.status == 1
|
|
186
|
+ ? "待取货"
|
|
187
|
+ : scope.row.status == 2
|
|
188
|
+ ? "已取货"
|
|
189
|
+ : scope.row.status == -1
|
|
190
|
+ ? "已取消"
|
|
191
|
+ : scope.row.status == -2
|
|
192
|
+ ? "退款审核中"
|
|
193
|
+ : "已退款"
|
242
|
194
|
}}
|
243
|
195
|
</div>
|
244
|
196
|
</template>
|
|
@@ -270,50 +222,25 @@ ex_time: "2022.03.17 23:59"
|
270
|
222
|
id: 2517
|
271
|
223
|
name: "新人体验券"
|
272
|
224
|
status: 2
|
273
|
|
-type: "全额券" -->
|
|
225
|
+ type: "全额券"-->
|
274
|
226
|
|
275
|
|
- <el-table-column
|
276
|
|
- prop="name"
|
277
|
|
- label="卡卷名称"
|
278
|
|
- width="200"
|
279
|
|
- ></el-table-column>
|
280
|
|
- <el-table-column
|
281
|
|
- prop="type"
|
282
|
|
- label="卡卷类型"
|
283
|
|
- show-overflow-tooltip
|
284
|
|
- ></el-table-column>
|
285
|
|
- <el-table-column
|
286
|
|
- prop="create_time"
|
287
|
|
- label="到期时间"
|
288
|
|
- width="180"
|
289
|
|
- show-overflow-tooltip
|
290
|
|
- ></el-table-column>
|
291
|
|
- <el-table-column
|
292
|
|
- prop="create_time"
|
293
|
|
- label="创建时间"
|
294
|
|
- width="180"
|
295
|
|
- show-overflow-tooltipA
|
296
|
|
- ></el-table-column>
|
|
227
|
+ <el-table-column prop="name" label="卡卷名称" width="200"></el-table-column>
|
|
228
|
+ <el-table-column prop="type" label="卡卷类型" show-overflow-tooltip></el-table-column>
|
|
229
|
+ <el-table-column prop="create_time" label="到期时间" width="180" show-overflow-tooltip></el-table-column>
|
|
230
|
+ <el-table-column prop="create_time" label="创建时间" width="180" show-overflow-tooltipA></el-table-column>
|
297
|
231
|
<el-table-column prop="status" label="状态" show-overflow-tooltip>
|
298
|
232
|
<template slot-scope="scope">
|
299
|
|
- <div :class="'colorA' + scope.row.status">
|
300
|
|
- {{ couponStatus[scope.row.status] }}
|
301
|
|
- </div>
|
|
233
|
+ <div :class="'colorA' + scope.row.status">{{ couponStatus[scope.row.status] }}</div>
|
302
|
234
|
</template>
|
303
|
235
|
</el-table-column>
|
304
|
|
- <el-table-column
|
305
|
|
- prop=""
|
306
|
|
- label="操作"
|
307
|
|
- width="100"
|
308
|
|
- show-overflow-tooltip
|
309
|
|
- >
|
|
236
|
+ <el-table-column prop label="备注" width="90" show-overflow-tooltip>
|
|
237
|
+ <template slot-scope="scope" v-if="scope.row.is_send == 1">
|
|
238
|
+ <button class="examineCoupon" @click.stop="cancleCoupon(scope.row,true)">查看</button>
|
|
239
|
+ </template>
|
|
240
|
+ </el-table-column>
|
|
241
|
+ <el-table-column prop label="操作" width="80" show-overflow-tooltip>
|
310
|
242
|
<template slot-scope="scope" v-if="scope.row.status == 0">
|
311
|
|
- <div
|
312
|
|
- class="cancleCoupon"
|
313
|
|
- @click.stop="cancleCoupon(scope.row)"
|
314
|
|
- >
|
315
|
|
- 操作
|
316
|
|
- </div>
|
|
243
|
+ <div class="cancleCoupon" @click.stop="cancleCoupon(scope.row,false)">操作</div>
|
317
|
244
|
</template>
|
318
|
245
|
</el-table-column>
|
319
|
246
|
</el-table>
|
|
@@ -348,20 +275,12 @@ type: "全额券" -->
|
348
|
275
|
<div>{{ scope.row.before_amount }}</div>
|
349
|
276
|
</template>
|
350
|
277
|
</el-table-column>
|
351
|
|
- <el-table-column
|
352
|
|
- prop="goods"
|
353
|
|
- label="变更后金额"
|
354
|
|
- show-overflow-tooltip
|
355
|
|
- >
|
|
278
|
+ <el-table-column prop="goods" label="变更后金额" show-overflow-tooltip>
|
356
|
279
|
<template slot-scope="scope">
|
357
|
280
|
<div>{{ scope.row.after_amount }}</div>
|
358
|
281
|
</template>
|
359
|
282
|
</el-table-column>
|
360
|
|
- <el-table-column
|
361
|
|
- prop="price"
|
362
|
|
- label="变更金额"
|
363
|
|
- show-overflow-tooltip
|
364
|
|
- >
|
|
283
|
+ <el-table-column prop="price" label="变更金额" show-overflow-tooltip>
|
365
|
284
|
<template slot-scope="scope">
|
366
|
285
|
<div>
|
367
|
286
|
{{ scope.row.is_add == 1 ? "+" : "-"
|
|
@@ -373,29 +292,29 @@ type: "全额券" -->
|
373
|
292
|
<template slot-scope="scope">
|
374
|
293
|
<div>{{ scope.row.msg }}</div>
|
375
|
294
|
</template>
|
376
|
|
- </el-table-column> -->
|
|
295
|
+ </el-table-column>-->
|
377
|
296
|
<!-- 余额类型(记录类型,1充值,2充值赠送,3订单退款,5提现驳回,-1消费,-2提现冻结,10客服添加,-10客服扣除) -->
|
378
|
297
|
<el-table-column prop="status" label="类型" show-overflow-tooltip>
|
379
|
298
|
<template slot-scope="scope">
|
380
|
299
|
<div>
|
381
|
300
|
{{
|
382
|
|
- scope.row.type == 1
|
383
|
|
- ? "充值"
|
384
|
|
- : scope.row.type == 2
|
385
|
|
- ? "充值赠送"
|
386
|
|
- : scope.row.type == 3
|
387
|
|
- ? "订单退款"
|
388
|
|
- : scope.row.type == 5
|
389
|
|
- ? "提现驳回"
|
390
|
|
- : scope.row.type == -1
|
391
|
|
- ? "消费"
|
392
|
|
- : scope.row.type == -2
|
393
|
|
- ? "提现冻结"
|
394
|
|
- : scope.row.type == 10
|
395
|
|
- ? "客服添加"
|
396
|
|
- : scope.row.type == -10
|
397
|
|
- ? "客服扣除"
|
398
|
|
- : ""
|
|
301
|
+ scope.row.type == 1
|
|
302
|
+ ? "充值"
|
|
303
|
+ : scope.row.type == 2
|
|
304
|
+ ? "充值赠送"
|
|
305
|
+ : scope.row.type == 3
|
|
306
|
+ ? "订单退款"
|
|
307
|
+ : scope.row.type == 5
|
|
308
|
+ ? "提现驳回"
|
|
309
|
+ : scope.row.type == -1
|
|
310
|
+ ? "消费"
|
|
311
|
+ : scope.row.type == -2
|
|
312
|
+ ? "提现冻结"
|
|
313
|
+ : scope.row.type == 10
|
|
314
|
+ ? "客服添加"
|
|
315
|
+ : scope.row.type == -10
|
|
316
|
+ ? "客服扣除"
|
|
317
|
+ : ""
|
399
|
318
|
}}
|
400
|
319
|
</div>
|
401
|
320
|
</template>
|
|
@@ -428,11 +347,7 @@ type: "全额券" -->
|
428
|
347
|
<div class="project">
|
429
|
348
|
<div class="project-title">项目名称:</div>
|
430
|
349
|
<div class="project-list">
|
431
|
|
- <div
|
432
|
|
- class="project-info"
|
433
|
|
- v-for="(item, index) in cardInfo.project_list"
|
434
|
|
- :key="index"
|
435
|
|
- >
|
|
350
|
+ <div class="project-info" v-for="(item, index) in cardInfo.project_list" :key="index">
|
436
|
351
|
<div class="name-text">{{ item.project_name }}</div>
|
437
|
352
|
<div class="change-num" v-if="cardInfo.card_type == 1">
|
438
|
353
|
<div class="num-content">
|
|
@@ -445,33 +360,27 @@ type: "全额券" -->
|
445
|
360
|
</div>
|
446
|
361
|
</div>
|
447
|
362
|
<div class="common">
|
448
|
|
- <span class="common-title">支付方式:</span
|
449
|
|
- ><span>{{ cardInfo.pay_way }}</span>
|
|
363
|
+ <span class="common-title">支付方式:</span>
|
|
364
|
+ <span>{{ cardInfo.pay_way }}</span>
|
450
|
365
|
</div>
|
451
|
366
|
<div class="common">
|
452
|
|
- <span class="common-title">有效期限:</span
|
453
|
|
- ><span>{{ cardInfo.ex_time }}</span>
|
|
367
|
+ <span class="common-title">有效期限:</span>
|
|
368
|
+ <span>{{ cardInfo.ex_time }}</span>
|
454
|
369
|
</div>
|
455
|
370
|
<div class="common">
|
456
|
|
- <span class="common-title">实付金额:</span
|
457
|
|
- ><span>¥{{ cardInfo.price }}</span>
|
|
371
|
+ <span class="common-title">实付金额:</span>
|
|
372
|
+ <span>¥{{ cardInfo.price }}</span>
|
458
|
373
|
</div>
|
459
|
374
|
<div class="consume-list">
|
460
|
375
|
<div class="consume-title">消耗信息:</div>
|
461
|
|
- <div
|
462
|
|
- class="consume-info min-size"
|
463
|
|
- v-for="(item, index) in cardLogList"
|
464
|
|
- :key="index"
|
465
|
|
- >
|
|
376
|
+ <div class="consume-info min-size" v-for="(item, index) in cardLogList" :key="index">
|
466
|
377
|
<div class="shop">{{ item.store_name }}</div>
|
467
|
378
|
<div class="project-tips">{{ item.remark }}</div>
|
468
|
379
|
<div class="project-ts">{{ item.create_time }}</div>
|
469
|
380
|
</div>
|
470
|
381
|
</div>
|
471
|
382
|
</div>
|
472
|
|
- <div v-if="cardInfo.card_type == 1" class="confirm" @click="confirm">
|
473
|
|
- 确定
|
474
|
|
- </div>
|
|
383
|
+ <div v-if="cardInfo.card_type == 1" class="confirm" @click="confirm">确定</div>
|
475
|
384
|
</div>
|
476
|
385
|
</mine-pupop>
|
477
|
386
|
<!-- 修改次卡时间 -->
|
|
@@ -486,7 +395,8 @@ type: "全额券" -->
|
486
|
395
|
</div>
|
487
|
396
|
<div class="admendTime-content">
|
488
|
397
|
<div class="oldTime">
|
489
|
|
- 次卡过期时间 :<span> {{ amendCardInfo.expir_time }}</span>
|
|
398
|
+ 次卡过期时间 :
|
|
399
|
+ <span>{{ amendCardInfo.expir_time }}</span>
|
490
|
400
|
</div>
|
491
|
401
|
<div class="newTime">
|
492
|
402
|
选择更改日期:
|
|
@@ -497,8 +407,7 @@ type: "全额券" -->
|
497
|
407
|
placeholder="选择日期"
|
498
|
408
|
value-format="yyyy-MM-dd"
|
499
|
409
|
@focus="forbid"
|
500
|
|
- >
|
501
|
|
- </el-date-picker>
|
|
410
|
+ ></el-date-picker>
|
502
|
411
|
</div>
|
503
|
412
|
<div class="radio">
|
504
|
413
|
<button class="cancelBtn" @click="cancel">取消</button>
|
|
@@ -517,14 +426,15 @@ type: "全额券" -->
|
517
|
426
|
@click="closeCouponPop"
|
518
|
427
|
/>
|
519
|
428
|
</div>
|
520
|
|
- <div class="title">核销优惠券</div>
|
|
429
|
+ <div class="title">{{examineCoupon?'发券备注信息':'核销优惠券'}}</div>
|
521
|
430
|
<div class="couponName">
|
522
|
|
- <div class="one">优惠券名称:</div>
|
523
|
|
- <div>{{ cancelCouponInfo.name }}</div>
|
|
431
|
+ <div class="one">{{examineCoupon?'发券人:':'优惠券名称:'}}</div>
|
|
432
|
+ <div>{{ examineCoupon?cancelCouponInfo.send_name:cancelCouponInfo.name }}</div>
|
524
|
433
|
</div>
|
525
|
434
|
<div class="couponRemark">
|
526
|
435
|
<div class="one">备注信息:</div>
|
527
|
|
- <el-input v-model.trim="couponRemark"></el-input>
|
|
436
|
+ <el-input v-if="!examineCoupon" v-model.trim="couponRemark"></el-input>
|
|
437
|
+ <div v-else>{{cancelCouponInfo.send_remark}}</div>
|
528
|
438
|
</div>
|
529
|
439
|
<div class="radio">
|
530
|
440
|
<button class="affirmBtn" @click="checkCoupon">确定</button>
|
|
@@ -565,19 +475,19 @@ import { log } from "console";
|
565
|
475
|
|
566
|
476
|
export default {
|
567
|
477
|
components: {
|
568
|
|
- minePupop,
|
|
478
|
+ minePupop
|
569
|
479
|
},
|
570
|
480
|
data() {
|
571
|
481
|
return {
|
572
|
482
|
couponList: [
|
573
|
483
|
{
|
574
|
484
|
value: "选项1",
|
575
|
|
- label: "黄金糕",
|
|
485
|
+ label: "黄金糕"
|
576
|
486
|
},
|
577
|
487
|
{
|
578
|
488
|
value: "选项2",
|
579
|
|
- label: "双皮奶",
|
580
|
|
- },
|
|
489
|
+ label: "双皮奶"
|
|
490
|
+ }
|
581
|
491
|
],
|
582
|
492
|
tableData: [
|
583
|
493
|
{
|
|
@@ -589,7 +499,7 @@ export default {
|
589
|
499
|
numberList: 2,
|
590
|
500
|
price: 100,
|
591
|
501
|
shop: "运用店",
|
592
|
|
- status: 2,
|
|
502
|
+ status: 2
|
593
|
503
|
},
|
594
|
504
|
{
|
595
|
505
|
date: "2022.04.25 14:30",
|
|
@@ -600,8 +510,8 @@ export default {
|
600
|
510
|
numberList: 5,
|
601
|
511
|
price: 800,
|
602
|
512
|
shop: "武昌店",
|
603
|
|
- status: 1,
|
604
|
|
- },
|
|
513
|
+ status: 1
|
|
514
|
+ }
|
605
|
515
|
],
|
606
|
516
|
couponStatus: ["待使用", "已使用", "已过期"],
|
607
|
517
|
goodStatus: ["未支付", "已支付", "已取货"],
|
|
@@ -622,12 +532,13 @@ export default {
|
622
|
532
|
amendCardInfo: "", // 要修改次卡的信息
|
623
|
533
|
cardTime: "", //次卡修改时间(年月日)
|
624
|
534
|
isCancelCoupon: false, //核销优惠券界面
|
625
|
|
- cancelCouponInfo: "", //核销优惠券名称
|
|
535
|
+ cancelCouponInfo: "", //核销优惠券信息
|
626
|
536
|
couponRemark: "", //核销优惠券备注信息
|
627
|
537
|
refresh: false, //刷新页面数据
|
628
|
538
|
isCancelCard: false, //核销次卡界面
|
629
|
|
- cancelCardInfo: "", //核销次卡名称
|
630
|
|
- cardRemark: "", //核销优惠券备注信息
|
|
539
|
+ cancelCardInfo: "", //核销次卡信息
|
|
540
|
+ cardRemark: "", //核销次卡备注信息
|
|
541
|
+ examineCoupon: false //是否是查看优惠券
|
631
|
542
|
};
|
632
|
543
|
},
|
633
|
544
|
computed: {},
|
|
@@ -651,7 +562,8 @@ export default {
|
651
|
562
|
}
|
652
|
563
|
},
|
653
|
564
|
// 打开核销优惠券界面
|
654
|
|
- cancleCoupon(e) {
|
|
565
|
+ cancleCoupon(e, examineCoupon) {
|
|
566
|
+ this.examineCoupon = examineCoupon;
|
655
|
567
|
this.isCancelCoupon = true;
|
656
|
568
|
this.cancelCouponInfo = e;
|
657
|
569
|
},
|
|
@@ -662,6 +574,10 @@ export default {
|
662
|
574
|
},
|
663
|
575
|
// 核销优惠券
|
664
|
576
|
checkCoupon() {
|
|
577
|
+ if (this.examineCoupon) {
|
|
578
|
+ this.isCancelCoupon = false;
|
|
579
|
+ return;
|
|
580
|
+ }
|
665
|
581
|
if (this.couponRemark == "") {
|
666
|
582
|
this.$message.error("请填写备注信息");
|
667
|
583
|
return;
|
|
@@ -669,9 +585,9 @@ export default {
|
669
|
585
|
api
|
670
|
586
|
.checkCoupon({
|
671
|
587
|
id: this.cancelCouponInfo.id,
|
672
|
|
- remark: this.couponRemark,
|
|
588
|
+ remark: this.couponRemark
|
673
|
589
|
})
|
674
|
|
- .then((res) => {
|
|
590
|
+ .then(res => {
|
675
|
591
|
if (res.code == 200) {
|
676
|
592
|
this.$message.success("核销成功");
|
677
|
593
|
this.isCancelCoupon = false;
|
|
@@ -698,9 +614,9 @@ export default {
|
698
|
614
|
api
|
699
|
615
|
.checkCard({
|
700
|
616
|
id: this.cancelCardInfo.id,
|
701
|
|
- remark: this.cardRemark,
|
|
617
|
+ remark: this.cardRemark
|
702
|
618
|
})
|
703
|
|
- .then((res) => {
|
|
619
|
+ .then(res => {
|
704
|
620
|
if (res.code == 200) {
|
705
|
621
|
this.$message.success("核销成功");
|
706
|
622
|
this.isCancelCard = false;
|
|
@@ -728,7 +644,7 @@ export default {
|
728
|
644
|
if (e.status == -2) {
|
729
|
645
|
this.$message({
|
730
|
646
|
message: "该次卡已注销",
|
731
|
|
- type: "error",
|
|
647
|
+ type: "error"
|
732
|
648
|
});
|
733
|
649
|
return;
|
734
|
650
|
}
|
|
@@ -746,13 +662,13 @@ export default {
|
746
|
662
|
api
|
747
|
663
|
.amendCardTime({
|
748
|
664
|
id: this.amendCardInfo.id,
|
749
|
|
- expire_date: this.cardTime,
|
|
665
|
+ expire_date: this.cardTime
|
750
|
666
|
})
|
751
|
|
- .then((res) => {
|
|
667
|
+ .then(res => {
|
752
|
668
|
if (res.code == 200) {
|
753
|
669
|
this.$message({
|
754
|
670
|
message: res.msg,
|
755
|
|
- type: "success",
|
|
671
|
+ type: "success"
|
756
|
672
|
});
|
757
|
673
|
this.isAmend = false;
|
758
|
674
|
// 更新次卡列表
|
|
@@ -765,9 +681,9 @@ export default {
|
765
|
681
|
let params = {
|
766
|
682
|
page: this.currentPage1,
|
767
|
683
|
limit: this.limit,
|
768
|
|
- id: this.id,
|
|
684
|
+ id: this.id
|
769
|
685
|
};
|
770
|
|
- api.getUserCoupon(params).then((res) => {
|
|
686
|
+ api.getUserCoupon(params).then(res => {
|
771
|
687
|
this.couponData = res.data.list;
|
772
|
688
|
this.total = res.data.total;
|
773
|
689
|
// 关闭刷新动画
|
|
@@ -785,18 +701,18 @@ export default {
|
785
|
701
|
if (row.status == -2) {
|
786
|
702
|
this.$message({
|
787
|
703
|
message: "该次卡已注销",
|
788
|
|
- type: "error",
|
|
704
|
+ type: "error"
|
789
|
705
|
});
|
790
|
706
|
return;
|
791
|
707
|
}
|
792
|
708
|
this.isPore = true;
|
793
|
|
- api.cardInfo({ id: row.id }).then((res) => {
|
|
709
|
+ api.cardInfo({ id: row.id }).then(res => {
|
794
|
710
|
if (res.code == 200) {
|
795
|
711
|
res.data.card_type = row.card_type;
|
796
|
712
|
this.cardInfo = res.data;
|
797
|
713
|
}
|
798
|
714
|
});
|
799
|
|
- api.cardLog({ id: row.id }).then((res) => {
|
|
715
|
+ api.cardLog({ id: row.id }).then(res => {
|
800
|
716
|
if (res.code == 200) {
|
801
|
717
|
this.cardLogList = res.data.list;
|
802
|
718
|
}
|
|
@@ -806,19 +722,19 @@ export default {
|
806
|
722
|
// 项目ID,json字符,格式如:[{"project_id":"10","num":5}],project_id:适用项目ID,num:剩余次数
|
807
|
723
|
let project_data = [],
|
808
|
724
|
project_info = {};
|
809
|
|
- this.cardInfo.project_list.forEach((res) => {
|
|
725
|
+ this.cardInfo.project_list.forEach(res => {
|
810
|
726
|
project_info = {
|
811
|
727
|
project_id: res.id,
|
812
|
|
- num: res.num,
|
|
728
|
+ num: res.num
|
813
|
729
|
};
|
814
|
730
|
project_data.push(project_info);
|
815
|
731
|
});
|
816
|
732
|
api
|
817
|
733
|
.cardUpdate({
|
818
|
734
|
id: this.cardInfo.id,
|
819
|
|
- project_data: JSON.stringify(project_data),
|
|
735
|
+ project_data: JSON.stringify(project_data)
|
820
|
736
|
})
|
821
|
|
- .then((res) => {
|
|
737
|
+ .then(res => {
|
822
|
738
|
if (res.code == 200) {
|
823
|
739
|
this.$message.success("更改成功!");
|
824
|
740
|
this.isPore = false;
|
|
@@ -833,9 +749,9 @@ export default {
|
833
|
749
|
let params = {
|
834
|
750
|
page: this.currentPage1,
|
835
|
751
|
limit: this.limit,
|
836
|
|
- id: this.id,
|
|
752
|
+ id: this.id
|
837
|
753
|
};
|
838
|
|
- api.getUserGoods(params).then((res) => {
|
|
754
|
+ api.getUserGoods(params).then(res => {
|
839
|
755
|
this.goodData = res.data.list;
|
840
|
756
|
this.total = res.data.total;
|
841
|
757
|
// 关闭刷新动画
|
|
@@ -848,9 +764,9 @@ export default {
|
848
|
764
|
let params = {
|
849
|
765
|
page: this.currentPage1,
|
850
|
766
|
limit: this.limit,
|
851
|
|
- id: this.id,
|
|
767
|
+ id: this.id
|
852
|
768
|
};
|
853
|
|
- api.getUserProject(params).then((res) => {
|
|
769
|
+ api.getUserProject(params).then(res => {
|
854
|
770
|
this.projectData = res.data.list;
|
855
|
771
|
this.total = res.data.total;
|
856
|
772
|
// 关闭刷新动画
|
|
@@ -877,7 +793,7 @@ export default {
|
877
|
793
|
let params = {
|
878
|
794
|
page: this.currentPage1,
|
879
|
795
|
limit: this.limit,
|
880
|
|
- id: this.id,
|
|
796
|
+ id: this.id
|
881
|
797
|
};
|
882
|
798
|
let resp = await api.getCardList(params);
|
883
|
799
|
if (resp.code === 200) {
|
|
@@ -892,7 +808,7 @@ export default {
|
892
|
808
|
let params = {
|
893
|
809
|
page: this.currentPage1,
|
894
|
810
|
limit: this.limit,
|
895
|
|
- id: this.id,
|
|
811
|
+ id: this.id
|
896
|
812
|
};
|
897
|
813
|
let resp = await api.getBalanceRecord(params);
|
898
|
814
|
if (resp.code === 200) {
|
|
@@ -921,8 +837,8 @@ export default {
|
921
|
837
|
this.$router.push({
|
922
|
838
|
path: "/historicalOrder/details",
|
923
|
839
|
query: {
|
924
|
|
- id: row.id,
|
925
|
|
- },
|
|
840
|
+ id: row.id
|
|
841
|
+ }
|
926
|
842
|
});
|
927
|
843
|
},
|
928
|
844
|
onSubmit() {},
|
|
@@ -942,7 +858,7 @@ export default {
|
942
|
858
|
} else if (e.index == 4) {
|
943
|
859
|
this.getBalanceRecord();
|
944
|
860
|
}
|
945
|
|
- },
|
|
861
|
+ }
|
946
|
862
|
},
|
947
|
863
|
|
948
|
864
|
created() {
|
|
@@ -981,7 +897,7 @@ export default {
|
981
|
897
|
}
|
982
|
898
|
},
|
983
|
899
|
|
984
|
|
- mounted() {},
|
|
900
|
+ mounted() {}
|
985
|
901
|
};
|
986
|
902
|
</script>
|
987
|
903
|
|
|
@@ -1010,6 +926,10 @@ export default {
|
1010
|
926
|
text-align: center;
|
1011
|
927
|
color: #fff;
|
1012
|
928
|
}
|
|
929
|
+ .examineCoupon {
|
|
930
|
+ width: 50px;
|
|
931
|
+ height: 25px;
|
|
932
|
+ }
|
1013
|
933
|
.pagin {
|
1014
|
934
|
padding: 20px 0;
|
1015
|
935
|
.el-pagination {
|