|
|
@@ -90,7 +90,7 @@
|
|
|
</template>
|
|
|
<template v-if="scope.row.refundState == 2">
|
|
|
<el-tag type="info">已提交</el-tag>
|
|
|
- <el-button type="danger" plain size="small" @click="applyRefund(scope.row)">确认退款</el-button>
|
|
|
+ <el-button type="danger" plain size="small" @click="refund(scope.row)">确认退款</el-button>
|
|
|
</template>
|
|
|
|
|
|
<el-tag v-if="scope.row.refundState == 3" type="success">退款完成</el-tag>
|
|
|
@@ -362,8 +362,10 @@ export default {
|
|
|
// 申请退款
|
|
|
async applyRefund(row) {
|
|
|
this.loading = true;
|
|
|
- let res = await this.$post("/uapi/cert/confirm_tk", {
|
|
|
- // id: row.id,
|
|
|
+
|
|
|
+ debugger
|
|
|
+ let res = await this.$post("/uapi/cert/tk", {
|
|
|
+ id: row.id,
|
|
|
});
|
|
|
this.loading = false;
|
|
|
if (res && res.status === 1) {
|
|
|
@@ -384,7 +386,7 @@ export default {
|
|
|
async refund(row) {
|
|
|
this.loading = true;
|
|
|
let res = await this.$post("/uapi/cert/confirm_tk", {
|
|
|
- // id: row.id,
|
|
|
+ id: row.id,
|
|
|
});
|
|
|
this.loading = false;
|
|
|
if (res && res.status === 1) {
|