<!--
  @description:审批信息
  @Modifier: haofengxian
  @routerPath:
  @date: 2020-5-11-11:36
-->
<template>
  <div class="p0-16">
    <div class="page-title">
      审批信息
    </div>
    <el-table :data="opinionList" size="medium" border>
      <el-table-column
        prop="auditTime"
        label="审核时间"
        align="center"
      >
        <template slot-scope="scope">
          {{ scope.row.auditTime && $Moment(scope.row.auditTime).format(momentDateTime) }}
        </template>
      </el-table-column>
      <el-table-column
        prop="auditUserName"
        label="审核人员"
        align="center"
      />
      <el-table-column
        prop="auditStatus"
        label="审核结果"
        align="center"
      >
        <template slot-scope="scope">
          <span v-if="scope.row.auditStatus==='00'" class="status2">待审核</span>
          <span v-if="scope.row.auditStatus==='01'" class="status1">审核通过</span>
          <span v-if="scope.row.auditStatus==='02'" class="status3">审核不通过</span>
        </template>
      </el-table-column>
      <el-table-column
        prop="auditNotPassReason"
        label="审核意见"
        align="center"
      />
    </el-table>
  </div>
</template>

<script>
import { getAuditRecordByObjectionId } from '@api/bidding/tenderObjection'

export default {
  name: 'AuditInfo',
  data() {
    return {
      objectionId: this.$route.params.objectionId, // 异议id
      opinionList: [] // 审核信息
    }
  },
  created() {
    this.getAuditObjection()
  },
  methods: {
    // 根据异议投诉id获取审批记录列表
    getAuditObjection() {
      getAuditRecordByObjectionId(this.objectionId).then(res => {
        this.opinionList = res.data
      }).catch(() => {})
    }
  }
}
</script>

<style scoped>

</style>
