<template>
  <div class="page">
    <el-form :model="search" label-width="120px" size="small">
      <el-form-item label="文号：">
        <el-input style="width:80%" v-model="search.userChnName" placeholder="请输入用户名称" clearable></el-input>
      </el-form-item>
      <el-form-item label="题名：">
        <el-input style="width:80%" v-model="search.userChnName" placeholder="请输入用户名称" clearable></el-input>
      </el-form-item>
      <el-form-item label="利用人：">
        <el-input style="width:80%" v-model="search.userChnName" placeholder="请输入用户名称" clearable></el-input>
      </el-form-item>
      <el-form-item label="处室名称：">
        <el-input style="width:80%" v-model="search.userChnName" placeholder="请输入用户名称" clearable></el-input>
      </el-form-item>
      <el-form-item label="日期：">
        <el-date-picker v-model="search.userChnName" type="daterange" range-separator="至" start-placeholder="开始日期"
          end-placeholder="结束日期">
        </el-date-picker>
      </el-form-item>
      <el-form-item label-width="20px">
        <el-button size="mini" type="primary"  @click="searchClick(1)">搜索</el-button>
        <el-button size="mini" type="info"  @click="searchClick(1)">重置</el-button>
        <el-button size="mini" type="success"  @click="searchClick(1)">打印</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
  export default {
    props: {
      search: {
        type: Object,
        default: () => {},
      },
    },
    data() {
      return {};
    },
    methods: {
      searchClick(val) {
        this.$emit("searchClick", val);
      },
    },
  };

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

    .el-form {
      display: flex;
      flex-wrap: wrap;

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

      .btn {
        text-align: right;
      }
    }
  }

</style>
