search.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <fieldset>
  3. <legend>
  4. <el-tag type="info">条件筛选</el-tag>
  5. </legend>
  6. <el-form class="lv-form-inline" ref="searchForm" :model="searchKey" label-position="right" label-width="100px">
  7. <div class="search-form">
  8. <div class="form-left">
  9. <el-row :gutter="10">
  10. <el-col :xs="12" :sm="12" :md="12" :lg="6" :xl="4">
  11. <el-input v-model="searchKey.orderid" placeholder="会员卡号" clearable :style="{ width: '100%' }" @keyup.enter="searchForm()">
  12. <template #prepend>会员卡号</template>
  13. </el-input>
  14. </el-col>
  15. <el-col :xs="12" :sm="6" :md="6" :lg="6" :xl="4">
  16. <el-date-picker v-model="searchKey.create" :style="{width: '100%'}" placeholder="请选择创建时间" start-placeholder="开始时间" end-placeholder="结束时间" type="daterange" range-separator="至" @change="searchForm" />
  17. </el-col>
  18. </el-row>
  19. </div>
  20. <div class="form-line"></div>
  21. <div class="form-right">
  22. <el-button type="primary" icon="el-icon-search" @click="searchForm">搜索</el-button>
  23. </div>
  24. </div>
  25. </el-form>
  26. </fieldset>
  27. </template>
  28. <script>
  29. export default {
  30. data(){
  31. return {
  32. searchKey:{}
  33. }
  34. },
  35. methods: {
  36. searchForm(){
  37. this.$emit("success",this.searchKey);
  38. }
  39. }
  40. }
  41. </script>