| | |
| | | @click=";(queryParam.pageNum = 1), getlist()" |
| | | >查询 |
| | | </a-button> |
| | | <a-button type="primary" icon="plus" style="margin-left: 8px" @click="addOrderdialog = true" |
| | | <a-button |
| | | type="primary" |
| | | icon="plus" |
| | | style="margin-left: 8px" |
| | | @click="addOrderdialog = true" |
| | | >创建充值订单 |
| | | </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> |
| | |
| | | <el-image style="width: 140px; height: 70px" :src="record.img" :preview-src-list="[record.img]"> </el-image> |
| | | </template> |
| | | <template slot="action" slot-scope="text, record"> |
| | | <a slot="action" href="javascript:;" @click="getEditorder(record.id)" v-if="record.orderStatus == 0" |
| | | <a |
| | | slot="action" |
| | | href="javascript:;" |
| | | @click="getEditorder(record.id)" |
| | | v-if="record.orderStatus == 0" |
| | | >修改状态</a |
| | | > |
| | | <a-divider type="vertical" v-if="record.orderStatus == 0" /> |
| | |
| | | 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: 'orderSn', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '账户类型', |
| | |
| | | default: |
| | | return '未知账户' |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '上传凭证', |
| | | dataIndex: 'img', |
| | | align: 'center', |
| | | width: 180, |
| | | scopedSlots: { customRender: 'img' }, |
| | | scopedSlots: { customRender: 'img' } |
| | | }, |
| | | { |
| | | title: '客户电话', |
| | | dataIndex: 'userPhone', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | // { |
| | | // title: '充值渠道', |
| | |
| | | { |
| | | title: '充值金额', |
| | | dataIndex: 'payAmt', |
| | | align: 'center', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | 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') : '' |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | title: '状态', |
| | | dataIndex: 'orderStatus', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'orderStatus' }, |
| | | scopedSlots: { customRender: 'orderStatus' } |
| | | }, |
| | | { |
| | | title: '操作', |
| | |
| | | align: 'center', |
| | | fixed: 'right', |
| | | width: 180, |
| | | 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: [], |
| | |
| | | addOrderDialogloading: false, |
| | | agentqueryParam: { |
| | | pageNum: 1, |
| | | pageSize: 100, |
| | | }, |
| | | pageSize: 100 |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | content: '确认删除充值订单吗?此操作不可恢复', |
| | | onOk() { |
| | | var data = { |
| | | cId: val, |
| | | cId: val |
| | | } |
| | | rechargedel(data).then((res) => { |
| | | if (res.status == 0) { |
| | |
| | | }, |
| | | onCancel() { |
| | | console.log('Cancel') |
| | | }, |
| | | } |
| | | }) |
| | | }, |
| | | onChangeRangeDate(value, dateString) { |
| | |
| | | userId: '', |
| | | realName: '', |
| | | beginTime: '', |
| | | endTime: '', |
| | | endTime: '' |
| | | } |
| | | this.times = [] |
| | | }, |
| | |
| | | this.queryParam.pageNum = current |
| | | this.queryParam.pageSize = pageSize |
| | | this.getlist() |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |