arrivalSign-search.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!-- 搜索表单 -->
  2. <template>
  3. <ele-card :body-style="{ paddingBottom: '8px' }">
  4. <ProSearch
  5. :items="formItems"
  6. ref="searchRef"
  7. @search="search"
  8. :initKeys="initKeys"
  9. ></ProSearch>
  10. </ele-card>
  11. </template>
  12. <script setup>
  13. import { reactive, ref, defineEmits } from 'vue';
  14. import ProSearch from '@/components/CommonPage/ProSearch2.vue';
  15. let { proxy } = getCurrentInstance();
  16. const emit = defineEmits(['search']);
  17. const formItems = reactive([
  18. { type: 'input', label: '签收者', prop: 'contactsName' },
  19. { type: 'input', label: '物流单号', prop: 'phoneNum' },
  20. { type: 'input', label: '物流CODE', prop: 'code' },
  21. {
  22. type: 'date',
  23. label: '签收时间(开始时间)',
  24. prop: 'beginTime',
  25. props: {
  26. format: 'YYYY-MM-DD',
  27. valueFormat: 'YYYY-MM-DD'
  28. }
  29. },
  30. {
  31. type: 'date',
  32. label: '签收时间(结束时间)',
  33. prop: 'endTime',
  34. props: {
  35. format: 'YYYY-MM-DD',
  36. valueFormat: 'YYYY-MM-DD'
  37. }
  38. }
  39. ]);
  40. const initKeys = reactive({
  41. schoolName: '',
  42. provinceId: '',
  43. cityId: '',
  44. schoolLevel: '',
  45. departmentName: '',
  46. shcoolTag: ''
  47. });
  48. const searchRef = ref(null);
  49. /** 搜索 */
  50. const search = (data) => {
  51. emit('search', { ...data });
  52. };
  53. </script>