searchTable.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <!-- 搜索表单 -->
  2. <template>
  3. <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
  4. </template>
  5. <script>
  6. import { reviewStatusSelect, saleOrderStatusEnum } from '@/enum/dict';
  7. export default {
  8. props: {
  9. needProduces: {
  10. type: String,
  11. default: ''
  12. }
  13. },
  14. data() {
  15. return {};
  16. },
  17. computed: {
  18. // 表格列配置
  19. seekList() {
  20. return [
  21. {
  22. label: '关键字:',
  23. value: 'searchName',
  24. type: 'input',
  25. placeholder: '订单编码/客户名称/合同编号/产品名称'
  26. },
  27. {
  28. label: '订单编码:',
  29. value: 'orderNo',
  30. type: 'input',
  31. placeholder: ''
  32. },
  33. {
  34. label: '客户名称:',
  35. value: 'partaName',
  36. type: 'input',
  37. placeholder: ''
  38. },
  39. {
  40. label: '销售类型',
  41. value: 'saleType',
  42. width: 380,
  43. type: 'DictSelection',
  44. dictName: '销售类型'
  45. },
  46. {
  47. label: '库存状态',
  48. value: 'hasStock',
  49. width: 380,
  50. type: 'select',
  51. planList: [
  52. {
  53. label: '有库存',
  54. value: 1
  55. },
  56. { label: '无库存', value: 0 }
  57. ]
  58. },
  59. {
  60. label: '合同编号:',
  61. value: 'contractNumber',
  62. width: 380,
  63. type: 'input',
  64. placeholder: ''
  65. },
  66. {
  67. label: '项目名称:',
  68. value: 'projectName',
  69. width: 380,
  70. type: 'input',
  71. placeholder: ''
  72. },
  73. {
  74. label: '产品名称:',
  75. value: 'productName',
  76. width: 380,
  77. type: 'input',
  78. placeholder: ''
  79. },
  80. {
  81. label: '编码',
  82. value: 'productCode',
  83. width: 380,
  84. type: 'input',
  85. placeholder: '请输入'
  86. },
  87. {
  88. label: '预订单编号:',
  89. value: 'preOrderNo',
  90. labelWidth:130,
  91. width: 372,
  92. type: 'input',
  93. placeholder: '请输入'
  94. },
  95. {
  96. label: '生产编号',
  97. value: 'productionCodes',
  98. width: 380,
  99. type: 'input',
  100. placeholder: ''
  101. },
  102. // {
  103. // label: '项目名称:',
  104. // value: 'productCode',
  105. // width: 380,
  106. // type: 'input',
  107. // width: 380,
  108. // placeholder: ''
  109. // },
  110. {
  111. label: '订单类型',
  112. value: 'needProduce',
  113. width: 380,
  114. type: 'select',
  115. planList: this.needProduces ? [
  116. {
  117. label: '生产性订单',
  118. value: '1'
  119. },
  120. { label: '无客户生产性订单', value: '2' },
  121. { label: '库存式订单', value: '0' },
  122. ] : [
  123. {
  124. label: '生产性订单',
  125. value: '1'
  126. },
  127. { label: '无客户生产性订单', value: '2' },
  128. { label: '库存式订单', value: '0' },
  129. { label: '不定向订单', value: '4' }
  130. ],
  131. width: 380,
  132. placeholder: ''
  133. },
  134. {
  135. label: '审核状态',
  136. value: 'orderStatus',
  137. type: 'select',
  138. planList: reviewStatusSelect,
  139. width: 380,
  140. placeholder: ''
  141. },
  142. {
  143. label: '订单进度',
  144. value: 'progress',
  145. type: 'select',
  146. planList: saleOrderStatusEnum,
  147. width: 380,
  148. placeholder: ''
  149. },
  150. {
  151. label: '创建人:',
  152. value: 'createUserName',
  153. width: 380,
  154. type: 'input',
  155. placeholder: '请输入'
  156. },
  157. {
  158. label: '创建时间:',
  159. value: 'createTime',
  160. type: 'date',
  161. dateType: 'datetimerange',
  162. placeholder: '',
  163. width: 380,
  164. valueAr: ['createTimeStart', 'createTimeEnd']
  165. }
  166. ];
  167. }
  168. },
  169. methods: {
  170. /* 搜索 */
  171. search(e) {
  172. this.$emit('search', {
  173. ...e
  174. });
  175. }
  176. }
  177. };
  178. </script>