priceSearch.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!-- 搜索表单 -->
  2. <template>
  3. <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
  4. </template>
  5. <script>
  6. export default {
  7. data() {
  8. return {};
  9. },
  10. computed: {
  11. // 表格列配置
  12. seekList() {
  13. return [
  14. {
  15. label: '关键字:',
  16. value: 'searchName',
  17. type: 'input',
  18. placeholder: '商品编码/商品名称/产品名称'
  19. },
  20. // {
  21. // label: '价格类型:',
  22. // value: 'categoryLevelId',
  23. // type: 'DictSelection',
  24. // placeholder: '',
  25. // dictName: "商品价格类型"
  26. // },
  27. {
  28. label: '商品编码:',
  29. value: 'goodsCode',
  30. type: 'input',
  31. placeholder: '请输入'
  32. },
  33. {
  34. label: '商品名称:',
  35. value: 'goodsName',
  36. width: 380,
  37. type: 'input',
  38. placeholder: '请输入'
  39. },
  40. // {
  41. // label: '商品分类:',
  42. // value: 'workCode',
  43. // width: 380,
  44. // type: 'input',
  45. // placeholder: ''
  46. // },
  47. // {
  48. // label: '产品名称:',
  49. // value: 'workCode',
  50. // width: 380,
  51. // type: 'input',
  52. // placeholder: ''
  53. // },
  54. // {
  55. // label: '状态:',
  56. // value: 'workCode',
  57. // width: 380,
  58. // type: 'input',
  59. // placeholder: ''
  60. // },
  61. // {
  62. // label: '创建时间:',
  63. // value: 'workCode',
  64. // width: 380,
  65. // type: 'input',
  66. // placeholder: ''
  67. // },
  68. ];
  69. }
  70. },
  71. methods: {
  72. /* 搜索 */
  73. search(e) {
  74. this.$emit('search', {
  75. ...e
  76. });
  77. }
  78. }
  79. };
  80. </script>