probationalGoods-search.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!-- 搜索表单 -->
  2. <template>
  3. <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
  4. </template>
  5. <script>
  6. export default {
  7. data() {
  8. return {
  9. statusList: [
  10. { name: '待处理', code: 0 },
  11. { name: '处理中', code: 1 },
  12. { name: '已处理', code: 2 }
  13. ]
  14. };
  15. },
  16. computed: {
  17. seekList() {
  18. return [
  19. {
  20. label: '编码:',
  21. value: 'code',
  22. type: 'input',
  23. placeholder: '请输入'
  24. },
  25. {
  26. label: '样品编码:',
  27. value: 'sampleCode',
  28. type: 'input',
  29. placeholder: '请输入'
  30. },
  31. {
  32. label: '物品编码:',
  33. value: 'categoryCode',
  34. type: 'input',
  35. placeholder: '请输入'
  36. },
  37. {
  38. label: '物品名称:',
  39. value: 'categoryName',
  40. type: 'input',
  41. placeholder: '请输入'
  42. },
  43. {
  44. label: '批次号:',
  45. value: 'batchNo',
  46. type: 'input',
  47. placeholder: '请输入'
  48. },
  49. {
  50. label: '产品规格:',
  51. value: 'specification',
  52. type: 'input',
  53. placeholder: '请输入'
  54. }
  55. ];
  56. }
  57. },
  58. watch: {},
  59. created() {},
  60. methods: {
  61. search(e) {
  62. this.$emit('search', { ...e });
  63. }
  64. }
  65. };
  66. </script>
  67. <style lang="scss" scoped>
  68. </style>