| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="12" :lg="6" :sm="24"> |
| | | <a-form-item label="下级代理"> |
| | | <a-select v-model="queryParam.agentId" placeholder="请选择下级代理" @focus="getagentlist" |
| | | :loading="agentloading"> |
| | | <a-select-option v-for="(item, index) in agentlist" :key="index" :value="item.id"> |
| | | {{ item.agentName }} |
| | | </a-select-option> |
| | | </a-select> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="12" :lg="6" :sm="24"> |
| | | <a-form-item label="用户Id"> |
| | | <a-input v-model="queryParam.userId" style="width: 100%" placeholder="请输入用户Id" /> |
| | | </a-form-item> |
| | |
| | | <a-button @click="getqueryParam" icon="redo"> 重置</a-button> |
| | | <a-button type="primary" 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> |
| | | </span> |
| | | </a-form-item> |
| | |
| | | <div slot="footer" style="display: flex; justify-content: center; align-items: center"> |
| | | <a-button type="primary" style="background-color: " @click="OkeditOrderdialog(3)">驳回</a-button> |
| | | <a-button type="primary" @click="OkeditOrderdialog(2)">通过</a-button> |
| | | <a-button type="primary" @click="OkeditOrderdialog(1)">代付1</a-button> |
| | | <a-button type="primary" @click="OkeditOrderdialog(4)">代付2</a-button> |
| | | <!-- <a-button type="primary" @click="OkeditOrderdialog(1)">代付1</a-button> |
| | | <a-button type="primary" @click="OkeditOrderdialog(4)">代付2</a-button> --> |
| | | </div> |
| | | </a-modal> |
| | | </page-header-wrapper> |
| | |
| | | import { |
| | | withdrawlist, |
| | | withdrawupdateState, |
| | | withdrawexport |
| | | } from '@/api/capital' |
| | | import { |
| | | nextagent |
| | | } from '@/api/home' |
| | | import pick from 'lodash.pick' |
| | | import fileDownload from 'js-file-download' |
| | | import moment from 'moment' |
| | |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '代理id', |
| | | dataIndex: 'agentId', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '客户电话', |
| | | dataIndex: 'userPhone', |
| | | align: 'center', |
| | | }, |
| | | { |
| | | title: '代理ID', |
| | | dataIndex: 'agentId', |
| | | align: 'center', |
| | | }, |
| | | { |
| | |
| | | queryParam: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | agentId: undefined, |
| | | state: undefined, |
| | | userId: '', |
| | | realName: '', |
| | |
| | | endTime: '', |
| | | }, |
| | | datalist: [], |
| | | agentlist: [], |
| | | agentloading: false, |
| | | times: [], |
| | | editOrderform: this.$form.createForm(this), |
| | |
| | | this.getlist() |
| | | }, |
| | | methods: { |
| | | getexport() { |
| | | withdrawexport(this.queryParam).then((res) => { |
| | | fileDownload(res, '提现列表.xls') |
| | | }) |
| | | }, |
| | | // 点击修改提现状态 |
| | | getEditorder(val) { |
| | | this.withId = val.id |
| | |
| | | this.queryParam = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | agentId: undefined, |
| | | state: undefined, |
| | | userId: '', |
| | | realName: '', |
| | |
| | | endTime: '', |
| | | } |
| | | this.times = [] |
| | | }, |
| | | getagentlist() { |
| | | var that = this |
| | | this.agentloading = true |
| | | nextagent(this.agentqueryParam).then((res) => { |
| | | this.agentlist = res.data.list |
| | | setTimeout(() => { |
| | | that.agentloading = false |
| | | }, 500) |
| | | }) |
| | | }, |
| | | getlist() { |
| | | var that = this |