<!--
  @description: 编辑申报材料-审核信息
  @Modifier: 肖文龙
  @routerPath:
  @date: 2020-5-23 11:22:31
-->
<template>
  <div v-if="tableData.length>0">
    <div class="page-title">
      审核信息
    </div>
    <div>
      <el-table
        :data="tableData"
        style="width: 100%"
      >
        <el-table-column
          prop="auditTime"
          align="center"
          label="审核时间"
          min-width="180"
        />
        <el-table-column
          prop="auditUserName"
          label="审核人"
          header-align="center"
          min-width="180"
        />
        <el-table-column
          align="center"
          min-width="100"
          label="审核状态"
        >
          <template slot-scope="scope">
            <span v-for="(item,index) in auditStatusList" v-if="scope.row.auditStatus === item.typecode" :key="index">
              {{ item.typename }}
            </span>
          </template>
        </el-table-column>
        <el-table-column
          header-align="center"
          min-width="300"
          prop="auditOpinion"
          label="审核意见"
        />
      </el-table>
    </div>
  </div>
</template>

<script>
/* 接口*/
import { getAuditInfoList } from '@/api/supplier/supplierBaseInfo'// 获取信息
/* 混合开发方法-参数字段*/
import { declareHegSupperGroupMixin } from '@/views/supplier/editorDeclaration/mixins/declareHegSupperGroupMixin'// 供应商-字典
import { supplierGroupMixin } from '@/views/supplier/mixins/supplierGroupMixin'
export default {
  name: 'InforaMtionAuditDetail',
  mixins: [declareHegSupperGroupMixin, supplierGroupMixin],
  data() {
    return {
      tableData: [] // 列表信息
    }
  },
  created() {
    this.initData()
  },
  methods: {
    // 取审核信息
    initData() {
      const params = {
        departId: this.$route.params.departId || '', // 供应商Id
        mainId: this.$route.params.bizId || ''// 代办id
      }
      getAuditInfoList(params).then(response => {
        this.tableData = response.data
      }).catch(() => {
      })
    }
  }
}
</script>

<style lang="less" scoped>

</style>
