searchQuotation.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!-- 搜索表单 -->
  2. <template>
  3. <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
  4. </template>
  5. <script>
  6. import { reviewStatusSelect, requirementSourceType } 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: 'planCode',
  24. // type: 'input',
  25. // placeholder: '请输入'
  26. // },
  27. // {
  28. // label: '计划进度:',
  29. // value: 'progress',
  30. // type: 'input',
  31. // placeholder: '请输入',
  32. // },
  33. // {
  34. // label: '采购计划单名称:',
  35. // value: 'planName',
  36. // labelWidth:120,
  37. // width: 340,
  38. // type: 'input',
  39. // placeholder: '请输入',
  40. // },
  41. {
  42. label: '采购需求单名称:',
  43. value: 'requirementName',
  44. labelWidth: 150,
  45. // width: 240,
  46. type: 'input',
  47. placeholder: '请输入'
  48. },
  49. {
  50. label: '产品名称',
  51. value: 'productName',
  52. // width: 240,
  53. type: 'input',
  54. placeholder: '请输入'
  55. },
  56. {
  57. label: '需求类型:',
  58. value: 'sourceType',
  59. width: 380,
  60. type: 'select',
  61. placeholder: '请选择需求类型',
  62. planList: requirementSourceType
  63. },
  64. {
  65. label: '需求部门:',
  66. value: 'requireDeptName',
  67. width: 380,
  68. type: 'input',
  69. placeholder: '请输入'
  70. },
  71. {
  72. label: '需求人:',
  73. value: 'requireUserName',
  74. width: 380,
  75. type: 'input',
  76. placeholder: '请输入'
  77. },
  78. // {
  79. // label: '负责人:',
  80. // value: 'responsibleName',
  81. // width: 380,
  82. // type: 'input',
  83. // placeholder: '请输入'
  84. // },
  85. {
  86. label: '状态:',
  87. value: 'status',
  88. width: 380,
  89. type: 'select',
  90. placeholder: '请选择状态',
  91. planList: reviewStatusSelect
  92. },
  93. {
  94. label: '是否已生成过订单:',
  95. value: 'isGeneratedOrder',
  96. width: 330,
  97. labelWidth: 110,
  98. type: 'select',
  99. placeholder: '请选择是否已生成过订单',
  100. planList: [
  101. {
  102. label: '是',
  103. value: 1
  104. },
  105. {
  106. label: '否',
  107. value: 0
  108. }
  109. ]
  110. },
  111. {
  112. label: '创建时间:',
  113. value: 'createTime',
  114. type: 'date',
  115. dateType: 'datetimerange',
  116. placeholder: '',
  117. width: 380,
  118. valueAr: ['createTimeStart', 'createTimeEnd']
  119. }
  120. ];
  121. }
  122. },
  123. methods: {
  124. /* 搜索 */
  125. search(e) {
  126. this.$emit('search', {
  127. ...e
  128. });
  129. }
  130. }
  131. };
  132. </script>