1
jhzh
2026-01-12 e5919c0e9058fd417fb4a8ca5b37013f17ab5b37
src/views/capital/withdrawallist.vue
@@ -16,16 +16,6 @@
                </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>
@@ -51,9 +41,6 @@
                    <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>
@@ -127,8 +114,8 @@
      <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>
@@ -137,11 +124,7 @@
  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'
@@ -164,18 +147,8 @@
            align: 'center',
          },
          {
            title: '代理id',
            dataIndex: 'agentId',
            align: 'center',
          },
          {
            title: '客户电话',
            dataIndex: 'userPhone',
            align: 'center',
          },
          {
            title: '代理ID',
            dataIndex: 'agentId',
            align: 'center',
          },
          {
@@ -270,7 +243,6 @@
        queryParam: {
          pageNum: 1,
          pageSize: 10,
          agentId: undefined,
          state: undefined,
          userId: '',
          realName: '',
@@ -278,7 +250,6 @@
          endTime: '',
        },
        datalist: [],
        agentlist: [],
        agentloading: false,
        times: [],
        editOrderform: this.$form.createForm(this),
@@ -296,11 +267,6 @@
      this.getlist()
    },
    methods: {
      getexport() {
        withdrawexport(this.queryParam).then((res) => {
          fileDownload(res, '提现列表.xls')
        })
      },
      // 点击修改提现状态
      getEditorder(val) {
        this.withId = val.id
@@ -350,7 +316,6 @@
        this.queryParam = {
          pageNum: 1,
          pageSize: 10,
          agentId: undefined,
          state: undefined,
          userId: '',
          realName: '',
@@ -358,16 +323,6 @@
          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