/*
 *    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:'2'},
  {label:'已缴费',value:'1'},
]
const  CANCEL_STATUS=[
  {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,
  selection: true,
  selectable:(row,index)=>{
    return index===1;
  },
  column: [
	  // {
    //   label: '主键',
    //   prop: 'id'
    // },
	  // {
    //   label: '创建人',
    //   prop: 'createBy'
    // },
	  // {
    //   label: '创建时间',
    //   prop: 'createTime'
    // },
	  // {
    //   label: '更新人',
    //   prop: 'updateBy'
    // },
	  // {
    //   label: '更新时间',
    //   prop: 'updateTime'
    // },
	  // {
    //   label: '删除标记',
    //   prop: 'delFlag'
    // },
	  // {
    //   label: '备注',
    //   prop: 'remarks'
    // },
    {
      label: '收费项目',
      prop: 'settingId',
      type:"select",
      dicUrl:'/finance/recruitsetting/queryAllList',
      search:true,
      hide:true,
      props:{
        label:'settingName',
        value:'id'
      },

    },
    {
      label: '缴费状态',
      prop: 'isPayAll',
      type:"select",
      dicData:PAY_STATUS,
      search:true,
      hide:true,
      props:{
        label:'label',
        value:'value'
      },
    },

    {
      label: '唯一号/姓名/电话',
      prop: 'userInfo',
      hide:true,
      display:false,
      search:true
    },
    {
      label: '是否缴费',
      prop: 'isPay'
    },
    {
      label: '是否作废',
      prop: 'isCancal',
      search:true,
      type:"select",
      dicData:CANCEL_STATUS,
      props:{
        label:'label',
        value:'value'
      },
    },
	  {
      label: '新生标识',
      prop: 'serialNumber'
    },
	  {
      label: '姓名',
      prop: 'realName',
    },
    {
      label: '手机',
      prop: 'phone',
    },
    {
      label: '学费',
      prop: 'tuition'
    },
    {
      label: '代办费',
      prop: 'agencyFee'
    },
    {
      label: '学校代办费材料费',
      prop: 'agencyMaterialFee'
    },
    {
      label: '捐资助学费',
      prop: 'donationAndTuition'
    },
    {
      label: '应缴',
      prop: 'shouldPay'
    },
    {
      label: '已缴',
      prop: 'realPay'
    },
	  {
      label: '生源',
      prop: 'stuSource',
      dicUrl:'/admin/dict/item/type/finance_student_source',
      props:{
        label:'label',
        value:'value'
      },
      search:true,
      type:"radio",
    },

	  {
      label: '经办人',
      prop: 'operaterName'
    },
  ]
}
