<template>
  <page-layout>
    <div class="page-header-index-wide">
  <a-card :bordered="false">
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
        <a-row :gutter="24">
          <a-col :md="6" :sm="8">
            <a-form-item label="姓名">
              <a-input placeholder="请输入姓名" v-model="queryParam.userName"></a-input>
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="8">
            <a-form-item label="身份证号">
              <a-input placeholder="请输入身份证号" v-model="queryParam.idcardNumber"></a-input>
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="8" >
            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
            </span>
          </a-col>

        </a-row>
      </a-form>
    </div>
    <!-- 查询区域-END -->
    
    <!-- 操作按钮区域 -->
    <div class="table-operator">

    </div>

    <!-- table区域-begin -->
    <div>

      <a-table
        ref="table"
        size="middle"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        @change="handleTableChange">

      </a-table>
    </div>
  </a-card>
    </div>
  </page-layout>
</template>

<script>

  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import PageLayout from '@/components/page/PageLayout'
  import { httpAction, getAction, putAction } from '@/api/manage'

  export default {
    name: "HlgPaymentDetailFujianList",
    mixins:[JeecgListMixin],
    components: {
      PageLayout
    },
    data () {
      return {
        description: 'hlg_payment_detail_fujian管理页面',
        // 表头
        columns: [
          {
            title:'账户姓名',
            align:"left",
            dataIndex: 'userName'
          },
          {
            title:'身份证号',
            align:"left",
            dataIndex: 'idcardNumber'
          },
          {
            title:'银行卡号',
            align:"left",
            dataIndex: 'cardNumber'
          },
          {
            title:'开户行',
            align:"left",
            dataIndex: 'eacbnk'
          },
          {
            title:'实付金额',
            align:"left",
            dataIndex: 'payment'
          },

          {
            title:'付款状态',
            align:"left",
            dataIndex: 'payment',
            customRender: function(text, record) {
              return '付款成功'
            }
          }
        ],
        url: {
          list: "/hlgpaymentfujian/hlgPaymentDetailFujian/list",
          delete: "/hlgpaymentfujian/hlgPaymentDetailFujian/delete",
          deleteBatch: "/hlgpaymentfujian/hlgPaymentDetailFujian/deleteBatch",
          exportXlsUrl: "/hlgpaymentfujian/hlgPaymentDetailFujian/exportXls",
          importExcelUrl: "hlgpaymentfujian/hlgPaymentDetailFujian/importExcel",
        },
        dictOptions:{
        } 
      }
    },
    computed: {
      importExcelUrl: function(){
        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
      }
    },
    methods: {
      initDictConfig(){
      },
      loadData(arg) {
        if (!this.url.list) {
          this.$message.error('请设置url.list属性!')
          return
        }
        //加载数据 若传入参数1则加载第一页的内容
        if (arg === 1) {
          this.ipagination.current = 1;
        }
        this.paymentId = this.$route.query.paymentId;
        var params = this.getQueryParams()//查询条件
        params.paymentId = this.paymentId;
        this.loading = true
        getAction(this.url.list, params).then((res) => {
          if (res.success) {
            this.dataSource = res.result.records
            this.ipagination.total = res.result.total;
          }
          if (res.code === 510) {
            this.$message.warning(res.message)
          }
          this.loading = false
        })
      },
       
    }
  }
</script>
<style scoped>
  @import '~@assets/less/common.less'
</style>