/*
 *    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',
  menuWidth:70,
  labelWidth:120,
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '项目',
      width:"60%",
      prop: 'normalId',
      type:'select',
      search:true,
      addDisplay:true,
      editDisabled:true,
      editDisplay:true,
      dicUrl: '/finance/financenormalsetting/list',
      props:{
        label:'settingName',
        value:'id'
      }
    },
    {
      label: '学号',
      width:"50%",
      prop: 'stuNo',
      editDisabled:true,
      editDisplay:true,
    },
    {
      label: '姓名',
      width:"60%",
      prop: 'realName',
    },
    // {
    //   label: '班级',
    //   prop: 'classCode',
    // },
    {
      label: '班级',
      width:"50%",
      prop: 'classCode',
      type:'select',
      searchFilterable:true,
      addDisplay:true,
      editDisabled:true,
      editDisplay:true,
      dicUrl: '/basic/basicclass/queryUserClass',
      props:{
        label:'classNo',
        value:'classCode'
      },
      rules: [{
        required: true,
        message: '请输入收费类型',
        trigger: 'blur'
      }]
    },
    {
      label: '电话',
      width:"50%",
      prop: 'phone',
    },
    // {
    //   label: '银行卡号',
    //   prop: 'bankCode',
    // },
    // {
    //   label: '生源',
    //   prop: 'education',
    // },
    {
      label: '生源',
      width:"50%",
      prop: 'education',
      type:"select",
      dicUrl: '/admin/dict/item/type/pre_school_education',
      editDisabled:true,
      editDisplay:false,
    },
    {
      label: '学籍',
      width:"50%",
      prop: 'enrollStatus',
      type:"select",
      dicUrl: '/admin/dict/item/type/enroll_status',
    },
    {
      label: '状态',
      width:"50%",
      prop: 'stuStatus',
      type:"select",
      dicUrl: '/admin/dict/item/type/student_status',
    },
    {
      label: '住宿',
      width:"50%",
      prop: 'isStay',
    },

    {
      label: '代办费材料费',
      width:"80%",
      prop: 'agencyMaterialFee',
      slot:true,
    },

    {
      label: '学费',
      width:"80%",
      prop: 'xf',
      slot:true,
    },
    {
      label: '住宿费',
      width:"80%",
      prop: 'zsf',
      slot:true,
    },{
      label: '中德班学费',
      width:"80%",
      prop: 'zdxf',
      slot:true,
    },
    {
      label: '备注',
      prop: 'remarks',
      slot:true
    }
  ]
}
