<!--
  @description: 查询候选人公示统计信息详情
  @Modifier: haofengxian
  @routerPath: /statisticalAnalysis/candidateNoticeInfoDetail
  @date: 2020-7-17-10:57
-->
<template>
  <div>
    <div class="title p0-16 clearfix">
      <!-- 返回 -->
      <div class="title-back pointer" @click="back">
        <i class="iconfont icon-fanhui mr10" />
        查看候选人公示统计信息
      </div>
    </div>
    <div class="p0-16">
      <div>
        <el-table
          ref="smallTable"
          v-loading="loading"
          :data="tableData"
        >
          <el-table-column
            type="index"
            label="序号"
            width="60px"
            align="center"
          />
          <el-table-column
            prop="type"
            align="center"
            label="类别"
            width="170"
          />
          <el-table-column
            prop="tenderNo"
            align="center"
            label="招标项目编号"
            width="170"
          />
          <el-table-column
            header-align="center"
            prop="tenderName"
            label="招标项目名称"
            min-width="230"
          />
          <el-table-column
            header-align="center"
            prop="packName"
            label="标段（包）名称"
            min-width="230"
          />
          <el-table-column
            prop="packNo"
            align="center"
            label="标段（包）编号"
            width="170"
          />
          <el-table-column
            header-align="center"
            prop="winCandidate"
            label="中标候选人"
            width="170"
          />
          <el-table-column
            header-align="center"
            prop="bidPrice"
            label="投标报价（元）"
            align="right"
            width="170"
          />
          <el-table-column
            header-align="center"
            prop="bidPriceDesc"
            label="报价排倒序"
            width="170"
          />
          <el-table-column
            header-align="center"
            prop="bidderNumber"
            label="投标人数量"
            width="170"
          />
          <el-table-column
            header-align="center"
            prop="bidPrice"
            label="最高投标限价（元）"
            align="right"
            width="170"
          />
          <el-table-column
            header-align="center"
            prop="bidEvaluationPrice"
            label="评标基准价（元）"
            align="right"
            width="170"
          />
          <el-table-column
            header-align="center"
            prop="avgEvaluationDownRate"
            label="平均基准价下降率（元）"
            align="right"
            width="170"
          />
          <el-table-column
            header-align="center"
            prop="winSpareRate"
            label="中标节资率（元）"
            align="right"
            width="170"
          />
          <el-table-column
            header-align="center"
            prop="economicScore"
            label="经济得分"
            width="90"
          />
          <el-table-column
            header-align="center"
            prop="economicRanking"
            label="经济排名"
            width="90"
          />
          <el-table-column
            header-align="center"
            prop="businessScore"
            label="商务得分"
            width="90"
          />
          <el-table-column
            header-align="center"
            prop="businessRanking"
            label="商务排名"
            width="90"
          />
          <el-table-column
            header-align="center"
            prop="technologyScore"
            label="技术得分"
            width="90"
          />
          <el-table-column
            header-align="center"
            prop="technologyRanking"
            label="技术排名"
            width="90"
          />
          <el-table-column
            header-align="center"
            prop="totalScore"
            label="总分"
            width="90"
          />
        </el-table>
      </div>
    </div>
  </div>
</template>

<script>
/* 接口*/
import { queryCandidateNoticeInfo } from '@api/statisticalAnalysis'
export default {
  name: 'CandidateNoticeInfo',
  data() {
    return {
      loading: true,
      tableData: []
    }
  },
  created() {
    this.getCandidateNoticeInfo()
  },
  methods: {
    // 查询候选人公示统计信息详情
    getCandidateNoticeInfo() {
      this.tableData = []
      queryCandidateNoticeInfo({ packId: this.$route.query.packId }).then(response => {
        this.loading = false
        this.tableData.push(response.data)
      }).catch(() => {
        this.loading = false
      })
    },
    // 返回
    back() {
      this.$router.push('/statisticalAnalysis/candidateNoticeList')
    }
  }
}
</script>

<style scoped>

</style>
