/*
 *    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.
 *
 */

import {YES_OR_NO} from "../work/stucompany";

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  tree: true,
  showColumn: false,
  viewBtn:false,
  filterBtn: false,

  expandAll:true,

  column: [
    {
      label: '部门',
      align:'center',
      prop: 'deptName',
      width:160
    },
    {
      label: '项目编号',
      align:'center',
      prop: 'projectNo',
      search: true,
      slot:true,
      width:140
    },

    {
      label: '项目名称',
      align:'center',
      prop: 'projectName',
      search: true,
      width:300
    },
    {
      label: '立项金额',
      align:'center',
      prop: 'originMoney',
      width:120
    },

    {
      label: '上缴金额',
      align:'center',
      prop: 'upMoney',
      width:120
    },
    {
      label: '到账状态',
      align:'center',
      prop: 'moneyState',
      slot:true,
      width:120
    },
    {
      label: '控制比例',
      align:'center',
      prop: 'lockPercent',
      width:120
    },
    {
      label: '到账金额',
      align:'center',
      prop: 'arrivedMoney',
      width:120
    },
    {
      label: '可用金额',
      align:'center',
      prop: 'money85',
      width:120
    },

    {
      label: '过帐金额',
      align:'center',
      prop: 'finished',
      width:120
    },
    {
      label: '剩余金额',
      align:'center',
      prop: 'leftMoney',
      width:120
    },
    {
      label: '账期',
      align:'center',
      prop: 'accountPeriodDate',
      width:220,
      slot:true
    },

    {
      label: '启用状态',
      align:'center',
      prop: 'state',
      slot:true,
      width:120
    },
    {
      label: '发展基金',
      align:'center',
      prop: 'devFund',
      slot:true,
      width:100
    }
  ]
}



export const budgetStatistics = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  tree: true,
  showColumn: false,
  viewBtn:false,
  filterBtn: false,
  expandAll:true,
  menu:false,
  column: [
    {
      label: '部门',
      align:'center',
      prop: 'deptCode',
      search:true,
      type:'select',
      dicUrl: '/basic/basicdept/getDeptListByLevelTwo',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
      hide:true,
    },
    {
      label: '部门',
      align:'center',
      prop: 'deptName',
    },
    {
      label: '项目数',
      prop: 'totalNum',
    },
    {
      label: '立项金额',
      prop: 'originMoneyTotal',
    },
    // {
    //   label: '途中金额',
    //   prop: 'inWayTotal',
    // },
    {
      label: '预算金额',
      prop: 'moneyTotal',
    },

    {
      label: '已报销金额',
      prop: 'finishedTotal',
    },
    {
      label: '剩余金额',
      prop: 'leftMoneyTotal',
    },
  ]
}

