Showing
2 changed files
with
18 additions
and
3 deletions
@@ -42,7 +42,8 @@ | @@ -42,7 +42,8 @@ | ||
42 | :onSelect="selectRow" | 42 | :onSelect="selectRow" |
43 | @on-page-change="fetchData"> | 43 | @on-page-change="fetchData"> |
44 | <template slot="footer" class="btns"> | 44 | <template slot="footer" class="btns"> |
45 | - <i-button type="primary" @click="onBatchDelete">批量删除</i-button> | 45 | + <i-button type="primary" @click="onBatchReject">批量驳回</i-button> |
46 | + <i-button type="primary" @click="onBatchRefund">批量退款</i-button> | ||
46 | </template> | 47 | </template> |
47 | </LayoutTable> | 48 | </LayoutTable> |
48 | <Modal | 49 | <Modal |
@@ -361,6 +362,20 @@ export default { | @@ -361,6 +362,20 @@ export default { | ||
361 | this.fetchData(); | 362 | this.fetchData(); |
362 | this.ids = []; | 363 | this.ids = []; |
363 | }, | 364 | }, |
365 | + async onBatchReject() { | ||
366 | + if(!this.ids.length) | ||
367 | + this.$Message.warning('请勾选驳回条目'); | ||
368 | + await api._get('/ufoPlatform/refundRecord/reject', {ids:this.ids.toString()}); | ||
369 | + this.fetchData(); | ||
370 | + this.ids = []; | ||
371 | + }, | ||
372 | + async onBatchRefund() { | ||
373 | + if(!this.ids.length) | ||
374 | + this.$Message.warning('请勾选退款条目'); | ||
375 | + await api._get('/ufoPlatform/refundRecord/makePaid', {ids:this.ids.toString()}); | ||
376 | + this.fetchData(); | ||
377 | + this.ids = []; | ||
378 | + }, | ||
364 | async onExport() { | 379 | async onExport() { |
365 | this.$Loading.start(); | 380 | this.$Loading.start(); |
366 | let param = {...this.filter}; | 381 | let param = {...this.filter}; |
@@ -430,4 +445,4 @@ export default { | @@ -430,4 +445,4 @@ export default { | ||
430 | display: flex; | 445 | display: flex; |
431 | justify-content: flex-end; | 446 | justify-content: flex-end; |
432 | } | 447 | } |
433 | -</style> | ||
448 | +</style> |
-
Please register or login to post a comment