search.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 :span="this.$store.state.global.ismobile?12: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 :span="this.$store.state.global.ismobile?12:4">
  16. <el-input v-model="searchKey.product" placeholder="商品ID" clearable :style="{ width: '100%' }" @keyup.enter="searchForm()">
  17. <template #prepend>商品ID</template>
  18. </el-input>
  19. </el-col>
  20. <el-col :span="this.$store.state.global.ismobile?12:4">
  21. <el-input v-model="searchKey.name" placeholder="商品标题" clearable :style="{ width: '100%' }" @keyup.enter="searchForm()">
  22. <template #prepend>商品标题</template>
  23. </el-input>
  24. </el-col>
  25. <el-col :span="this.$store.state.global.ismobile?12:4">
  26. <el-date-picker v-model="searchKey.create" :style="{width: '100%'}" placeholder="请选择创建时间" start-placeholder="开始时间" end-placeholder="结束时间" type="daterange" range-separator="至" @change="searchForm" />
  27. </el-col>
  28. </el-row>
  29. </div>
  30. <div class="form-line"></div>
  31. <div class="form-right">
  32. <el-button type="primary" icon="el-icon-search" @click="searchForm">搜索</el-button>
  33. </div>
  34. </div>
  35. </el-form>
  36. </fieldset>
  37. </template>
  38. <script>
  39. export default {
  40. data(){
  41. return {
  42. searchKey:{
  43. ex_status:1
  44. }
  45. }
  46. },
  47. methods: {
  48. searchForm(){
  49. this.$emit("success",this.searchKey);
  50. }
  51. }
  52. }
  53. </script>