|
|
@ -88,17 +88,57 @@ |
|
|
|
</template> |
|
|
|
<template v-else> |
|
|
|
<el-table-column prop="tid" label="订单号"></el-table-column> |
|
|
|
<el-table-column prop="tid" label="退回成本"></el-table-column> |
|
|
|
<el-table-column prop="tid" label="时间"></el-table-column> |
|
|
|
<el-table-column prop="tid" label="充值前账号余额"></el-table-column> |
|
|
|
<el-table-column prop="tid" label="检测类型"></el-table-column> |
|
|
|
<el-table-column prop="tid" label="退款前论文状态"></el-table-column> |
|
|
|
<el-table-column prop="tid" label="订单金额"></el-table-column> |
|
|
|
<!-- <el-table-column prop="tid" label="退款金额"></el-table-column>--> |
|
|
|
<!-- <el-table-column prop="tid" label="退款方式"></el-table-column>--> |
|
|
|
<!-- <el-table-column prop="tid" label="退款时间"></el-table-column>--> |
|
|
|
<!-- <el-table-column prop="tid" label="退款理由"></el-table-column>--> |
|
|
|
<el-table-column prop="tid" label="退款详情"></el-table-column> |
|
|
|
<el-table-column prop="money" label="退回成本"></el-table-column> |
|
|
|
<el-table-column prop="pay_date" label="时间"></el-table-column> |
|
|
|
<el-table-column prop="remain_money" label="充值前账号余额"></el-table-column> |
|
|
|
<el-table-column prop="before_status" label="检测类型"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="tid2refunds[scope.row.tid]">{{tid2refunds[scope.row.tid].prod_desc}}</span> |
|
|
|
<span v-else>---</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="before_status" label="退款前论文状态"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="tid2refunds[scope.row.tid]">{{tid2refunds[scope.row.tid].before_status}}</span> |
|
|
|
<span v-else>---</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="total_money" label="订单金额"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="tid2refunds[scope.row.tid]">{{tid2refunds[scope.row.tid].total_money}}</span> |
|
|
|
<span v-else>---</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="tid" label="退款金额"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="tid2refunds[scope.row.tid]">{{tid2refunds[scope.row.tid].refund_money}}</span> |
|
|
|
<span v-else>---</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="tid" label="退款方式"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="tid2refunds[scope.row.tid]">{{tid2refunds[scope.row.tid].pay_type}}</span> |
|
|
|
<span v-else>---</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="tid" label="退款时间"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="tid2refunds[scope.row.tid]">{{tid2refunds[scope.row.tid].refund_time}}</span> |
|
|
|
<span v-else>---</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="tid" label="退款理由"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="tid2refunds[scope.row.tid]">{{tid2refunds[scope.row.tid].refund_reason}}</span> |
|
|
|
<span v-else>---</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="tid" label="退款详情"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="tid2refunds[scope.row.tid]">查看</span> |
|
|
|
<span v-else>---</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -167,6 +207,7 @@ export default { |
|
|
|
pageSize: 20, //每页的容量 |
|
|
|
total: 0, //列表总数 |
|
|
|
total_money: 0, //列表总数 |
|
|
|
tid2refunds: [], //列表总数 |
|
|
|
|
|
|
|
confirmBtnStyle: { |
|
|
|
'background':'#FF4D4F', |
|
|
@ -213,10 +254,10 @@ export default { |
|
|
|
}, |
|
|
|
handleClick(){ |
|
|
|
this.tableList = [] |
|
|
|
this.tableKey = Math.random(); |
|
|
|
this.total_money = 0 |
|
|
|
if(this.totalType == 1) this.getRechargeData() |
|
|
|
if(this.totalType == 2) this.getRechargeList() |
|
|
|
if(this.totalType == 3) this.getChktypeStats() |
|
|
|
if(this.totalType == 3) this.getRefundList() |
|
|
|
}, |
|
|
|
getRechargeData() { |
|
|
|
try { |
|
|
@ -245,7 +286,7 @@ export default { |
|
|
|
this.tableList = response.data.list |
|
|
|
this.total = response.data.total |
|
|
|
this.total_money = response.data.total_money |
|
|
|
console.log(this.total_money) |
|
|
|
this.tableKey = Math.random(); |
|
|
|
}) |
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
@ -256,13 +297,14 @@ export default { |
|
|
|
this.tableLoading = false |
|
|
|
} |
|
|
|
}, |
|
|
|
getChktypeStats() { |
|
|
|
getRefundList() { |
|
|
|
this.tableLoading = true |
|
|
|
try { |
|
|
|
this.$http('POST', '/agentnew/ajax_get_chktype_stats', {date: this.date}).then(response => { |
|
|
|
this.$http('POST', '/agentnew/ajax_get_cancel_check_list', {date: this.date}).then(response => { |
|
|
|
this.tableLoading = false |
|
|
|
this.$nextTick(() => { |
|
|
|
this.tableList = response.data.list |
|
|
|
this.tid2refunds = response.data.tid2refunds |
|
|
|
}) |
|
|
|
}).catch(error => { |
|
|
|
console.error(error, 'error') |
|
|
|