/*
 *    Copyright (c) 2018-2025, cyweb All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 *
 */

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  menu: false,
  dic: [],
  showSummary:true,
  sumColumnList: [
    {
      label:'合计:',
      name: 'sum',
      type: 'sum',
      decimals:1
    },
    {
      name: 'moneyGoal',
      type: 'sum'
    },
    // {
    //   name: 'moneyGoalRate',
    //   type: 'avg'
    // },
    // {
    //   name: 'arrivedMoneyRate',
    //   type: 'avg'
    // },
    {
      name: 'arrivedMoney',
      type: 'sum'
    },{
      name: 'moneyGoalComplete',
      type: 'sum'
    },{
      name: 'arrivedMoney',
      type: 'sum'
    },{
      name: 'currentArrivedMoney',
      type: 'sum'
    }],
  column: [


	  {
      label: '部门编码',
      prop: 'deptCode',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
	  {
      label: '部门',
      prop: 'deptName',
      // width: 140
    },
	  {
      label: '当年项目到账金额目标(万元)',
      prop: 'moneyGoal',
      // width:110,
    },
	  // {
    //   label: '当年项目立项金额(万元)',
    //   prop: 'moneyGoalComplete',
    //   // width:110,
    // },

    {
      label: '当年到账金额(万元)',
      prop: 'arrivedMoney',
      // width:100,
    },
    {
      label: '当年到账率(%)',
      prop: 'arrivedMoneyRate',
      // width:100,
    },
    // {
    //   label: '总到账金额(含既往项目)(万元)',
    //   prop: 'currentArrivedMoney',
    //   // width:100,
    // },
    {
      label: '高端化目标',
      prop: 'highRateGoal',
      // width:80,
    },
    {
      label: '高端化率(%)',
      prop: 'highRate',
      // width:80,
    },
	  {
      label: '市场化率(%)',
      prop: 'marketRate',
      // width:80,
    },

	  {
      label: '专业吻合度(%)',
      prop: 'majorMactchRate',
      // width:80,
    }

  ]
}
export const tableYearOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  menu: false,
  dic: [],
  showSummary:true,
  sumColumnList: [
    {
      label:'合计:',
      name: 'sum',
      type: 'sum',
      decimals:1
    },
    {
      name: 'moneyGoal',
      type: 'sum'
    },
    // {
    //   name: 'moneyGoalRate',
    //   type: 'avg'
    // },
    // {
    //   name: 'arrivedMoneyRate',
    //   type: 'avg'
    // },
    {
      name: 'arrivedMoney',
      type: 'sum'
    },{
      name: 'moneyGoalComplete',
      type: 'sum'
    },{
      name: 'arrivedMoney',
      type: 'sum'
    },{
      name: 'currentArrivedMoney',
      type: 'sum'
    },{
      name: 'projectNum',
      type: 'sum'
    }],
  column: [


    {
      label: '部门编码',
      prop: 'deptCode',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
    {
      label: '部门',
      prop: 'deptName',
      // width: 140
    },
    {
      label: '当年项目到账金额目标(万元)',
      prop: 'moneyGoal',
      // width:110,
    },

    {
      label: '当年项目立项金额(万元)',
      prop: 'moneyGoalComplete',
      // width:110,
    },
    {
      label: '当年立项数',
      prop: 'projectNum',
      // width:110,
    },
    {
      label: '当年到账金额(万元)',
      prop: 'arrivedMoney',
      // width:100,
    },
    {
      label: '当年到账率(%)',
      prop: 'arrivedMoneyRate',
      // width:100,
    },
    {
      label: '总到账金额(含既往项目)(万元)',
      prop: 'currentArrivedMoney',
      // width:100,
    },
    {
      label: '高端化目标',
      prop: 'highRateGoal',
      // width:80,
    },
    {
      label: '高端化率(%)',
      prop: 'highRate',
      // width:80,
    },
    {
      label: '市场化率(%)',
      prop: 'marketRate',
      // width:80,
    },

    {
      label: '专业吻合度(%)',
      prop: 'majorMactchRate',
      // width:80,
    }

  ]
}
