/*
 *    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 tableDetailOption = {
  border: true,
  index: false,
  indexLabel: '序号',
  stripe: true,
  align: 'center',
  menu:false,
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '备注',
      labelWidth:120,
      prop: 'remarks',
    },
    {
      label: '班级',
      prop: 'classCode',
      editDisabled:true,
      editDisplay:false,
    },
    {
      label: '学号',
      prop: 'stuNo',
      editDisabled:true,
      editDisplay:true,
    },
    {
      label: '姓名',
      prop: 'realName',
      editDisabled:true,
      editDisplay:true
    },
    {
      label: '是否缴费',
      prop: 'payStatus',
      type:"select",
      dicUrl: '/admin/dict/item/type/finance_pay_status',
      props:{
        label:'label',
        value:'value'
      },
      editDisabled:true,
      editDisplay:false,
    },
    {
      label: '电话',
      prop: 'phone',
      rules:[
        { validator: function (rule, value, callback) {
            var reg=/^1[3456789]\d{9}$/;
            if(!reg.test(value)){
              callback(new Error('请输入有效的手机号码'));
            }else{
              callback()
            }
          }, trigger: 'blur' }
      ]
    },
    {
      label: '生源',
      prop: 'education',
      type:"select",
      dicUrl: '/admin/dict/item/type/pre_school_education',
      editDisabled:true,
      editDisplay:false,
    },
    {
      label: '学籍',
      prop: 'enrollStatus',
      type:"select",
      dicUrl: '/admin/dict/item/type/enroll_status',
      editDisabled:true,
      editDisplay:false,
    },
    {
      label: '在校状态',
      prop: 'stuStatus',
      type:"select",
      dicUrl: '/admin/dict/item/type/student_status',
      editDisabled:true,
      editDisplay:false,
    },
    {
      label: '材料费',
      prop: 'clf',
    },
    {
      label: '代办费',
      prop: 'dbf',
    },
    {
      label: '应缴',
      prop: 'payable',
      editDisabled:true,
      editDisplay:true,
    },
    {
      label: '已缴',
      prop: 'handed',
      editDisabled:true,
      editDisplay:true,

    },
    {
      label: '欠费',
      prop: 'arrears',
      editDisabled:true,
      editDisplay:true,
    },
  ]
}


export const tableOtherOption = {
  border: true,
  index: false,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  menuWidth:120,
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '临时收费项目',
      prop: 'normalId',
      type:'select',
      hide:true,
      search:true,
      addDisplay:true,
      editDisabled:true,
      editDisplay:false,
      dicUrl: '/finance/financetemporarysetting/list',
      props:{
        label:'settingName',
        value:'id'
      }
    },
    {
      label: '学院',
      prop: 'deptCode',
      width: '60%',//表格宽度
      search:true,
      searchFilterable:true,
      editDisabled:true,
      editDisplay:false,
      type:'select',
      dicUrl: '/basic/basicdept/getDeptList?secondFlag=1',
      props:{
        label:'deptName',
        value:'deptCode'
      },
    },
    {
      label: '专业',
      prop: 'majorCode',
      hide:true,
      // search:true,
      searchFilterable:true,
      editDisabled:true,
      editDisplay:false,
      type:'select',
      dicUrl: '/basic/major/getMajorNameList',
      props: {
        label: 'majorName',
        value: 'majorCode'
      }
    },
    {
      label: '班级',
      width: '50%',//表格宽度
      prop: 'classCode',
      search:true,
      editDisabled:true,
      editDisplay:false,
    },
    {
      label: '学号',
      width: '50%',//表格宽度
      prop: 'stuNo',
      search:true,
      editDisabled:true,
      editDisplay:true,
    },
    {
      label: '姓名',
      prop: 'realName',
      width: '50%',//表格宽度
      search:true,
      editDisabled:true,
      editDisplay:true
    },
    {
      label: '是否缴费',
      width: '50%',//表格宽度
      prop: 'payStatus',
      search:true,
      type:"select",
      dicUrl: '/admin/dict/item/type/finance_pay_status',
      props:{
        label:'label',
        value:'value'
      },
      editDisabled:true,
      editDisplay:false,
    },
    {
      label: '电话',
      prop: 'phone',
      width: '60%',//表格宽度
      rules:[
        { validator: function (rule, value, callback) {
            var reg=/^1[3456789]\d{9}$/;
            if(!reg.test(value)){
              callback(new Error('请输入有效的手机号码'));
            }else{
              callback()
            }
          }, trigger: 'blur' }
      ]
    },
    {
      label: '生源',
      prop: 'education',
      width: '50%',//表格宽度
      search:true,
      type:"select",
      dicUrl: '/admin/dict/item/type/pre_school_education',
      editDisabled:true,
      editDisplay:false,
    },
    {
      label: '学籍',
      prop: 'enrollStatus',
      width: '50%',//表格宽度
      search:true,
      type:"select",
      dicUrl: '/admin/dict/item/type/enroll_status',
      editDisabled:true,
      editDisplay:false,
    },
    {
      label: '在校状态',
      width: '60%',//表格宽度
      prop: 'stuStatus',
      search:true,
      type:"select",
      dicUrl: '/admin/dict/item/type/student_status',
      editDisabled:true,
      editDisplay:false,
    },
    // {
    //   label: '住宿',
    //   width: '60%',//表格宽度
    //   prop: 'isStay',
    //   editDisabled:true,
    //   editDisplay:false,
    // },
    {
      label: '材料费',
      width: '50%',//表格宽度
      prop: 'clf',
    },
    {
      label: '代办费',
      width: '50%',//表格宽度
      prop: 'dbf',
    },
    // {
    //   label: '中德班',
    //   width: '50%',//表格宽度
    //   prop: 'zdxf',
    // },
    // {
    //   label: '学费',
    //   prop: 'xf',
    //   editDisabled:false,
    //   editDisplay:true,
    // },
    // {
    //   label: '住宿费',
    //   width: '60%',//表格宽度
    //   prop: 'zsf',
    // },
    {
      label: '应缴',
      width: '50%',//表格宽度
      prop: 'payable',
      editDisabled:true,
      editDisplay:true,
    },
    {
      label: '已缴',
      width: '50%',//表格宽度
      prop: 'handed',
      editDisabled:true,
      editDisplay:true,

    },
    {
      label: '欠费',
      width: '50%',//表格宽度
      prop: 'arrears',
      editDisabled:true,
      editDisplay:true,
    },
    {
      label: '提交状态',
      width: '60%',//表格宽度
      prop: 'isSubmit',
      search:true,
      type:"select",
      dicUrl: '/admin/dict/item/type/normal_state',
      props:{
        label:'label',
        value:'value'
      },
      editDisabled:true,
      editDisplay:false,
    },
    {
      label: '备注',
      labelWidth:120,
      prop: 'remarks',
      slot:true
    },
    {
      label: '是否推送成功',
      width: '60%',//表格宽度
      prop: 'isTS',
      editDisabled:true,
      editDisplay:true
    },
    {
      label: '是否推送',
      width: '60%',//表格宽度
      prop: 'grade',
      search:true,
      hide: true,
      type:"select",
      dicUrl: '/admin/dict/item/type/isTS',
      props:{
        label:'label',
        value:'value'
      },
      editDisabled:true,
      editDisplay:false,
    },
  ]
}

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
	  {
      label: '主键',
      prop: 'id'
    },
	  {
      label: '创建人',
      prop: 'createBy'
    },
	  {
      label: '创建时间',
      prop: 'createTime'
    },
	  {
      label: '更新人',
      prop: 'updateBy'
    },
	  {
      label: '更新时间',
      prop: 'updateTime'
    },
	  {
      label: '删除标记',
      prop: 'delFlag'
    },
	  {
      label: '备注',
      prop: 'remarks'
    },
	  {
      label: '学号',
      prop: 'stuNo'
    },
	  {
      label: '姓名',
      prop: 'realName'
    },
	  {
      label: '经办人工号',
      prop: 'operater'
    },
	  {
      label: '经办人姓名',
      prop: 'operaterName'
    },
	  {
      label: '年份',
      prop: 'year'
    },
	  {
      label: '电话号码',
      prop: 'phone'
    },
	  {
      label: '付款码',
      prop: 'payCode'
    },
	  {
      label: '常规收费设置ID',
      prop: 'normalId'
    },
	  {
      label: '学院代码',
      prop: 'deptCode'
    },
	  {
      label: '学院名称',
      prop: 'deptName'
    },
	  {
      label: '专业代码',
      prop: 'majorCode'
    },
	  {
      label: '专业名称',
      prop: 'majorName'
    },
	  {
      label: '班级代码',
      prop: 'classCode'
    },
	  {
      label: '班级名称',
      prop: 'className'
    },
	  {
      label: '生源',
      prop: 'education'
    },
	  {
      label: '学籍状态',
      prop: 'enrollStatus'
    },
	  {
      label: '学生状态 1:在校 2：顶岗 3：离校 4：实习',
      prop: 'stuStatus'
    },
	  {
      label: '是否住宿(否/是(x))',
      prop: 'isStay'
    },
	  {
      label: '是否提交过 0 否 1是',
      prop: 'isSubmit'
    },
	  {
      label: '银行卡号',
      prop: 'bankCode'
    },
	  {
      label: '学费提交人',
      prop: 'submitName'
    },
	  {
      label: '业务id',
      prop: 'outId'
    },
	  {
      label: '年级',
      prop: 'grade'
    },
	  {
      label: '学制',
      prop: 'educationalSystem'
    },
  ]
}
