searchTable.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <!-- 搜索表单 -->
  2. <template>
  3. <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
  4. </template>
  5. <script>
  6. import { reviewStatusSelect, saleOrderProgressStatusEnum } 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: 'orderNo',
  24. type: 'input',
  25. placeholder: ''
  26. },
  27. {
  28. label: '客户名称:',
  29. value: 'partaName',
  30. type: 'input',
  31. placeholder: ''
  32. },
  33. {
  34. label: '销售类型',
  35. value: 'saleType',
  36. width: 380,
  37. type: 'DictSelection',
  38. dictName: '销售类型'
  39. },
  40. {
  41. label: '库存状态',
  42. value: 'hasStock',
  43. width: 380,
  44. type: 'select',
  45. planList: [
  46. {
  47. label: '有库存',
  48. value: 1
  49. },
  50. { label: '无库存', value: 0 }
  51. ]
  52. },
  53. {
  54. label: '合同编号:',
  55. value: 'contractNumber',
  56. width: 380,
  57. type: 'input',
  58. placeholder: ''
  59. },
  60. {
  61. label: '项目名称:',
  62. value: 'projectName',
  63. width: 380,
  64. type: 'input',
  65. placeholder: ''
  66. },
  67. {
  68. label: '产品名称:',
  69. value: 'productName',
  70. width: 380,
  71. type: 'input',
  72. placeholder: ''
  73. },
  74. {
  75. label: '编码',
  76. value: 'productCode',
  77. width: 380,
  78. type: 'input',
  79. placeholder: '请输入'
  80. },
  81. {
  82. label: '生产编号',
  83. value: 'productionCodes',
  84. width: 380,
  85. type: 'input',
  86. placeholder: ''
  87. },
  88. // {
  89. // label: '项目名称:',
  90. // value: 'productCode',
  91. // width: 380,
  92. // type: 'input',
  93. // width: 380,
  94. // placeholder: ''
  95. // },
  96. {
  97. label: '订单类型',
  98. value: 'needProduce',
  99. width: 380,
  100. type: 'select',
  101. planList: [
  102. {
  103. label: '生产性订单',
  104. value: '1'
  105. },
  106. { label: '无客户生产性订单', value: '2' },
  107. { label: '库存式订单', value: '0' },
  108. { label: '不定向订单', value: '4' }
  109. ],
  110. width: 380,
  111. placeholder: ''
  112. },
  113. {
  114. label: '审核状态',
  115. value: 'orderStatus',
  116. type: 'select',
  117. planList: reviewStatusSelect,
  118. width: 380,
  119. placeholder: ''
  120. },
  121. {
  122. label: '订单进度',
  123. value: 'progress',
  124. type: 'select',
  125. planList: saleOrderProgressStatusEnum,
  126. width: 380,
  127. placeholder: ''
  128. },
  129. {
  130. label: '创建人:',
  131. value: 'createUserName',
  132. width: 380,
  133. type: 'input',
  134. placeholder: '请输入'
  135. },
  136. {
  137. label: '创建时间:',
  138. value: 'createTime',
  139. type: 'date',
  140. dateType: 'datetimerange',
  141. placeholder: '',
  142. width: 380,
  143. valueAr: ['createTimeStart', 'createTimeEnd']
  144. }
  145. ];
  146. }
  147. },
  148. methods: {
  149. /* 搜索 */
  150. search(e) {
  151. this.$emit('search', {
  152. ...e
  153. });
  154. }
  155. }
  156. };
  157. </script>