| | |
| | | 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> |
| | |
| | | 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> |
| | |
| | | import moment from 'moment' |
| | | export default { |
| | | name: 'Withdrawallist', |
| | | data() { |
| | | data () { |
| | | return { |
| | | columns: [ |
| | | { |
| | |
| | | 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: '应转金额', |
| | |
| | | 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: '申请时间', |
| | |
| | | width: 180, |
| | | customRender: (text, row, index) => { |
| | | return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : '' |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '出金时间', |
| | |
| | | width: 180, |
| | | customRender: (text, row, index) => { |
| | | return text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : '' |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | { |
| | |
| | | align: 'center', |
| | | width: 180, |
| | | fixed: 'right', |
| | | scopedSlots: { customRender: 'action' }, |
| | | }, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | // 表头 |
| | | pagination: { |
| | |
| | | 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: { |
| | |
| | | userId: '', |
| | | realName: '', |
| | | beginTime: '', |
| | | endTime: '', |
| | | endTime: '' |
| | | }, |
| | | datalist: [], |
| | | agentlist: [], |
| | |
| | | |
| | | 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) { |
| | |
| | | }) |
| | | }, |
| | | // 取消提现状态修改 |
| | | 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, |
| | |
| | | userId: '', |
| | | realName: '', |
| | | beginTime: '', |
| | | endTime: '', |
| | | endTime: '' |
| | | } |
| | | this.times = [] |
| | | }, |
| | | getagentlist() { |
| | | getagentlist () { |
| | | var that = this |
| | | this.agentloading = true |
| | | nextagent(this.agentqueryParam).then((res) => { |
| | |
| | | }, 500) |
| | | }) |
| | | }, |
| | | getlist() { |
| | | getlist () { |
| | | var that = this |
| | | this.loading = true |
| | | withdrawlist(this.queryParam).then((res) => { |
| | |
| | | }, 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> |