<!--
  @description: 查看评审费报销-报销申请
  @Modifier: sunxinman
  @routerPath:
  @date: 2020/04/14-17:20
-->
<template>
  <div>
    <table class="tableData">
      <tr>
        <td>表单编号</td>
        <td>{{ formData.expenType }}</td>
        <td>表单名称</td>
        <td>{{ formData.name }}</td>
      </tr>
      <tr>
        <td>会议信息表</td>
        <td>{{ formData.batchNumber }}</td>
        <td>标段(包)信息</td>
        <td>
          <el-button v-if="formData.meetingId" type="text" @click="viewPack">
            查看标段（包）列表
          </el-button>
        </td>
      </tr>
      <tr>
        <td>评标开始时间</td>
        <td>{{ formData.evalExpertNumber }}</td>
        <td>评标结束时间</td>
        <td>{{ formData.evalStopTime }}</td>
      </tr>
      <tr>
        <td>评审地点</td>
        <td>{{ formData.auditAddress }}</td>
        <td>评委会人数</td>
        <td>{{ formData.auditNumber }}</td>
      </tr>
      <tr>
        <td>评标专家人数</td>
        <td>{{ formData.evalExpertNumber }}</td>
        <td>招标代表人数</td>
        <td>{{ formData.bidiReprNumber }}</td>
      </tr>
      <tr>
        <td>牵头部门</td>
        <td>{{ formData.leadDepart }}</td>
        <td>费用类别</td>
        <td>{{ formData.expenType }}</td>
      </tr>
      <tr>
        <td>用途</td>
        <td colspan="3">
          {{ formData.purpose }}
        </td>
      </tr>
      <tr>
        <td>摘要</td>
        <td colspan="3">
          {{ formData.brief }}
        </td>
      </tr>
      <tr>
        <td>专家签到表扫描件</td>
        <td colspan="3">
          <downloadFile :data="evaluationSignInScanningCopyBase" />
        </td>
      </tr>
    </table>
    <!-- 查看标段（包）信息 -->
    <packageDetail :dialog-data="dialogDataPack" />
  </div>
</template>

<script>
/* 接口*/
import { queryByIdEvalFeeInfo } from '@api/fee/evalfee'
/* 混入公共方法 */
import { evalFeeMixin } from '../mixins/evalFeeMixin'
/* 组件*/
import downloadFile from '@comp/common/updownload/downloadFile'// 文件下载组件
import packageDetail from '@/views/fee/components/packageDetail-dialog'// 标段包列表
export default {
  name: 'EvalfeeApplyDetail',
  components: {
    downloadFile, // 文件下载组件
    packageDetail // 标段包列表弹框
  },
  mixins: [evalFeeMixin],
  props: {
    // 接收tab父页面信息
    evalFeeData: {
      type: Object,
      default: function() {
        return {
          evalFeeId: '', // 评审费id
          meetingId: ''// 会议id
        }
      }
    }
  },
  data() {
    return {
      // 标段包列表弹框
      dialogDataPack: {
        dialog: false, //
        meetingId: ''// 会议信息id
      }
    }
  },
  created() {
    this.initData()// 查询发放评审费信息
  },
  methods: {
    // 查看标段包信息
    viewPack() {
      this.dialogDataPack = { // 标段包列表弹框
        dialog: true,
        meetingId: this.formData.meetingId // 会议信息id
      }
    },
    // 查询发放评审费信息
    initData() {
      queryByIdEvalFeeInfo(this.evalFeeData.evalFeeId).then(res => {
        this.formData = res.data
        // 专家签到表扫描件
        this.evaluationSignInScanningCopyBase.bizId = this.formData.meetingId// 业务主键id
      })
    }
  }
}
</script>

<style scoped lang="less">

</style>
