|
@@ -23,13 +23,13 @@
|
|
<el-table-column align='center' prop="createTime"
|
|
<el-table-column align='center' prop="createTime"
|
|
label="申请时间">
|
|
label="申请时间">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align='center' prop="realName"
|
|
|
|
|
|
+ <el-table-column align='center' prop="user.realName"
|
|
label="学员姓名">
|
|
label="学员姓名">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align='center' prop="amount"
|
|
<el-table-column align='center' prop="amount"
|
|
label="提现金额">
|
|
label="提现金额">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align='center' prop="balance"
|
|
|
|
|
|
+ <el-table-column align='center' prop="detail.balance"
|
|
label="账户余额(元)">
|
|
label="账户余额(元)">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align='center' prop="bankCardNo" width="200"
|
|
<el-table-column align='center' prop="bankCardNo" width="200"
|
|
@@ -44,20 +44,20 @@
|
|
<el-table-column align='center'
|
|
<el-table-column align='center'
|
|
label="支付账号">
|
|
label="支付账号">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-input v-if="scope.row.status == 'ING'" type="text" v-model="scope.row.platformAccountNo" placeholder="支付账号"></el-input>
|
|
|
|
- <span v-else>{{ scope.row.platformAccountNo }}</span>
|
|
|
|
|
|
+ <el-input v-if="scope.row.status == 'ING'" type="text" v-model="scope.row.detail.platformAccountNo" placeholder="支付账号"></el-input>
|
|
|
|
+ <span v-else>{{ scope.row.detail.platformAccountNo }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align='center'
|
|
<el-table-column align='center'
|
|
label="支付渠道">
|
|
label="支付渠道">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<!-- <el-input type="text" v-model="scope.row.channel" placeholder="支付渠道"></el-input> -->
|
|
<!-- <el-input type="text" v-model="scope.row.channel" placeholder="支付渠道"></el-input> -->
|
|
- <el-select v-if="scope.row.status == 'ING'" v-model="scope.row.channel" placeholder="请选择" style="width: 100% !important;">
|
|
|
|
- <el-option label="微信" value="WECHAT"> </el-option>
|
|
|
|
- <el-option label="支付宝" value="ALIPAY"> </el-option>
|
|
|
|
- <el-option label="银联" value="FAST_PAYMENT"> </el-option>
|
|
|
|
|
|
+ <el-select v-if="scope.row.status == 'ING'" v-model="scope.row.detail.transType" placeholder="请选择" style="width: 100% !important;">
|
|
|
|
+ <el-option label="微信" value="1"> </el-option>
|
|
|
|
+ <el-option label="支付宝" value="2"> </el-option>
|
|
|
|
+ <el-option label="银联" value="3"> </el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- <span v-else>{{ scope.row.channel }}</span>
|
|
|
|
|
|
+ <span v-else>{{ getTypes(scope.row.detail.transType) }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align='center'
|
|
<el-table-column align='center'
|
|
@@ -71,7 +71,7 @@
|
|
label="操作">
|
|
label="操作">
|
|
<template slot-scope="scope" v-if="scope.row.status == 'ING'">
|
|
<template slot-scope="scope" v-if="scope.row.status == 'ING'">
|
|
<el-button @click="onSure(scope.row, 'SUCCESS')" type="text">确认</el-button>
|
|
<el-button @click="onSure(scope.row, 'SUCCESS')" type="text">确认</el-button>
|
|
- <el-button @click="onSure(scope.row, 'FAilED')" type="text">拒绝</el-button>
|
|
|
|
|
|
+ <el-button @click="onSure(scope.row, 'FAILED')" type="text">拒绝</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -123,11 +123,19 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ getTypes(index) {
|
|
|
|
+ let template = {
|
|
|
|
+ 1: '微信',
|
|
|
|
+ 2: '支付宝',
|
|
|
|
+ 3: '银联'
|
|
|
|
+ }
|
|
|
|
+ return template[index]
|
|
|
|
+ },
|
|
onSure(row, type) {
|
|
onSure(row, type) {
|
|
let contentText = ''
|
|
let contentText = ''
|
|
if(type == 'SUCCESS') {
|
|
if(type == 'SUCCESS') {
|
|
contentText = '您确定提现吗?'
|
|
contentText = '您确定提现吗?'
|
|
- } else if(type == 'FAilED') {
|
|
|
|
|
|
+ } else if(type == 'FAILED') {
|
|
contentText = '您确定拒绝吗?'
|
|
contentText = '您确定拒绝吗?'
|
|
}
|
|
}
|
|
console.log(row)
|
|
console.log(row)
|
|
@@ -138,8 +146,8 @@ export default {
|
|
}).then(() => {
|
|
}).then(() => {
|
|
studentWithdrawConfirm({
|
|
studentWithdrawConfirm({
|
|
id: row.id,
|
|
id: row.id,
|
|
- platformAccountNo: row.platformAccountNo,
|
|
|
|
- transType: row.channel,
|
|
|
|
|
|
+ platformAccountNo: row.detail.platformAccountNo,
|
|
|
|
+ transType: row.detail.transType,
|
|
status: type,
|
|
status: type,
|
|
transNo: row.transNo
|
|
transNo: row.transNo
|
|
}).then(res => {
|
|
}).then(res => {
|