contactSearch.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!-- 搜索表单 -->
  2. <template>
  3. <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
  4. </template>
  5. <script>
  6. import { reviewStatusSelect } from '@/enum/dict';
  7. export default {
  8. data() {
  9. return {};
  10. },
  11. computed: {
  12. // 表格列配置
  13. seekList() {
  14. return [
  15. {
  16. label: '关键字:',
  17. value: 'searchName',
  18. type: 'input',
  19. placeholder: '编码/代号/客户名称/联系人电话'
  20. },
  21. {
  22. label: '编码/代号:',
  23. value: 'codeOrSerialNo',
  24. type: 'input',
  25. placeholder: '请输入'
  26. },
  27. {
  28. label: '客户名称:',
  29. value: 'name',
  30. type: 'input',
  31. placeholder: '请输入',
  32. },
  33. // {
  34. // label: '电话:',
  35. // value: 'phone',
  36. // width: 380,
  37. // type: 'input',
  38. // placeholder: '请输入'
  39. // },
  40. // {
  41. // label: '注册地址:',
  42. // value: 'addressName',
  43. // width: 380,
  44. // type: 'input',
  45. // placeholder: '请输入'
  46. // },
  47. // {
  48. // label: '联系地址:',
  49. // value: 'otherAddressName',
  50. // width: 380,
  51. // type: 'input',
  52. // placeholder: '请输入'
  53. // },
  54. // {
  55. // label: '联系人:',
  56. // value: 'linkName',
  57. // width: 380,
  58. // type: 'input',
  59. // placeholder: '请输入'
  60. // },
  61. // {
  62. // label: '状态',
  63. // value: 'targetTime',
  64. // width: 380,
  65. // type: 'select',
  66. // placeholder: '请选择状态',
  67. // planList:reviewStatusSelect
  68. // },
  69. // {
  70. // label: '部门:',
  71. // value: 'assessmentObject',
  72. // width: 380,
  73. // type: 'input',
  74. // placeholder: '请输入',
  75. // },
  76. // {
  77. // label: '创建人:',
  78. // value: 'createUsername',
  79. // width: 380,
  80. // type: 'input',
  81. // placeholder: '请输入姓名'
  82. // },
  83. {
  84. label: '创建时间:',
  85. value: 'createTime',
  86. type: 'date',
  87. dateType: 'datetimerange',
  88. placeholder: '',
  89. width: 380,
  90. valueAr: ['createTimeStart', 'createTimeEnd']
  91. },
  92. ];
  93. }
  94. },
  95. methods: {
  96. /* 搜索 */
  97. search(e) {
  98. this.$emit('search', {
  99. ...e
  100. });
  101. }
  102. }
  103. };
  104. </script>