<!--
  @description: 采购计划处理记录
  @Modifier: haoFx
  @routerPath:
  @date: 2021-05-25-12:02
-->
<template>
  <div class="sum_Wrap">
    <el-table
      ref="smallTable"
      v-loading="loading"
      :data="tableData"
    >
      <el-table-column type="index" label="序号" width="60px" align="center" />
      <el-table-column
        header-align="center"
        prop="applicationUserName"
        label="计划员姓名"
        width="170"
      />
      <el-table-column
        header-align="center"
        prop="packSubmitNum"
        label="采购方式提交审批数"
        width="170"
        align="right"
      />
      <el-table-column
        header-align="center"
        prop="packNotPassNum"
        label="采购方式被驳回次数"
        width="170"
        align="right"
      />
      <el-table-column
        header-align="center"
        prop="packPassNum"
        label="采购方式审批完成数"
        min-width="170"
        align="right"
      />
      <el-table-column
        header-align="center"
        prop="packNotPassNum"
        label="采购方式驳回占比"
        width="170"
        align="right"
      />
      <el-table-column
        header-align="center"
        prop="selfSubmitNum"
        label="集采转自采提交审批数"
        min-width="170"
        align="right"
      />
      <el-table-column
        header-align="center"
        prop="selfNotPassNum"
        label="集采转自采被驳回审批数"
        min-width="170"
        align="right"
      />
      <el-table-column
        header-align="center"
        prop="selfPassNum"
        label="集采转自采审批完成数"
        min-width="170"
        align="right"
      />
      <el-table-column
        header-align="center"
        prop="packNotPassNum"
        label="集采转自采驳回占比"
        width="170"
        align="right"
      />
      <el-table-column
        header-align="center"
        prop="returnSubmitNum"
        label="退回计划提交审批数"
        min-width="170"
        align="right"
      />
      <el-table-column
        header-align="center"
        prop="returnNotPassNum"
        label="退回计划被驳回审批数"
        min-width="170"
        align="right"
      />
      <el-table-column
        header-align="center"
        prop="returnPassNum"
        label="退回计划审批完成数"
        min-width="170"
        align="right"
      />
      <el-table-column
        header-align="center"
        prop="packNotPassNum"
        label="退回计划驳回占比"
        width="170"
        align="right"
      />
    </el-table>
  </div>
</template>

<script>
/* 公共方法*/
import { filterDictText, numFilter, moneyFormat } from '@/assets/js/utils' // 字典方法
export default {
  name: 'ProcurementPlanProcessTableComp',
  props: {
    tableData: {
      type: Array,
      default: () => []
    },
    loading: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      /* --------------字典----------------*/
      tender_methodList: [], // 采购方式
      collectionTypeList: [], // 是否集采
      purchaseUnitList: [], // 计量单位
      taxRateList: [], // 税率
      dictionaryType: [
        'tender_method',
        'collectionType',
        'purchaseUnit',
        'taxRate'
      ] // 字典请求参数
    }
  },
  created() {
    // this.getGroupType() // 字典请求初始化
  },
  methods: {
    filterDictText, // 字典
    numFilter, // 金额
    moneyFormat // 金额千分位
    // // 字典请求
    // getGroupType() {
    //   this.$store.dispatch('getGroupType', this.dictionaryType).then((data) => {
    //     // 遍历key存储相应的数据
    //     for (const key in data.bidTypeData) {
    //       /* 是否有数据*/
    //       if (data.bidTypeData[key]) {
    //         this[key] = data.bidTypeData[key]
    //       }
    //     }
    //   })
    // }
  }
}
</script>

<style lang="less">
</style>
