<template>
    <div>
      <el-dialog title="门店收款搜索" :visible.sync="searchDialog">
        <el-form :model="searchForm">
          <el-form-item label="单据号:" label-width="120px">
            <div class="searchDiv">
              <el-input size="medium" v-model="searchForm.rechargeTypeName" placeholder="输入要查询的单据号" clearable></el-input>
            </div>
          </el-form-item>
          <el-form-item label="交易金额:" label-width="120px">
            <div class="searchDiv">
              <el-input size="medium" v-model="searchForm.rechargeTypeName" placeholder="输入要查询的银行单号" clearable></el-input>
            </div>
          </el-form-item>
          <el-form-item label="交易时间:" label-width="120px">
            <div class="searchDiv">
                <el-date-picker
                  v-model="searchForm.date"
                  type="daterange"
                  range-separator="至"
                  start-placeholder="开始日期"
                  end-placeholder="结束日期">
                </el-date-picker>
            </div>
          </el-form-item>
        </el-form>
        <span slot="footer" class="dialog-footer">
          <el-button size="mini" type="primary" plain @click="searchDialog = false">取 消</el-button>
          <el-button type="primary" size="mini" @click="search((searchDialog = false))">确 定</el-button>
        </span>
      </el-dialog>
    </div>
  </template>
  
  <script>
  export default {
    data() {
      return {
          options:[
            {
                label:'中国银行',
                value:0
            },
            {
                label:'招商银行',
                value:1
            }
          ],
          searchForm:{},
          searchDialog:false,
      }
    },
    methods: {
      search(){
          this.$emit('init',this.searchForm)
      },
      show(){
          this.searchDialog = true
      }
    },
  }
  </script>
  <style scoped>
  
  </style>