Commit ca2d3129 authored by guoyou's avatar guoyou

钱包

parent 22ad0472
......@@ -110,8 +110,9 @@
<el-row v-if="dialogFrom.type==88">
<el-col :span="12">
<el-form-item label="提现方式" prop="withdrawWay">
<el-radio v-model="dialogFrom.withdrawWay" label="1">线上</el-radio>
<el-radio v-model="dialogFrom.withdrawWay" label="2">线下</el-radio>
<el-radio v-model="dialogFrom.withdrawWay" label="3">线上</el-radio>
<el-radio v-model="dialogFrom.withdrawWay" label="1">线下自动</el-radio>
<el-radio v-model="dialogFrom.withdrawWay" label="2">线下手动</el-radio>
</el-form-item>
</el-col>
</el-row>
......
This diff is collapsed.
<template>
<div class="app-container calendar-list-container" v-loading.body="showLoadingBody">
<div class="app-container calendar-list-container" v-loading="showLoadingBody">
<div>
<div class="filter-container" ref="filter-container">
<el-form ref="queryForm" :inline="inline" :model="listQuery" label-width="100px">
......@@ -25,12 +25,22 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="付款方式" prop="type">
<el-select class="filter-item" v-model="listQuery.withdrawWay" placeholder="请输入状态">
<el-option
v-for="(item,index) in withdrawWayArr"
:key="index"
:label="item.name"
:value="item.val"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="提现时间">
<el-date-picker v-model="time" type="datetimerange" placeholder="选择时间范围"></el-date-picker>
</el-form-item>
<el-button class="filter-item" type="primary" v-waves icon="search" @click="handleFilter">搜索</el-button>
<el-button class="filter-item" type="primary" v-waves icon="search" @click="clearSearch">清空搜索</el-button>
</el-form>
</div>
<el-table :key="tableKey" :data="list" border fit highlight-current-row style="width: 100%;">
......@@ -82,6 +92,11 @@
<p>{{scope.row.finishTimeStr}}</p>
</template>
</el-table-column>
<el-table-column align="center" label="付款方式">
<template scope="scope">
<p>{{scope.row.withdrawWay == 1 ? '线下自动' : scope.row.withdrawWay == 2 ? '线下手动' : '线上'}}</p>
</template>
</el-table-column>
<el-table-column align="center" label="操作" width="65" fixed="right">
<template scope="scope">
<el-button
......@@ -155,8 +170,18 @@ export default {
},
data() {
return {
withdrawWayArr:[{
name:'线上',
val:'3'
},{
name:'线下自动',
val:'1'
},{
name:'线下手动',
val:'2'
}],
submitBtn:false,
time:[],//提现时间
time:[],//提现时间
typeOptions: [
{
name: '全部',
......@@ -183,9 +208,10 @@ export default {
limit: 20,
phone: '', //手机号
username: '', //姓名
state: '', //状态
startTime:null,
endTime:null,
withdrawWay:'',
state: '', //状态
startTime:null,
endTime:null,
orderNo: '', //提现单号
},
inline: true,
......@@ -204,10 +230,25 @@ export default {
...mapGetters(['elements'])
},
methods: {
clearSearch(){
this.listQuery= {
page: 1,
limit: 20,
phone: '', //手机号
username: '', //姓名
withdrawWay:'',
state: '', //状态
startTime:null,
endTime:null,
orderNo: '', //提现单号
}
this.getList()
},
/**
* 获取提现列表
* */
getList() {
this.showLoadingBody = true
this.listLoading = true
discountList(this.listQuery).then(response => {
let totalCountRs = undefined
......@@ -229,6 +270,9 @@ export default {
this.list = listRs
this.total = totalCountRs
})
setTimeout(() => {
this.showLoadingBody = false
}, 300);
},
handleFilter() {
this.listQuery.page = 1
......@@ -256,7 +300,7 @@ export default {
},
handleUpdate(row) {
this.dialogFrom.cathId = row.id
this.activeOfflineWay = row.offlineWay
this.activeOfflineWay = row.withdrawWay
this.dialogVisible = true
},
edit(formName) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment