Commit 2ce5893e by cwq0219

线上分账列表,提现记录

1 parent d191d290
<!-- 提现记录 -->
<template>
<div></div>
<d2-container class="account-record">
<div
class="header"
slot="header"
>
<d2-search
ref="showSearch"
class="show-search"
:searchForm="searchForm"
:formData="showFormData"
>
</d2-search>
<div class="up-btns">
<el-button
size="small"
type="primary"
>查询</el-button>
<el-button
size="small"
@click="handleReset"
>重置</el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table
ref="accountRecordTable"
:getListApi="getListApi"
:searchForm="searchForm"
:tableParams="tableParams"
>
<auth-button
slot="auth-button"
slot-scope="scope"
:data="scope.scope"
></auth-button>
</d2-table>
</div>
</d2-container>
</template>
<script>
import { mapActions } from 'vuex'
import { BaseData } from '@/common/constants.js'
export default {
name: 'accountRecord',
data() {
return {
searchForm: {},
showFormData: [{
label: '提现时间',
name: '',
type: 'datePicker'
}, {
label: '提现结果',
name: '',
type: 'select',
optionList: [],
optionId: '',
optionLabel: '',
optionsName: ''
}, {
label: '渠道',
name: 'channelType',
type: 'select',
optionList: [],
optionId: 'value',
optionLabel: 'name',
optionsName: 'channelTypeList'
}, {
label: '商户名称',
name: '',
type: 'input',
placeholder: '请输入4S店/服务商名称'
}, {
label: '提现渠道',
name: '',
type: 'select',
optionList: [],
optionId: '',
optionLabel: '',
optionsName: ''
}],
getListApi: '',
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableOption: true,
tableColumns: [{
label: '序号',
prop: ''
}, {
label: '提现时间',
prop: ''
}, {
label: '登录账户',
prop: ''
}, {
label: '商户名',
prop: ''
}, {
label: '提现金额(元)',
prop: ''
}, {
label: '到账账户名',
prop: ''
}, {
label: '到账银行',
prop: ''
}, {
label: '到账卡号',
prop: ''
}, {
label: '验证手机号',
prop: ''
}, {
label: '提现结果',
prop: ''
}, {
label: '到账金额(元)',
prop: ''
}, {
label: '渠道',
prop: ''
}, {
label: '提现渠道',
prop: ''
}]
}
}
},
components: {},
mounted() {
this.getBaseData()
},
computed: {},
methods: {
...mapActions('d2admin/base', ['get']),
mounted() {},
async getBaseData() {
this.baseData.channelTypeList = await this.get(BaseData.channelType)
this.getOptionsList()
},
methods: {}
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
if (this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部') {
const temp = {}
temp[this.showFormData[index].optionId] = ''
temp[this.showFormData[index].optionLabel] = '全部'
this.baseData[item.optionsName].unshift(temp)
}
this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
}
})
}
}
}
</script>
......
<!-- 线上分账列表 -->
<template>
<div></div>
<d2-container class="online-account">
<div
class="header"
slot="header"
>
<d2-search
ref="showSearch"
class="show-search"
:searchForm="searchForm"
:formData="showFormData"
>
</d2-search>
<div class="up-btns">
<el-button
size="small"
type="primary"
>查询</el-button>
<el-button
size="small"
@click="handleReset"
>重置</el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<span slot="left">共笔订单,累计分账金额元,分账成功金额元,分账中金额元,分账失败金额元。</span>
<auth-button category="Button"></auth-button>
</d2-table-header>
<el-table :data="tableList">
<el-table-column
label="序号"
prop=""
align="center"
></el-table-column>
<el-table-column
label="订单编号"
prop=""
align="center"
></el-table-column>
<el-table-column
label="支付金额"
prop=""
align="center"
></el-table-column>
<el-table-column
label="分账金额"
prop=""
align="center"
></el-table-column>
<el-table-column
label="服务商"
align="center"
>
<el-table-column
label="名称"
prop=""
align="center"
></el-table-column>
<el-table-column
label="分账金额"
prop=""
align="center"
></el-table-column>
</el-table-column>
<el-table-column
label="4S店"
align="center"
>
<el-table-column
label="名称"
prop=""
align="center"
></el-table-column>
<el-table-column
label="分账金额"
prop=""
align="center"
></el-table-column>
<el-table-column
label="渠道"
prop=""
align="center"
></el-table-column>
</el-table-column>
<el-table-column
label="分账状态"
prop=""
align="center"
></el-table-column>
<el-table-column
label="分账时间"
prop=""
align="center"
></el-table-column>
</el-table>
<el-pagination
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="page.currentPage"
:page-sizes="[10,20,30,40]"
:page-size="page.pageSize"
:total="total"
layout="sizes,total,->,prev,pager,next,jumper"
></el-pagination>
</div>
</d2-container>
</template>
<script>
import { mapActions } from 'vuex'
import { BaseData } from '@/common/constants.js'
export default {
name: 'onlineAccountList',
data() {
return {
searchForm: {},
showFormData: [{
label: '分账时间',
name: '',
type: 'datePicker'
}, {
label: '订单编号',
name: '',
type: 'input'
}, {
label: '分账状态',
name: '',
type: 'select',
optionList: [],
optionId: '',
optionLabel: '',
optionName: ''
}, {
label: '渠道',
name: 'channelType',
type: 'select',
optionList: [],
optionId: 'value',
optionLabel: 'name',
optionsName: 'channelTypeList'
}, {
label: '商户名称',
name: 'merchantName',
type: 'input'
}],
// 表格
tableList: [],
page: {
pageSize: 10,
currentPage: 1
},
total: 0,
baseData: {
channelTypeList: []
}
}
},
components: {},
mounted() {
this.getBaseData()
},
methods: {
...mapActions('d2admin/base', ['get']),
async getBaseData() {
this.baseData.channelTypeList = await this.get(BaseData.channelType)
this.getOptionsList()
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
if (this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this.showFormData[index].optionLabel] !== '全部') {
const temp = {}
temp[this.showFormData[index].optionId] = ''
temp[this.showFormData[index].optionLabel] = '全部'
this.baseData[item.optionsName].unshift(temp)
}
this.$set(this.showFormData[index], 'optionList', this.baseData[item.optionsName])
}
})
},
handleSearch() { },
// 每页条数
handleSizeChange(value) {
this.page.pageSize = value
this.handleSearch()
},
computed: {},
// 页码
handleCurrentChange(value) {
this.page.currentPage = value
this.handleSearch()
},
mounted() {},
handleRecord() {
this.$router.push({
name: 'accountRecord'
})
},
methods: {}
handleExport() { }
}
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!