
<!--
  @description: 采购人-成交结果公告
  @author: wxy/gmy
  @routerPath:/procurement/procurementDrive/procurementPublicty
  @date: 2020-9-10 10:17:58
-->
<template>
  <div>
    <div class="main">
      <div class="table_noBottom_border_wrap">
        <el-table
          ref="smallTable"
          :data="clinchResultNoticeList"
          style="width:100%"
        >
          <el-table-column
            type="index"
            label="序号"
            align="center"
            width="60"
          />
          <el-table-column
            header-align="center"
            prop="publicityTitle"
            label="名称"
            align="left"
            min-width="230"
          />
          <el-table-column
            header-align="center"
            prop="supplierName"
            label="供应商名称"
            align="left"
            min-width="160"
          />
          <el-table-column
            prop="purchaseNo"
            label="发布时间"
            min-width="150"
            header-align="center"
            align="center"
          >
            <template slot-scope="scope">
              <p v-if="scope.row.publicityPublishTime">
                {{ $Moment(scope.row.publicityPublishTime).format(momentSaveFormat) }}
              </p>
            </template>
          </el-table-column>
          <el-table-column
            prop="purchaseNo"
            label="操作"
            min-width="150"
            header-align="center"
            align="center"
          >
            <template slot-scope="scope">
              <gx-link
                :code="'001_008_001'"
                :underline="false"
                type="primary"
                size="mini"
                plain
                @click.stop="chlinchResultLook(scope.row)"
              >
                [查看]
              </gx-link>
            </template>
          </el-table-column>
        </el-table>
      </div>
    </div>
  </div>
</template>

<script>
/* api接口*/
import { queryPublicityListByPackId } from '@/api/procurement/procurementResult' // 获取成交结果公告列表
export default {
  name: 'ProcurementProjectAdd',
  inject: ['getTenderBase'],
  components: {
  },
  data() {
    return {
      clinchResultNoticeList: [], // 成交结果公示数据
      tenderBaae: this.getTenderBase() // 获取项目信息
    }
  },
  watch: {
  },
  created() {
    this.getClinchResultNoticeList()
  },
  methods: {
    // 查看成交结果公示详情
    chlinchResultLook(row) {
      this.$router.push({
        path: '/procurement/procurementDrive/procurementClinchResultNotice-detail',
        query: {
          id: row.id
        }
      })
    },
    // 获取成交结果公告列表
    getClinchResultNoticeList() {
      queryPublicityListByPackId(this.tenderBaae.packId).then(res => {
        this.clinchResultNoticeList = res.data
      })
    }
  }
}
</script>

<style lang="less" scoped>

  /deep/.show-word-limit-padding{
    .el-input__inner{
      padding-right: 70px;
    }
  }
</style>
