<!--
  @description: 供应商-基本信息/申报记录查看查看
  @Modifier:肖文龙
  @routerPath:
  @date: 2020/8/06-15:41
-->
<template>
  <el-dialog
    v-dialogDrag
    :visible.sync="dialog"
    :close-on-click-modal="false"
    title="供应商信息"
    width="1300px"
    custom-class="el-dialog__body-p0"
  >
    <div v-if="dialog" class="mb10" style="min-height: 680px">
      <div style="position:relative;">
        <el-tabs v-model="activeName" class="el-tabs-border-card-shadow-none" type="border-card">
          <el-tab-pane name="essentialInformation" label="基本信息">
            <essentialInformationDetail :judge-page-data="judgePageData" class="p0-16" />
          </el-tab-pane>
          <el-tab-pane name="businessManagerInfo" label="业务经办人信息">
            <businessManagerInfoDetail :judge-page-data="judgePageData" class="p0-16" />
          </el-tab-pane>
          <el-tab-pane name="enterpriseQualification" label="企业资质">
            <enterpriseQualificationDetail :judge-page-data="judgePageData" class="p0-16" />
          </el-tab-pane>
          <el-tab-pane name="supplYrecord" label="供货记录">
            <supplYrecordDetail :judge-page-data="judgePageData" class="p0-16" />
          </el-tab-pane>
          <el-tab-pane name="financialSituation" label="财务状况">
            <financialSituationDetail :judge-page-data="judgePageData" class="p0-16" />
          </el-tab-pane>
          <!-- <el-tab-pane name="recordReportingUnit" label="申报单位记录">
            <recordReportingUnitList :judge-page-data="judgePageData" class="p0-16" />
          </el-tab-pane>
          <el-tab-pane name="projectRecord" label="参与项目记录">
            <projectRecordList :judge-page-data="judgePageData" class="p0-16" />
          </el-tab-pane> -->
        </el-tabs>
      </div>
    </div>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialog = false">
        关 闭
      </el-button>
    </div>
  </el-dialog>
</template>

<script>
import essentialInformationDetail from '@views/supplier/editorDeclaration/essentialInformation/essentialInformation-detail'// 审报材料-查看基本信息
import businessManagerInfoDetail from '@views/supplier/editorDeclaration/businessManagerInfo/businessManagerInfo-detail'// 审报材料-业务经办人信息
import enterpriseQualificationDetail from '@views/supplier/editorDeclaration/enterpriseQualification/enterpriseQualification-detail'// 审报材料-企业资质
import supplYrecordDetail from '@views/supplier/editorDeclaration/supplYrecord/supplYrecord-detail'// 审报材料-供货记录
import financialSituationDetail from '@views/supplier/editorDeclaration/financialSituation/financialSituation-detail'// 审报材料-财务状况
// import inforaMtionAuditDetail from '@views/supplier/editorDeclaration/inforaMtionAudit/inforaMtionAudit-detail' // 审报材料-审核信息
import projectRecordList from '@/views/supplier/supplierRepository/projectRecord-list.vue' // 参与项目记录
import recordReportingUnitList from '@/views/supplier/supplierRepository/recordReportingUnit-list.vue' // 申报单位记录

export default {
  components: {
    essentialInformationDetail, // 审报材料-查看基本信息
    businessManagerInfoDetail, // 审报材料-业务经办人信息
    enterpriseQualificationDetail, // 审报材料-企业资质
    supplYrecordDetail, // 审报材料-供货记录
    financialSituationDetail, // 审报材料-供货记录
    // inforaMtionAuditDetail, // 审报材料-审核信息
    projectRecordList, // 参与项目记录
    recordReportingUnitList // 申报单位记录
  },
  data() {
    return {
      // 供应商信息
      judgePageData: {
        detailType: 'dialog', // 查看形式 dialog 弹框
        departId: '', // 供应商主键id
        isViewPage: '01'
      },
      dialog: false, // 弹窗状态 false 关闭 true 打开
      activeName: 'essentialInformation' // tab索引
    }
  },
  methods: {
    // 打开弹窗 departId 供应商主键id
    open(data) {
      console.log(333)
      this.judgePageData = {
        detailType: 'dialog', // 查看形式 dialog 弹框
        departId: data || '',
        isViewPage: '01' // 判断是否是非供应商查看供应商信息
      }
      this.dialog = true
    }
  }
}
</script>

<style lang="sass" scoped>

</style>
