searchTable.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <!-- 搜索表单 -->
  2. <template>
  3. <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
  4. </template>
  5. <script>
  6. import { receiptType ,StateType} 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: 'docNo',
  24. type: 'input',
  25. placeholder: '请输入'
  26. },
  27. {
  28. label: '销售订单编码:',
  29. value: 'orderNo',
  30. type: 'input',
  31. placeholder: '请输入'
  32. },
  33. {
  34. label: '产品名称',
  35. value: 'productNames',
  36. width: 380,
  37. type: 'input',
  38. placeholder: '请输入'
  39. },
  40. {
  41. label: '编号',
  42. value: 'productCodes',
  43. width: 380,
  44. type: 'input',
  45. placeholder: '请输入'
  46. },
  47. {
  48. label: '生产编号',
  49. value: 'productionCodes',
  50. width: 380,
  51. type: 'input',
  52. placeholder: ''
  53. },
  54. {
  55. label: '批次号',
  56. value: 'batchNo',
  57. width: 380,
  58. type: 'input',
  59. placeholder: '请输入'
  60. },
  61. {
  62. label: '项目名称',
  63. value: 'projectName',
  64. width: 380,
  65. type: 'input',
  66. placeholder: '请输入'
  67. },
  68. {
  69. label: '客户名称:',
  70. value: 'contactName',
  71. width: 380,
  72. type: 'input',
  73. placeholder: '请输入'
  74. },
  75. {
  76. label: '是否回执:',
  77. value: 'replied',
  78. width: 380,
  79. type: 'select',
  80. planList:receiptType,
  81. placeholder: '请选择'
  82. },
  83. {
  84. label: '状态:',
  85. value: 'reviewStatus',
  86. width: 380,
  87. type: 'select',
  88. planList: StateType,
  89. placeholder: '请选择'
  90. },
  91. {
  92. label: '创建人:',
  93. value: 'createUserName',
  94. width: 380,
  95. type: 'input',
  96. placeholder: '请输入'
  97. },
  98. {
  99. label: '创建时间:',
  100. value: 'createTime',
  101. type: 'date',
  102. dateType: 'datetimerange',
  103. placeholder: '',
  104. width: 380,
  105. valueAr: ['createTimeStart', 'createTimeEnd']
  106. }
  107. ];
  108. }
  109. },
  110. methods: {
  111. /* 搜索 */
  112. search(e) {
  113. this.$emit('search', {
  114. ...e
  115. });
  116. }
  117. }
  118. };
  119. </script>