<script setup name="basicInfo">
import store from '@/store'

const { projectTypeOptions } = store.dictStore.globalDicts || {}
defineProps({
  detailData: {
    type: Object,
    default: () => {}
  },
  dictionaryList: Array,
  templateTypeListData: Array
})
</script>

<template>
  <el-descriptions :column="2" border>
    <!--    <el-descriptions-item label="是否涉密项目">-->
    <!--      {{ dictionaryList?.filter(i => i.type === 'CLASSIFIED').find(i=>i.value===detailData?.baseProjIsConfidentiality)?.label ||'-' }}-->
    <!--    </el-descriptions-item>-->
    <el-descriptions-item label="项目名称">
      {{ detailData?.baseProjName ||'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="项目类型">
      {{ detailData?.baseProjType&&projectTypeOptions[detailData?.baseProjType]||'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="内容类别">
      {{ detailData?.baseConstructionType?.split('；').map(i=>dictionaryList?.filter(j => j.type === 'CONTENT_TYPE').find(k=>k.value===i)?.label).join('、') ||'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="项目状态">
      {{ dictionaryList?.filter(i => i.type === 'PROJECT_STATUS').find(i=>i.value===detailData?.baseProjSetProg)?.label ||'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="上级主管单位类型">
      {{ detailData?.baseProvManDeprtType===1?'省级':detailData?.baseProvManDeprtType===2?'非省级':'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="上级主管单位">
      {{ detailData?.baseProvManDeprt ||'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="本级主管单位">
      {{ detailData?.baseManDeprt ||'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="本级主管单位统一社会信用代码">
      {{ detailData?.baseManDepartUsci ||'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="建设单位">
      {{ detailData?.baseBuildDeprt ||'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="建设单位统一信用代码">
      {{ detailData?.baseBuildDepartUsci ||'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="项目负责人">
      {{ detailData?.baseProjPrincipal ||'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="负责人手机号码">
      {{ detailData?.baseProjPrincipalCall ||'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="项目联系人">
      {{ detailData?.baseProjContacts ||'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="联系人手机号码">
      {{ detailData?.baseProjContactsCall ||'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="系统定位" :span="2">
      {{ detailData?.systemPosition ||'-' }}
    </el-descriptions-item>
    <el-descriptions-item label="绩效评价类型" :span="2">
      {{ templateTypeListData?.find(i=>i.id===detailData?.templateType)?.name||"-" }}
    </el-descriptions-item>
  </el-descriptions>
</template>
