<!-- 搜索表单 -->
<template>
  <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
</template>

<script>
  import { getList } from '@/api/inspectionStandard';
  export default {
    data() {
      return {
        qualityStandardList: []
      };
    },
    computed: {
      seekList() {
        return [
          {
            label: '请托单号:',
            value: 'code',
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '质检工单编码:',
            value: 'qualityWorkOrderCode',
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '类型:',
            value: 'qualityType',
            type: 'DictSelection',
            dictName: '质检计划类型',
            placeholder: '请输入'
          },
          {
            label: '批次号:',
            value: 'batchNo',
            type: 'input',
            placeholder: '请输入'
          },
          {
            label: '编号:',
            value: 'productCode',
            type: 'input',
            placeholder: '请输入'
          },

          {
            label: '状态:',
            value: 'standardCode',
            type: 'input',
            placeholder: '请输入'
          }
        ];
      }
    },
    created() {
      getList({
        pageNum: 1,
        size: -1
      }).then((res) => {
        this.qualityStandardList = res.list;
      });
    },
    methods: {
      /* 搜索 */
      search(e) {
        this.$emit('search', { ...e });
      }
    }
  };
</script>
