/*
 *    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 YES_OR_NO=[
  {
    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,
  dic: [],
  column: [
	  {
      label: '批次',
      prop: 'termId',
      type:'select',
      hide:true,
      search:true,
      dicUrl: '/stuwork/tuitionfreeterm/list',
      props:{
        label:'title',
        value:'id'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择批次表"
      }]
    },
	  {
      label: '学院',
      width:120,
      prop: 'deptCode',
      search:true,
      addDisplay:false,
      type:"select",
      dicUrl: '/basic/basicdept/getDeptList?secondFlag=1',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择学院"
      }]
    },
	  // {
    //   label: '学院名称',
    //   prop: 'deptName'
    // },
	  {
      label: '专业',
      prop: 'majorCode',
      addDisplay:false,
      type:'select',
      dicUrl: '/basic/major/getMajorNameList',
      props: {
        label: 'majorName',
        value: 'majorCode'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择专业"
      }]
    },
	  // {
    //   label: '专业名称',
    //   prop: 'majorName'
    // },
	  {
      width:80,
      label: '班主任',
      prop: 'teacherNo',
      addDisplay:false,
      type:'select',
      filterable:true,
      dicUrl:'/professional/teacherbase/TeacherBaseList',
      props:{
        label:'realName',
        value:'teacherNo'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择班主任"
      }]
    },
	  // {
    //   label: '班主任姓名',
    //   prop: 'teacherName'
    // },
	  {
      width:70,
      label: '入学年份',
      prop: 'grade',
      addDisplay:false,
      search:true
    },
	  {
      width:50,
      label: '年级',
      prop: 'gradeCurr',
      addDisplay:false,
      search:true
    },
	  {
      width:60,
      label: '班级',
      prop: 'classCode',
      searchFilterable:true,
      formslot:true,
      search:true,
      type:'select',
      dicUrl:'/basic/basicclass/list',
      props:{
        label: 'classNo',
        value: 'classCode',
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择班级"
      }]
    },
	  // {
    //   label: '班号',
    //   prop: 'classNo'
    // },
	  {
      label: '学号',
      prop: 'stuNo',
      addDisabled:true
      // formslot:true
    },
	  {
      width:80,
      label: '姓名',
      prop: 'realName',
      formslot:true,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择姓名"
      }]
    },
	  {
      width:50,
      label: '性别',
      prop: 'gender',
      addDisplay:false,
      type:"select",
      dicUrl: '/admin/dict/item/type/sexy',
      props:{
        label:'label',
        value:'value'
      },
    },
	  // {
    //   label: '学历',
    //   prop: 'education',
    //   type: 'select',
    //   dicUrl: '/admin/dict/item/type/education_type',
    //   props:{
    //     label:'label',
    //     value:'label'
    //   },
    //   addDisplay:false,
    // },
    {
      width:60,
      label: '生源',
      prop: 'education',
      type: 'select',
      dicUrl: '/admin/dict/item/type/pre_school_education',
      props:{
        label:'label',
        value:'value'
      },
    },
	  {
      label: '中职卡号',
      prop: 'bankCard',
      addDisplay:false,
      hide:true
    },
	  {
      width:80,
      label: '层次',
      prop: 'majorLevel',
      type:"select",
      dicUrl: '/admin/dict/item/type/basic_major_level',
      props:{
        label:'label',
        value:'value'
      },
      // hide:true
    },
	  {
      width:120,
      label: '联系电话',
      prop: 'phone',
      addDisplay:false,
    },
	  {
      label: '身份证号',
      prop: 'idCard',
      hide:true,
      addDisplay:false,
    },
	  {
      label: '金额',
      prop: 'money',
      type:'number',
      addDisplay:false,
      precision: 2,
      min:0,
    },
	  {
      label: '审核状态',
      prop: 'checkStatus',
      search:true,
      type:"select",
      addDisplay:false,
      dicData:YES_OR_NO,
      props:{
        label:'label',
        value:'value'
      },
    },
  ]
}
