公共退款显示退款状态
This commit is contained in:
@@ -24,6 +24,11 @@
|
||||
<el-table-column prop="ConnectCount" label="连接数"></el-table-column>
|
||||
<el-table-column prop="Accounts" label="账号"></el-table-column>
|
||||
<el-table-column prop="RefundRestTime" label="剩余时间"></el-table-column>
|
||||
<el-table-column prop="OrderState" label="退款状态">
|
||||
<template slot-scope="scope">
|
||||
<span :class="{red:scope.row.OrderState==30}"> {{refundTypeFormat(scope.row.OrderState)}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination
|
||||
@@ -88,6 +93,19 @@ export default {
|
||||
this.products = res.Data = res.data
|
||||
})
|
||||
},
|
||||
refundTypeFormat(orderStatus){
|
||||
switch (orderStatus) {
|
||||
case '30':
|
||||
return "未自动退款";
|
||||
case '40':
|
||||
return "已人工处理";
|
||||
case '50':
|
||||
return "已自动退款";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
return "";
|
||||
},
|
||||
dataExport () {
|
||||
this.$api.getDownloadFile(this.$api.phpURL + 'order/OpenRefund/export', this.searchModel, '退款.csv')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user