Commit ca2d3129 authored by guoyou's avatar guoyou

钱包

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