<!--
  @description: 招标计划-基本信息详情
  @Modifier: haoFx
  @routerPath:
  @date: 2020-5-31-13:01
-->
<template>
  <table class="tableData">
    <tr>
      <td colspan="4" style="font-weight: bold">
        1. 招标计划基本信息
      </td>
    </tr>
    <tr>
      <td>招标计划编号</td>
      <td>{{ formData.schemeNo }}</td>
      <td>招标计划名称</td>
      <td>{{ formData.schemeName }}</td>
    </tr>
    <tr>
      <td>工程项目编号</td>
      <td>{{ formData.projectNo }}</td>
      <td>工程项目名称</td>
      <td>{{ formData.projectName }}</td>
    </tr>
    <tr>
      <td>招标组织单位编号</td>
      <td>{{ formData.schemeDeptno }}</td>
      <td>招标组织单位名称</td>
      <td>{{ formData.schemeDeptname }}</td>
    </tr>
    <tr>
      <td>采购级别</td>
      <td>
        {{ filterDictText(purchaseSchemeLevelList, formData.purchasLevel) }}
      </td>
      <td>招标组织形式</td>
      <td>
        {{ filterDictText(purchasesSchemeBidOrgFormList, formData.biddingOrganizationForm) }}
      </td>
    </tr>
    <tr>
      <td>所属二级公司</td>
      <td>{{ formData.secondaryLevelCompanyName }}</td>
      <td>基层公司</td>
      <td>{{ formData.grassRootsCompaniesName }}</td>
    </tr>
    <tr>
      <td>招标代理机构</td>
      <td>{{ formData.biddingAgencyName }}</td>
      <td>项目性质</td>
      <td>
        {{ filterDictText(purchaseSchemeProjectNatureList, formData.schemeNature) }}
      </td>
    </tr>
    <tr>
      <td>招标项目类型</td>
      <td>
        {{ filterDictText(purchaseSchemeProjectTypeList, formData.biddingSchemeType) }}
      </td>
      <td>招标类别二级分类</td>
      <td>
        <!--父级-->
        <span
          v-for="(item,index) in purchaseSchemeProjectTypeList"
          v-if="formData.biddingSchemeType === item.typecode"
          :key="index"
        >
          <!--子级-->
          <span
            v-for="(child,childIndex) in item.child"
            v-if="formData.biddingClassSecondLevel === child.typecode"
            :key="childIndex"
          >
            {{ child.typename }}
          </span>
        </span>
      </td>
    </tr>
    <tr>
      <td>工程分类</td>
      <td>
        {{ filterDictText(purchaseSchemeEngineeringTypeList, formData.schemeClass) }}
      </td>
      <td>采购类型</td>
      <td>
        {{ filterDictText(purchaseSchemeTypeList, formData.purchasType) }}
      </td>
    </tr>
    <tr>
      <td>概算金额（元）</td>
      <td colspan="3">
        {{ moneyFormat(formData.schemeBudget) }}
      </td>
    </tr>
    <tr>
      <td>招标范围</td>
      <td colspan="3">
        {{ formData.biddingArea }}
      </td>
    </tr>
    <tr>
      <td colspan="4" style="font-weight: bold">
        2. 流程控制信息
      </td>
    </tr>
    <tr>
      <td>招标方式</td>
      <td>
        {{ filterDictText(purchasesSchemeBidWayList, formData.biddingMethod) }}
      </td>
      <td>资格审查方式</td>
      <td>
        {{ filterDictText(purchasesSchemeQuaWayList, formData.qualificationCheckWay) }}
      </td>
    </tr>
    <tr v-if="screenProjectToggle">
      <td>年度资格预审筛选项目</td>
      <td>
        {{ filterDictText(purchasesSchemeQuaProjectList, formData.annualPrequalificationScreeningProject) }}
      </td>
      <td />
      <td />
    </tr>
    <tr v-if="thirdToggle">
      <td>资格预审开启方式</td>
      <td>
        {{ filterDictText(purchasesSchemeQuaOpenWayList, formData.prequalificationOpeningMethod) }}
      </td>
      <td>资格预审评审方式</td>
      <td>
        {{ filterDictText(purchasesSchemeQuaEvalWayList, formData.prequalificationEvaluationWay) }}
      </td>
    </tr>
    <tr>
      <template v-if="thirdToggle">
        <td>
          资格预审评审办法
        </td>
        <td>
          {{ filterDictText(purchasesSchemeQuaEvalMethodList, formData.prequalificationEvaluationMethod) }}
        </td>
      </template>
      <template v-if="numberLimitToggle">
        <td>
          数量限制
        </td>
        <td>
          {{ formData.quantitativeRestriction }}
        </td>
      </template>
    </tr>
    <tr>
      <td>开标方式</td>
      <td>
        {{ filterDictText(purchasesSchemeOpenWayList, formData.bidOpeningMethod) }}
      </td>
      <td>开标步制</td>
      <td>
        {{ filterDictText(purchasesSchemeOpenStepWayList, formData.bidOpeningStep) }}
      </td>
    </tr>
    <tr>
      <td>评标方式</td>
      <td>
        {{ filterDictText(purchasesSchemeEvalWayList, formData.biddingEvaluationWay) }}
      </td>
      <td>评标办法</td>
      <td>
        {{ filterDictText(purchasesSchemeProEvalMethodList, formData.bidEvaluationMethod) }}
      </td>
    </tr>
    <tr>
      <td>投标报价方式</td>
      <td>
        {{ filterDictText(purchaseSchemeBidPriceMethodList, formData.biddingQuotationMethod) }}
      </td>
      <td>投标文件递交方式</td>
      <td>
        {{ filterDictText(purchasesSchemeDocWayList, formData.bidSubmissionMethod) }}
      </td>
    </tr>
  </table>
</template>

<script>
/* mixins混入公共方法*/
import { tenderPlan } from '../../mixins/tenderPlan'
import { baseInfoCommon } from '../../mixins/baseInfoCommon'
export default {
  name: 'BaseInfoDetail',
  mixins: [tenderPlan, baseInfoCommon],
  props: {
    // 招标计划基本信息 流程控制信息
    formData: {
      type: Object,
      default: function() {

      }
    }
  },
  created() {
    // 招标计划-字典信息
    this.initPurchaseSchemeWebTypeGroup()
  }
}
</script>

<style scoped>

</style>
