/*
 *    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.
 *
 */
const  PAY_STATUS=[
  {label:'未缴费',value:'0'},
  {label:'已缴费',value:'10'},
  {label:'未退费',value:'11'},
  {label:'已退费',value:'12'},
]
const PAY_TYPE=[
  {label:'退费',value:'0'},
  {label:'缴费',value:'1'},

]
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  page:false,
  showSummary:true,
  menu:false,
  sumColumnList: [
    {
      name: 'money',
      type: 'sum'
    },
    {
      name: 'paiedMoney',
      type: 'sum'
    }],
  column: [

	  {
      label: '缴费时间',
      prop: 'payTime'
    },
    {
      label: '年份',
      prop: 'year',
      search:true,
      hide:true,
      addDisplay:false,
      editDisplay:false,
      type:'year',
      valueFormat:'yyyy'
    },
    {
      label: '项目名称',
      prop: 'id',
      type:'select',
      search:true,
      dicUrl:'/finance/normalstuproject/getProjectList',
      props:{
        label:'settingName',
        value:'id'
      }
    },
    {
      label: '班级',
      prop: 'classCode',
      search:true,
      hide:true,
      searchFilterable:true,
      type:"select",
      dicUrl:'/basic/basicclass/list',
      props:{
        label: 'classNo',
        value: 'classCode',
      }
    },
    {
      label: '学号',
      prop: 'stuNo',
      search:true
    },
    {
      label: '姓名',
      prop: 'realName',
      search:true
    },


    {
      label: '费用名称',
      prop: 'projectName'
    },
    {
      label: '缴/退类型',
      prop: 'typeValue',
    },
    {
      label: '缴/退类型',
      prop: 'type',
      type:"select",
      hide:true,
      search: true,
      dicData:PAY_TYPE,
      props:{
        label:'label',
        value:'value'
      },
    },
    {
      label: '应缴/应退金额',
      prop: 'money'
    },
    {
      label: '实缴/实退金额',
      prop: 'paiedMoney'
    },
    {
      label: '缴费状态',
      prop: 'status',
      type:"select",
      search:true,
      dicData:PAY_STATUS,
      props:{
        label:'label',
        value:'value'
      },
    },
    {
      label: '备注',
      prop: 'remark'
    },
  ]
}
