<!--
  @description: 商务技术标已开标但未签到的投标人\经济标已开标但未签到的投标人\商务技术标已签到但未解密的投标人\经济标已签到但未解密的投标人
  @Modifier: hefei
  @routerPath: /bidding/bidOpening/bidOpeningMonitor/bidOpeningMonitorDetail/bidderData-detail
  @date: 2021/03/08 11:35:59
-->
<template>
  <div>
    <dl class="projectInfoDetail">
      <dd>
        <el-table
          v-loading="loading"
          :data="tableData"
        >
          <el-table-column
            type="index"
            label="序号"
            min-width="60px"
            align="center"
          />
          <el-table-column
            prop="supplierName"
            label="投标人"
            min-width="140px"
            header-align="center"
          />
          <template v-if="flag === '01'">
            <el-table-column
              prop="telephone"
              :label="label"
              min-width="140px"
              header-align="center"
            />
          </template>
        </el-table>
      </dd>
    </dl>
  </div>
</template>
<script>
/* api */
import { getTechnicalOpenedNoTechSignSupplier } from '@/api/bidding/bidOpening' // 商务技术标已开标但未签到的投标人
import { getEconomicOpenedNoSignSupplier } from '@/api/bidding/bidOpening' // 经济标已开标但未签到的投标人
import { getTechnicalSignedNoDecSupplier } from '@/api/bidding/bidOpening' // 商务技术标已签到但未解密的投标人
import { getEconomicSignedNoDecSupplier } from '@/api/bidding/bidOpening' // 经济标已签到但未解密的投标人
export default {
  name: 'GetbidderData',
  props: {
    bidSignDecrypt: {
      type: Object,
      default: function() {
        return {}
      }
    }
  },
  data() {
    return {
      label: '',
      flag: '',
      loading: false, // 列表loading
      tableData: [] // 列表
    }
  },
  methods: {
    // 查询数据
    getTechnicalOpenedNoTechSignSupplier() {
      this.label = '商务技术标投标人手机号'
      this.tableData = []
      this.loading = true
      this.flag = '00'
      getTechnicalOpenedNoTechSignSupplier(this.bidSignDecrypt).then(response => {
        this.loading = false
        this.tableData = response.data
      }).catch(() => {
        this.loading = false
      })
    },
    getEconomicOpenedNoSignSupplier() {
      this.label = '经济标投标人手机号'
      this.tableData = []
      this.flag = '00'
      this.loading = true
      getEconomicOpenedNoSignSupplier(this.bidSignDecrypt).then(response => {
        this.loading = false
        this.tableData = response.data
      }).catch(() => {
        this.loading = false
      })
    },
    getTechnicalSignedNoDecSupplier() {
      this.label = '商务技术标投标人手机号'
      this.tableData = []
      this.flag = '01'
      this.loading = true
      getTechnicalSignedNoDecSupplier(this.bidSignDecrypt).then(response => {
        this.loading = false
        this.tableData = response.data
      }).catch(() => {
        this.loading = false
      })
    },
    getEconomicSignedNoDecSupplier() {
      this.label = '经济标投标人手机号'
      this.tableData = []
      this.loading = true
      this.flag = '01'
      getEconomicSignedNoDecSupplier(this.bidSignDecrypt).then(response => {
        this.loading = false
        this.tableData = response.data
      }).catch(() => {
        this.loading = false
      })
    }
  }
}
</script>
<style lang="less" scoped>

</style>
