search.vue 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.order_sn" placeholder="订单编号" clearable :style="{ width: '100%' }" @keyup.enter="searchForm()">
  12. <template #prepend>订单编号</template>
  13. </el-input>
  14. </el-col>
  15. <el-col :xs="12" :sm="12" :md="12" :lg="6" :xl="4">
  16. <el-input v-model="searchKey.out_order_no" placeholder="系统单号" clearable :style="{ width: '100%' }" @keyup.enter="searchForm()">
  17. <template #prepend>系统单号</template>
  18. </el-input>
  19. </el-col>
  20. <el-col :xs="12" :sm="12" :md="12" :lg="6" :xl="4">
  21. <el-select v-model="searchKey.status" clearable placeholder="请选择状态" @change="searchForm" :style="{width: '100%'}" class="diy-select">
  22. <el-option value="1" label="待支付"></el-option>
  23. <el-option value="2" label="待使用"></el-option>
  24. <el-option value="3" label="已完成"></el-option>
  25. <el-option value="4" label="已退款"></el-option>
  26. <el-option value="5" label="退款中"></el-option>
  27. <el-option value="6" label="已关闭"></el-option>
  28. <template #prefix>状态</template>
  29. </el-select>
  30. </el-col>
  31. <el-col :xs="12" :sm="6" :md="6" :lg="6" :xl="4">
  32. <el-date-picker v-model="searchKey.create" :style="{width: '100%'}" placeholder="请选择创建时间" start-placeholder="开始时间" end-placeholder="结束时间" type="daterange" range-separator="至" @change="searchForm" />
  33. </el-col>
  34. </el-row>
  35. </div>
  36. <div class="form-line"></div>
  37. <div class="form-right">
  38. <el-button type="primary" icon="el-icon-search" @click="searchForm">搜索</el-button>
  39. </div>
  40. </div>
  41. </el-form>
  42. </fieldset>
  43. </template>
  44. <script>
  45. export default {
  46. data(){
  47. return {
  48. searchKey:{}
  49. }
  50. },
  51. methods: {
  52. searchForm(){
  53. this.$emit("success",this.searchKey);
  54. }
  55. }
  56. }
  57. </script>