search.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!-- 搜索表单 -->
  2. <template>
  3. <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
  4. </template>
  5. <script>
  6. import { getList } from '@/api/inspectionStandard';
  7. export default {
  8. data() {
  9. return {
  10. qualityStandardList: []
  11. };
  12. },
  13. computed: {
  14. seekList() {
  15. return [
  16. {
  17. label: '请托单号:',
  18. value: 'code',
  19. type: 'input',
  20. placeholder: '请输入'
  21. },
  22. {
  23. label: '质检工单编码:',
  24. value: 'qualityWorkOrderCode',
  25. type: 'input',
  26. placeholder: '请输入'
  27. },
  28. {
  29. label: '类型:',
  30. value: 'qualityType',
  31. type: 'DictSelection',
  32. dictName: '质检计划类型',
  33. placeholder: '请输入'
  34. },
  35. {
  36. label: '批次号:',
  37. value: 'batchNo',
  38. type: 'input',
  39. placeholder: '请输入'
  40. },
  41. {
  42. label: '编号:',
  43. value: 'productCode',
  44. type: 'input',
  45. placeholder: '请输入'
  46. },
  47. {
  48. label: '状态:',
  49. value: 'standardCode',
  50. type: 'input',
  51. placeholder: '请输入'
  52. }
  53. ];
  54. }
  55. },
  56. created() {
  57. getList({
  58. pageNum: 1,
  59. size: -1
  60. }).then((res) => {
  61. this.qualityStandardList = res.list;
  62. });
  63. },
  64. methods: {
  65. /* 搜索 */
  66. search(e) {
  67. this.$emit('search', { ...e });
  68. }
  69. }
  70. };
  71. </script>