index.vue 5.53 KB
<template>
  <div class="container">
    <div class="glsx-combi-form">
      <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData1" :label-position="labelPosition" :labelWidth="auto">
        <span slot="footer" class="footer-btns">
          <el-button :size="size" type="default" @click="handleSearch">搜索</el-button>
          <el-button :size="size" type="primary" @click="handleReset">重置</el-button>
        </span>
      </glsx-combi-form>
      <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData2" :label-position="labelPosition"> 
      </glsx-combi-form>
    </div>
    <el-button class="exportButton">导出</el-button>
    <div class="gl-table">
      <GLTable ref="applicationTable" :tableData="tableData" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
        <template
        slot="auth-button"
        slot-scope="scope"
        :data="scope.scope"
        >
        <auth-button :data="scope">
          <el-button @click="openAddPayment(2, scope)" type="text" :size="size" class="editButton">编辑</el-button>
          <el-button @click="handleDelete(scope)" type="text" :size="size" class="delButton">删除</el-button>
        </auth-button>
        </template>
        <!-- <template slot-scope="scope">
          <el-button @click="openAddPayment(2, scope.row)" type="text" :size="size" class="editButton">编辑</el-button>
          <el-button @click="handleDelete(scope.$index, scope.row)" type="text" :size="size" class="delButton">删除</el-button>
       </template> -->
      </GLTable>
    </div>
  </div>
</template>

<script>
import url from '@/assets/empty.png'
export default {
  name: 'Gathering',
  data() {
    return {
      url,
      labelPosition: 'right',
      searchForm: {
        runningNum: '',
        accountName: '',
        accountTime: '',
        accountType: '',
        applicationType: '',
        merchantName: '',
        orderNum: '',
        orderCustom: '',
        status: ''
      },
      searchFormData1: [
        {
          label: '流水号:',
          name: 'runningNum',
          type: 'input',
          maxlength: 20,
          labelWidth: 100,
        //   placeholder: '请输入名称进行搜索',
          isClear: true
        },
        {
          label: '收款账户:',
          name: 'accountName',
          type: 'input',
          maxlength: 20,
          labelWidth: 100,
        //   placeholder: '请输入账户名称进行搜索',
          isClear: true
        },
        {
          label: '收款时间:',
          name: 'accountTime',
          type: 'datePicker',
          labelWidth: 100,
        //   optionList: [],
          placeholder: '全部',
          isClear: true
        }
      ],
      searchFormData2: [
        {
          label: '收款类型:',
          name: 'accountType',
          type: 'select',
          labelWidth: 100,
          optionList: [],
          placeholder: '全部',
          isClear: true
        },
         {
          label: '业务应用:',
          name: 'applicationType',
          type: 'select',
          labelWidth: 100,
          optionList: [],
          placeholder: '全部',
          isClear: true
        },
         {
          label: '滴加商户名:',
          name: 'merchantName',
          type: 'input',
          labelWidth: 100,
          isClear: true
        },
         {
          label: '订单号:',
          name: 'orderNum',
          type: 'input',
          labelWidth: 100,
          isClear: true
        },
         {
          label: '订单用户:',
          name: 'orderCustom',
          type: 'input',
          labelWidth: 100,
          placeholder: '请输入用户名/手机号进行搜索',
          isClear: true
        },
         {
          label: '状态:',
          name: 'status',
          type: 'select',
          optionList: [],
          labelWidth: 100,
          placeholder: '全部',
          isClear: true
        }
      ],
      tableParams: {
        listName: 'list',
        tableOption: false,
        tableColumns: [
          {
            label: '流水号',
            prop: 'runningNum',
            line: 2
          },
          {
            label: '收款金额',
            prop: 'account',
            line: 2
          },
          {
            label: '收款账户',
            prop: 'accontName',
            line: 2
          },
          {
            label: '收款时间',
            prop: 'accountTime',
            line: 2
          },
          {
            label: '收款类型',
            prop: 'accountType',
            line: 2
          },
          {
            label: '状态',
            prop: 'status',
            line: 2
          },
          {
            label: '业务应用',
            prop: 'applicationType',
            line: 2
          },
          {
            label: '滴加商户名',
            prop: 'merchantName',
            line: 2
          },
          {
            label: '订单号',
            prop: 'orderNum',
            line: 2
          },
          {
            label: '订单用户',
            prop: 'orderCustom',
            line: 2
          },
          {
            label: '订单用户手机号',
            prop: 'orderCustomTel',
            line: 2
          }
        ]
      },
      pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }
    }
  },
  mounted() {
    
  },
  methods: {
    
  }
}
</script>

<style lang="scss" scoped>

</style>