From abcf89c0931fc453f4fd8e1d4d48b8b469d0f3c7 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Tue, 07 May 2024 10:19:31 +0800
Subject: [PATCH] xxx
---
src/views/capital/withdrawallist.vue | 98 +++++++++++++++++++++++++-----------------------
1 files changed, 51 insertions(+), 47 deletions(-)
diff --git a/src/views/capital/withdrawallist.vue b/src/views/capital/withdrawallist.vue
index 7522196..354635a 100644
--- a/src/views/capital/withdrawallist.vue
+++ b/src/views/capital/withdrawallist.vue
@@ -63,10 +63,14 @@
icon="search"
style="margin-left: 8px"
@click=";(queryParam.pageNum = 1), getlist()"
- >查询
+ >查询
</a-button>
- <a-button type="primary" icon="vertical-align-bottom" style="margin-left: 8px" @click="getexport"
- >导出搜索数据
+ <a-button
+ type="primary"
+ icon="vertical-align-bottom"
+ style="margin-left: 8px"
+ @click="getexport"
+ >导出搜索数据
</a-button>
</span>
</a-form-item>
@@ -92,20 +96,20 @@
record.withStatus == 0
? 'blue'
: record.withStatus == 1
- ? 'green'
- : record.withStatus == 2
- ? 'red'
- : 'orange'
+ ? 'green'
+ : record.withStatus == 2
+ ? 'red'
+ : 'orange'
"
>
{{
record.withStatus == 0
? '申请中'
: record.withStatus == 1
- ? '审核中'
- : record.withStatus == 2
- ? '提现成功'
- : '拒绝提现'
+ ? '审核中'
+ : record.withStatus == 2
+ ? '提现成功'
+ : '拒绝提现'
}}
</a-tag>
</div>
@@ -167,7 +171,7 @@
import moment from 'moment'
export default {
name: 'Withdrawallist',
- data() {
+ data () {
return {
columns: [
{
@@ -177,27 +181,27 @@
width: 180,
customRender: (text, row, index) => {
return `${row.nickName}(${row.userId})`
- },
+ }
},
{
title: '订单ID',
dataIndex: 'id',
- align: 'center',
+ align: 'center'
},
{
title: '代理id',
dataIndex: 'agentId',
- align: 'center',
+ align: 'center'
},
{
title: '客户电话',
dataIndex: 'userPhone',
- align: 'center',
+ align: 'center'
},
{
title: '代理ID',
dataIndex: 'agentId',
- align: 'center',
+ align: 'center'
},
{
title: '应转金额',
@@ -205,45 +209,45 @@
align: 'center',
customRender: (text, row, index) => {
return row.withAmt - row.withFee
- },
+ }
},
{
title: '出金金额',
dataIndex: 'withAmt',
- align: 'center',
+ align: 'center'
},
{
title: '手续费',
dataIndex: 'withFee',
- align: 'center',
+ align: 'center'
},
{
title: '状态',
dataIndex: 'withStatus',
align: 'center',
- scopedSlots: { customRender: 'withStatus' },
+ scopedSlots: { customRender: 'withStatus' }
},
{
title: '提现银行',
dataIndex: 'bankName',
- align: 'center',
+ align: 'center'
},
{
title: '提现支行',
dataIndex: 'bankAddress',
align: 'center',
- width: 200,
+ width: 200
},
{
title: '银行号码',
dataIndex: 'bankNo',
- align: 'center',
+ align: 'center'
},
{
title: '原因',
dataIndex: 'withMsg',
align: 'center',
- width: 200,
+ width: 200
},
{
title: '申请时间',
@@ -252,7 +256,7 @@
width: 180,
customRender: (text, row, index) => {
return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : ''
- },
+ }
},
{
title: '出金时间',
@@ -261,7 +265,7 @@
width: 180,
customRender: (text, row, index) => {
return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : ''
- },
+ }
},
{
@@ -270,8 +274,8 @@
align: 'center',
width: 180,
fixed: 'right',
- scopedSlots: { customRender: 'action' },
- },
+ scopedSlots: { customRender: 'action' }
+ }
],
// 表头
pagination: {
@@ -281,7 +285,7 @@
pageSizeOptions: ['10', '20', '50', '100'], // 每页中显示的数据
onShowSizeChange: (current, pageSize) => this.onSizeChange(current, pageSize), // 改变每页数量时更新显示
onChange: (page, pageSize) => this.onPageChange(page, pageSize), // 点击页码事件
- showTotal: (total) => `共有 ${total} 条数据`, // 分页中显示总的数据
+ showTotal: (total) => `共有 ${total} 条数据` // 分页中显示总的数据
},
loading: false,
queryParam: {
@@ -292,7 +296,7 @@
userId: '',
realName: '',
beginTime: '',
- endTime: '',
+ endTime: ''
},
datalist: [],
agentlist: [],
@@ -305,27 +309,27 @@
agentqueryParam: {
pageNum: 1,
- pageSize: 100,
- },
+ pageSize: 100
+ }
}
},
- created() {
+ created () {
this.getlist()
},
methods: {
- getexport() {
+ getexport () {
withdrawexport(this.queryParam).then((res) => {
fileDownload(res, '提现列表.xls')
})
},
// 点击修改提现状态
- getEditorder(val) {
+ getEditorder (val) {
this.editOrderdialog = true
this.fields.forEach((v) => this.editOrderform.getFieldDecorator(v))
this.editOrderform.setFieldsValue(pick({ withId: val }, this.fields))
},
// 开始更改提现状态
- OkeditOrderdialog(e) {
+ OkeditOrderdialog (e) {
const form = this.$refs.editOrderform.form
form.validateFields((errors, values) => {
if (!errors) {
@@ -350,16 +354,16 @@
})
},
// 取消提现状态修改
- CanceleditOrderdialog() {
+ CanceleditOrderdialog () {
this.editOrderdialog = false
const form = this.$refs.editOrderform.form
form.resetFields()
},
- onChangeRangeDate(value, dateString) {
+ onChangeRangeDate (value, dateString) {
this.queryParam.beginTime = dateString[0]
this.queryParam.endTime = dateString[1]
},
- getqueryParam() {
+ getqueryParam () {
this.queryParam = {
pageNum: 1,
pageSize: 10,
@@ -368,11 +372,11 @@
userId: '',
realName: '',
beginTime: '',
- endTime: '',
+ endTime: ''
}
this.times = []
},
- getagentlist() {
+ getagentlist () {
var that = this
this.agentloading = true
nextagent(this.agentqueryParam).then((res) => {
@@ -382,7 +386,7 @@
}, 500)
})
},
- getlist() {
+ getlist () {
var that = this
this.loading = true
withdrawlist(this.queryParam).then((res) => {
@@ -393,16 +397,16 @@
}, 500)
})
},
- onPageChange(page, pageSize) {
+ onPageChange (page, pageSize) {
this.queryParam.pageNum = page
this.getlist()
},
- onSizeChange(current, pageSize) {
+ onSizeChange (current, pageSize) {
this.queryParam.pageNum = current
this.queryParam.pageSize = pageSize
this.getlist()
- },
- },
+ }
+ }
}
</script>
<style scoped>
--
Gitblit v1.9.3