
<!--
  @description:废标表格
  @Modifier:
  @routerPath:procurementDocumentsPurchase/evaluationResults/checkTheScrapBid
  @date:2020/10/10-11:48
-->
<template>
  <div>
    <!-- 专家列表 -->
    <el-table :data="expertData" class="pointer" border>
      <el-table-column type="index" label="序号" width="55" align="center" />
      <el-table-column label="姓名" width="120" prop="expertName" align="center" />
      <el-table-column v-if="showInfo || showVoted" key="1" label="身份证号" min-width="150" prop="idcardNo" align="center" />
      <el-table-column v-if="showInfo || showVoted" key="2" label="手机号" min-width="120" prop="expertTelephone" align="center" />
      <el-table-column v-if="showInfo || showVoted" key="3" label="性别" width="80" prop="sex" align="center" />
      <el-table-column label="专家类型" min-width="100" prop="personType" align="center">
        <template slot-scope="scope">
          {{ filterDictText(personTypeList,scope.row.personType) }}
        </template>
      </el-table-column>
      <el-table-column label="评标类别" prop="expertTypes" align="center" min-width="150">
        <template slot-scope="scope">
          <span v-for="(item, index) in scope.row.expertTypes" :key="index">
            {{ filterDictText(expertTypeList,item) }}
          </span>
        </template>
      </el-table-column>
      <el-table-column label="组长" width="80" prop="isLeader" align="center">
        <template slot-scope="scope">
          {{ filterDictText(leaderStatus,scope.row.isLeader) }}
        </template>
      </el-table-column>
      <el-table-column label="废标" width="80" prop="isAgreeAbandon" align="center">
        <template slot-scope="scope">
          <span v-if="scope.row.isAgreeAbandon === '01'">同意</span>
          <span v-if="scope.row.isAgreeAbandon === '00'">不同意</span>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
/* 公共接口*/
import { procurementCommitteeGroupMixin } from '../../procurementCommittee/mixins/procurementCommitteeGroupMixins'
import { probidCommitteeMixin } from '../../procurementCommittee/mixins/procurementCommitteeMixins'
/* 公用方法*/
import { filterDictText } from '@/assets/js/utils'// 常用方法
export default {
  name: 'ExpertLeaderDetail',
  inject: ['getTenderBase'],
  components: {},
  mixins: [procurementCommitteeGroupMixin, probidCommitteeMixin],
  props: {
    showVoted: {
      type: Boolean,
      default: function() {
        return false
      }
    },
    expertData: {
      type: Array,
      default: function() {
        return []
      }
    }
  },
  data() {
    return {
      loading: false, // loading效果
      tableData: [], // 推荐组长列表
      getTenderBase: this.getTenderBase(), // 项目基本信息
      metaType: this.$route.meta.type, // 路由meta中type信息 managerView为项目经理查看
      showInfo: false // 是否展示专家的身份证号、手机号、性别等信息
    }
  },
  watch: {
  },
  created() {
    this.initData()
  },
  methods: {
    filterDictText,
    initData() {
    }
  }
}
</script>

<style lang="less" scoped>
.pointer{
  margin: 10px 0;
}
</style>
