<!--
 * @Description: 报价应答文件弹框
 * @Author: gmy
 * @Date: 2020-07-16 15:18:30
   @routerPath:
-->
<template>
  <div>
    <el-dialog
      v-dialogDrag
      :visible.sync="dialogData.dialog"
      :close-on-click-modal="false"
      :lock-scroll="false"
      title="应答文件"
      width="600px"
      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 { orderManagementMixins } from '../mixins/orderManagementMixins'
export default {
  components: {
    downloadFile
  },
  mixins: [orderManagementMixins],
  props: {
    dialogData: {
      type: Object,
      default: function() {
        return
      }
    }
  },
  data() {
    return {
      // 采购文件附件
      auditStatus: '' // 采购文件状态 暂定 00 01 ''
    }
  },
  watch: {
    'dialogData.consignContractVisible'(val) {
      if (val) {
        // 获取文件id
        this.responseFile.bizId = this.dialogData.bizId
        this.responseAttachFile.bizId = this.dialogData.bizId
      }
    }
  }
}
</script>

<style>
</style>

