<!--
 * @Description: 报价应答文件查看弹框
 * @Author: gmy
 * @Date: 2020-07-16 15:18:30
-->
<template>
  <div>
    <el-dialog
      v-dialogDrag
      :visible.sync="dialogData.dialog"
      :close-on-click-modal="false"
      :lock-scroll="false"
      :title="dialogData.dialogText"
      width="600px"
      append-to-body
      custom-class="el-dialog__body-p8 el-dialog_table"
    >
      <!--aswserType 01 展示应发文件  -->
      <div v-if="dialogData.aswserType === '01'">
        <p>应答文件</p>
        <downloadFile :data="responseFile" :dis-block="'block'" />
      </div>
      <!--aswserType 02 展示其他文件  -->
      <div v-if="dialogData.aswserType === '02'">
        <p>其他附件</p>
        <downloadFile :data="responseAttachFile" :dis-block="'block'" />
      </div>
    </el-dialog>
  </div>
</template>

<script>
/* 组件*/
import downloadFile from '@comp/common/updownload/downloadFile'
import { procurementOfferGroupMixin } from '../../mixins/procurementOffGroupMixin'
export default {
  components: {
    downloadFile
  },
  mixins: [procurementOfferGroupMixin],
  props: {
    dialogData: {
      type: Object,
      default: function() {
        return
      }
    }
  },
  data() {
    return {
    }
  },
  watch: {
    'dialogData.dialog'(val) {
      if (val) {
        // 获取应答文件主键id
        this.responseFile.bizId = this.dialogData.bizId
        // 获取其他文件主键id
        this.responseAttachFile.bizId = this.dialogData.bizId
      }
    }
  },
  methods: {}
}
</script>

<style>
</style>

