<template>
  <div class="page">
    <el-form :model="search" ref="headerForm" label-width="100px" size="mini">
      <el-row>
        <el-col :span="8">
          <el-form-item label="姓名：">
            <el-input clearable v-model="search.name" placeholder="请输入内容"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="手机号：">
            <el-input clearable v-model="search.phone" placeholder="请输入内容"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="状态：">
            <el-select clearable v-model="search.status" style="width:100%">
              <el-option label="提醒中" value="1"></el-option>
              <el-option label="未提醒" value="0"></el-option>
              <el-option label="已过期" value="-1"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row>
        <el-col :span="12">
          <el-form-item label="预约时间：">
            <el-date-picker value-format="yyyy-MM-dd hh:mm:ss" style="width:400px" v-model="search.time"
              :unlink-panels="true" type="datetimerange" range-separator="至" start-placeholder="开始日期"
              end-placeholder="结束日期">
            </el-date-picker>
          </el-form-item>

        </el-col>
        <el-col :span="4">
          <el-button type="primary" size="mini" @click="searchClick"><i class="iconfont icon-sousuo"></i>搜索</el-button>
        </el-col>
      </el-row>

    </el-form>
  </div>
</template>

<script>
  export default {
    data() {
      return {};
    },
    props: {
      search: {
        type: Object,
        default: () => {},
      },
    },
    methods: {
      searchClick() {
        this.$emit("searchClick");
      },
    },
  };

</script>

<style lang="scss" scoped>
  .page {
    // width: 100%;
    background-color: #fff;
    padding: 10px 10px 0 10px;
    box-sizing: border-box;

    .el-form {


      .el-form-item {
        margin-bottom: 10px;
      }


    }
  }

</style>
