<template>
  <div class="performance">
    <div class="content">
      <head-form
        title="集团施工项目最新招标"
        :form-data="formData"
        :query-params="queryParams"
        :slots="true"
        :isExcel="false"
      ></head-form>
    </div>
    <div class="content">
      <head-form
        title="集团年度发包统计"
        :slots="true"
        :isExcel="false"
      ></head-form>
    </div>
    <div class="content">
      <head-form
        title="集团施工项目发包金额区间"
        :slots="true"
        :isExcel="false"
      ></head-form>
    </div>
    <div class="content">
      <head-form
        title="集团施工项目发包类型统计"
        :slots="true"
        :isExcel="false"
      ></head-form>
    </div>
    <div class="content">
      <head-form
        title="施工项目下浮率统计"
        :slots="true"
        :isExcel="false"
      ></head-form>
    </div>
    <div class="content">
      <head-form
        title="历史发包项目金额TOP10"
        :form-data="formData"
        :query-params="queryParams1"
        :slots="true"
        :isExcel="false"
      ></head-form>
    </div>
  </div>

</template>

<script>
  import mixin from '../../party-a/mixins/mixin'
  import { getDictType } from '@/api/main'
  export default {
    name: 'qualifications',
    props: ['customerId','combineName'],
    mixins: [mixin],
    components:{},
    data(){
      return{
        queryParams: {},
        queryParams1: {},
        forData: [
          {label: '项目类型', prop: 'projectType',minWidth: '80',slot: true},
          {label: '持股比例', prop: 'stockPercent',slot: true,minWidth: '80'},
        ],
        formData: [
          { type: 4, fieldName: 'projectTypes', value: '', placeholder: '项目类型', options: [],width:150},
          { type: 1, fieldName: 'cgbl', value: '', placeholder: '持股比例', options: [],width:110},
        ],
        cgblList: [
          {name:'100%',value:'100%'},
          {name:'50%以上',value:'50%以上'},
          {name:'20%以上',value:'20%以上'},
          {name:'5%以上',value:'5%以上'},
          {name:'1%-5%',value:'1%-5%'},
        ],
      }
    },
    created() {
      this.formData[1].options=this.cgblList;
      //项目类型
      getDictType('project_type_new').then(result=>{
        let data = result.code == 200 ? result.data:[];
        if(data.length > 0){
          for (var i=0;i<data.length;i++){
            this.formData[0].options.push({
              name: data[i].dictLabel,
              value: data[i].dictValue,
            })
          }
        }
      })
    },
    methods: {

    }
  }
</script>

<style lang="scss" scoped>
  .performance{
    height: calc(100% - 64px);
    .content{
      background: #ffffff;
      border-radius: 4px;
      padding: 16px;
      margin-bottom: 16px;
    }
  }
</style>
