/*
 *    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.
 *
 */

import {YES_OR_NO} from "../aj/scjajclassinfo";
import  global  from '@/components/tools/commondict'

export const tableOption = {
  border: true,
  index: false,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  maxHeight:600,
  column: [
    /*{
      label: '主键',
      prop: 'id'
    },*/
   /* {
      label: '创建人',
      prop: 'createBy'
    },*/

    /*{
      label: '更新人',
      prop: 'updateBy'
    },
    {
      label: '更新时间',
      prop: 'updateTime'
    },
    {
      label: '删除标志位',
      prop: 'delFlag'
    },*/

    /*{
      label: '租户id',
      prop: 'tenantId'
    },*/
    {
      label: '是否退休',
      prop: 'tied',
      type:'select',
      dicData: global.YES_OR_NO,
      fixed: true,
      props:{
        label:'label',
        value:'value'
      }
    },
    {
      label: '姓名',
      prop: 'realName',
      search:true,
      fixed: true,
    },
    {
      label: '工号',
      prop: 'teacherNo',
      search:true,
    },

    {
      label: '性别',
      prop: 'sex',
      props:{
        label:'label',
        value:'value'
      },
      type:"radio",
      dicUrl:'/admin/dict/item/type/sexy',
      addDisplay: false,
      editDisabled: true,
    },
    {
      label: '部门',
      prop: 'deptName',
    },
    {
      label: '学历学位',
      prop: 'dgreeName',
    },
    {
      label: '退休年份',
      prop: 'retireDate',
      hide:true,
      search:true,
      type:'year',
      format:'yyyy',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
    {
      label:'职称等级',
      search:true,
      prop: 'pfTitleId',
      type:'select',
      dicUrl:`/professional/professionaltitlelevelconfig/getProfessionalTitleList`,
      props:{
        label:'professionalTitle',
        value:'id',
      },
    },
    {
      label: '岗位级别',
      prop: 'stationLevelName',
    },
    {
      label:'职业资格等级',
      prop: 'workId',
      type:'select',
      dicUrl:`/professional/professionalqualificationconfig/getLevelList`,
      props:{
        label:'levelName',
        value:'id',
      }
    },
    {
      label:'职业资格工种',
      prop: 'workName',
      hide:true
    },
    {
      label:'教师上岗证',
      prop: 'teacherCer',
    },
    {
      label:'中等教师资格证',
      prop: 'midCer',
    },
    {
      label:'高校教师资格证',
      prop: 'highCer',
    },
    {
      label:'职务等级',
      prop: 'stationDutyLevelId',
      type:'select',
      hide:true,
      search:true,
      dicUrl:`/professional/professionalstationdutylevel/getStationDutyLevelList`,
      props:{
        label:'stationDutyLevelName',
        value:'id',
      },
      rules: [
        {
          required: true,
          message: '请选择专业技术职务',
          trigger: 'blur'
        }
      ]
    },


    {
      label: '用工性质',
      prop: 'employmentNature',
      type: 'select',
      dicUrl:`/professional/professionalemploymentnature/getEmploymentNatureList`,
      props:{
        label:'employmentNatureName',
        value:'id',
      },
    },

    {
      label: '出生年月',
      prop: 'birthday',
      hide:true,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
    {
      label: '民族',
      prop: 'national',
      hide:true,
      type:'select',
      dicUrl:'/basic/basicnation/getNationalList',
      props:{
        label:'nationName',
        value:'nationCode'
      },
    },
    {
      label: '政治面貌',
      prop: 'politicsStatus',
      type: 'select',
      hide:true,
      search:true,
      props:{
        label:'politicsStatus',
        value:'id'
      },
      dicUrl:'/basic/basicpoliticsstatusbase/getPoliticsStatusList',

    },
    {
      label: '身份证',
      prop: 'idCard',
      hide: true,
      rules:[{
        required:true,
        message:'请填写身份证号',
        trigger:'blur'
      }],
    },
    {
      label: '籍贯',
      prop: 'nativePlace',
      hide:true
    },
    {
      label: '出生地',
      prop: 'birthPlace',
      hide:true

    },
    {
      label: '健康状况',
      prop: 'health',
      hide:true
    },
    {
      label: '宅电',
      prop: 'homePhone',
      hide:true

    },
    {
      label: '手机',
      prop: 'telPhone',
    },
    {
      label: '手机2',
      prop: 'telPhoneTwo',
      hide:true
    },
    {
      label: '家庭住址',
      prop: 'homeAddress'
    },
    {
      label: '银行卡号',
      prop: 'bankNo',
      hide:true
    },
    {
      label: '备注',
      prop: 'remarks',
      hide:true

    },

    {
      label: '授课类型',
      prop: 'teacherCate',
      type:'select',
      search:true,
      dicUrl:'/admin/dict/item/type/'+global.TEACHER_CATE,
      props:{
        label:'label',
        value:'value'
      }
    },

    {
      label: '允许进出',
      prop: 'inoutFlag',
      type:'select',
      search:true,
      hide:true,
      props:{
        label:'label',
        value:'value'
      },
      dicData:[
        {label:'是',value:'1'},
        {label:'否',value:'0'},
      ]
    },
    {
      label: '创建时间',
      prop: 'createTime',
      addDisplay:false,
      editDisplay: false,
      hide:true

    },

  ]

}

//社会关系
export const realtionOption={
    keyId:'id',
    addBtn:false,
    editBtn:false,
    addRowBtn:true,
    cellBtn:true,
    column: [{
      label:'称谓',
      prop: 'title',
      type:'select',
      cell: true,
      dicUrl:'/admin/dict/item/type/family_member_type',
      rules: [
        {
          required: true,
          message: '请输入称谓',
          trigger: 'blur'
        }
        ]
    },
      {
        label:'姓名',
        prop: 'realName',
        cell: true,
        rules: [
          {
            required: true,
            message: '请输入姓名',
            trigger: 'blur'
          }
          ]
      },
      {
        label:'出生年月',
        prop: 'birthday',
        type:'date',
        cell: true,
        format:'yyyy-MM-dd',
        valueFormat:'yyyy-MM-dd HH:mm:ss',
        rules: [
          {
            required: true,
            message: '请输入出生年月',
            trigger: 'blur'
          }
        ]
      },

      {
        label:'政治面貌',
        prop: 'politicsStatusId',
        type:'select',
        cell: true,
        dicUrl:`/basic/basicpoliticsstatusbase/getPoliticsStatusDict`,
        props:{
          label:'name',
          value:'id',
        }
      },
  {
    label:'工作单位及职务',
    prop: 'workStation',
    cell: true,

  },
  ]
}

export const realtionOptionForLook={
  addBtn:false,
  editBtn:false,
  delBtn:false,
  addRowBtn:true,
  cellBtn:true,
  column: [{
    label:'称谓',
    prop: 'title',
    type:'select',
    cell: true,
    dicUrl:'/admin/dict/item/type/family_member_type',
  },
    {
      label:'姓名',
      prop: 'realName',
      cell: true
    },
    {
      label:'生日',
      prop: 'birthday',
      type:'date',
      cell: true,
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss'
    },

    {
      label:'政治面貌',
      prop: 'politicsStatusId',
      type:'select',
      cell: true,
      dicUrl:`/basic/basicpoliticsstatusbase/getPoliticsStatusDict`,
      props:{
        label:'name',
        value:'id',
      }
    },
    {
      label:'工作单位及职务',
      prop: 'workStation',
      cell: true,
    },
  ]
}


//学历
export const educationOption={
  keyId:'id',
  addBtn:false,
  editBtn:false,
  addRowBtn:false,
  cellBtn:false,
  delBtn:false,
  menu:false,
  column: [
    {
    label:'毕业时间',
    prop: 'graduateTime',
    cell: true,
    type:'date',
    format:'yyyy-MM-dd',
    valueFormat:'yyyy-MM-dd HH:mm:ss',
    rules: [
      {
        required: true,
        message: '请输入毕业时间',
        trigger: 'blur'
      }
    ]
  },
    {
      label:'学历',
      prop: 'qualificationConfigId',
      type:'select',
      cell: true,
      dicUrl:`/professional/academicqualificationsconfig/getQualificationList`,
      props:{
        label:'qualificationName',
        value:'id',
      },
      rules: [
        {
          required: true,
          message: '请选择学历',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '教育类型',
      prop: 'type',
      cell:true,
      props:{
        label:'name',
        value:'id'
      },
      type:"select",
      dicUrl:'/professional/professionalacademiceducationtypeconfig/getAllTypeList',
      addDisplay: false,
      editDisabled: true,
    },
    {
      label:'学位',
      prop: 'degreeConfigId',
      type:'select',
      cell: true,
      dicUrl:`/professional/professionalacademicdegreeconfig/getDegreeList`,
      props:{
        label:'degreeName',
        value:'id',
      },
      rules: [
        {
          required: true,
          message: '请选择学位',
          trigger: 'blur'
        }
      ]

    },
    {
      label:'毕业学校',
      prop: 'graduateSchool',
      cell: true,
      rules: [
        {
          required: true,
          message: '请输入毕业学校',
          trigger: 'blur'
        }
      ]
    },
    {
      label:'所学专业',
      prop: 'major',
      cell: true,
      rules: [
        {
          required: true,
          message: '请输入所学专业',
          trigger: 'blur'
        }
      ]
    },
    {
      label:'证书编码',
      prop: 'certificateNumber',
      cell: true,
      rules: [
        {
          required: true,
          message: '请输入证书编码',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '学历证书附件',
      prop: 'qualificationImg',
      slot:true
    },
    {
      label: '学位证书附件',
      prop: 'degreeImg',
      slot:true
    },
    {
      label:'更新时间',
      prop: 'createTime',
      cell: true,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
  ]
}

export const educationOptionForLook={
  addBtn:false,
  editBtn:false,
  delBtn:false,
  menu:false,
  column: [{
    label:'毕业时间',
    prop: 'graduateTime',
    type:'date',
    format:'yyyy-MM-dd',
    valueFormat:'yyyy-MM-dd HH:mm:ss'

  },
    {
      label:'学历',
      prop: 'qualificationConfigId',
      type:'select',
      dicUrl:`/professional/academicqualificationsconfig/getQualificationList`,
      props:{
        label:'qualificationName',
        value:'id',
      }

    },
    {
      label:'学位',
      prop: 'degreeConfigId',
      type:'select',
      dicUrl:`/professional/professionalacademicdegreeconfig/getDegreeList`,
      props:{
        label:'degreeName',
        value:'id',
      }


    },
    {
      label: '教育类型',
      prop: 'type',
      props:{
        label:'name',
        value:'id'
      },
      type:"select",
      dicUrl:'/professional/professionalacademiceducationtypeconfig/getAllTypeList',
      addDisplay: false,
      editDisabled: true,
    },
    {
      label:'毕业学校',
      prop: 'graduateSchool',

    },
    {
      label:'所学专业',
      prop: 'major',

    },
    {
      label:'证书编码',
      prop: 'certificateNumber',

    },
    {
      label: '学历证书附件',
      prop: 'qualificationImg',
      labelWidth:200,
      slot:true
    },
    {
      label: '学位证书附件',
      prop: 'degreeImg',
      labelWidth:200,
      slot:true
    },
    {
      label:'更新时间',
      prop: 'createTime',
      cell: true,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
  ]
}

//职称
export const proOption={
  keyId:'id',
  addBtn:false,
  editBtn:false,
  addRowBtn:false,
  cellBtn:false,
  menu:false,
  column: [{
    label:'职称等级',
    prop: 'professionalTitleConfigId',
    type:'select',
    cell: true,
    dicUrl:`/professional/professionaltitlelevelconfig/getProfessionalTitleList`,
    props:{
      label:'professionalTitle',
      value:'id',
    },
    rules: [
      {
        required: true,
        message: '请选择职称等级',
        trigger: 'blur'
      }
      ]
  },
    {
      label:'专业技术职务',
      prop: 'majorStation',
      type:'select',
      cell: true,
      dicUrl:`/professional/professionalmajorstation/getMajorStationList`,
      props:{
        label:'majorStationName',
        value:'id',
      },
      rules: [
        {
          required: true,
          message: '请选择专业技术职务',
          trigger: 'blur'
        }
      ]
    },
    {
      label:'取证时间',
      prop: 'certificateTime',
      type:'date',
      cell:true,
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      rules: [
        {
          required: true,
          message: '请选择取证时间',
          trigger: 'blur'
        }
      ]

    },
    {
      label:'职称任职时间',
      prop: 'inOfficeDate',
      type:'date',
      cell:true,
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      rules: [
        {
          required: true,
          message: '请选择职称任职时间',
          trigger: 'blur'
        }
      ]

    },
    {
      label:'证书编号',
      prop: 'certificateNumber',
      cell:true,
      rules: [
        {
          required: true,
          message: '请输入证书编号',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '证明材料',
      prop: 'evidence',
      slot:true,
      span:24,
    },
    {
      label:'更新时间',
      prop: 'createTime',
      cell: true,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
  ]
}

export const proOptionForLook={
  addBtn:false,
  editBtn:false,
  delBtn:false,
  menu:false,
  column: [{
    label:'职称等级',
    prop: 'professionalTitleConfigId',
    type:'select',
    dicUrl:`/professional/professionaltitlelevelconfig/getProfessionalTitleList`,
    props:{
      label:'professionalTitle',
      value:'id',
    },
  },
    {
      label:'专业技术职务',
      prop: 'majorStation',
      type:'select',
      dicUrl:`/professional/professionalmajorstation/getMajorStationList`,
      props:{
        label:'majorStationName',
        value:'id',
      },

    },
    {
      label:'取证时间',
      prop: 'certificateTime',
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
    {
      label:'职称任职时间',
      prop: 'inOfficeDate',
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
    {
      label:'证书编号',
      prop: 'certificateNumber',
    },
    {
      label: '证明材料',
      prop: 'evidence',
      slot:true,
      span:24,
    },
    {
      label:'更新时间',
      prop: 'createTime',
      cell: true,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
  ]
}

//职业
export const workOption={
  keyId:'id',
  addBtn:false,
  editBtn:false,
  addRowBtn:false,
  cellBtn:false,
  menu:false,
  column: [
    {
      label:'职业工种',
      prop: 'worker',
      cell: true,
      type: 'select',
      filterable:true,
      dicUrl:`/professional/professionalworktype/getWorkTypeList`,
      props:{
        label:'workName',
        value:'id',
      }
    },
    {
    label:'等级',
    prop: 'qualificationConfigId',
    cell: true,
    type:'select',
    dicUrl:`/professional/professionalqualificationconfig/getLevelList`,
    props:{
      label:'levelName',
      value:'id',
    }
  },
    {
      label:'取证时间',
      prop: 'certificateTime',
      type:'date',
      cell: true,
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      rules: [
        {
          required: true,
          message: '请选择取证时间',
          trigger: 'blur'
        }
      ]

    },

    {
      label:'证书编号',
      prop: 'certificateNumber',
      cell: true,
    },
    {
      label: '证明材料',
      prop: 'evidence',
      row:true,
      slot:true,
      span:24,
    },
    {
      label:'更新时间',
      prop: 'createTime',
      cell: true,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
  ]
}


export const workOptionForLook={
  addBtn:false,
  editBtn:false,
  delBtn:false,
  menu:false,
  column: [
    {
      label:'职业工种',
      prop: 'worker',
      type: 'select',
      dicUrl:`/professional/professionalworktype/getWorkTypeList`,
      props:{
        label:'workName',
        value:'id',
      }
    },
    {
      label:'等级',
      prop: 'qualificationConfigId',
      type:'select',
      dicUrl:`/professional/professionalqualificationconfig/getLevelList`,
      props:{
        label:'levelName',
        value:'id',
      }
    },
    {
      label:'取证时间',
      prop: 'certificateTime',
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',

    },

    {
      label:'证书编号',
      prop: 'certificateNumber',
    },
    {
      label:'更新时间',
      prop: 'createTime',
      cell: true,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
  ]
}

//政治面貌
export const politicsOption={
  keyId:'id',
  addBtn:false,
  editBtn:false,
  addRowBtn:true,
  cellBtn:true,
  column: [{
    label:'政治面貌',
    prop: 'politicsStatusId',
    cell: true,
    type: 'select',
    dicUrl: `/basic/basicpoliticsstatusbase/getPoliticsStatusList`,
    props:{
      label:'politicsStatus',
      value:'id'
    },
    rules: [
      {
        required: true,
        message: '请选择政治面貌',
        trigger: 'blur'
      }
    ]
  },

    {
      label:'加入时间',
      prop: 'joinTime',
      type:'date',
      cell: true,
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      rules: [
        {
          required: true,
          message: '请选择加入时间',
          trigger: 'blur'
        }
      ]

    },
    {
      label:'转正时间',
      prop: 'correctionTime',
      type:'date',
      cell: true,
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      rules: [
        {
          required: true,
          message: '请选择转正时间',
          trigger: 'blur'
        }
      ]

    },
    {
      label:'更新时间',
      prop: 'createTime',
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },

  ]
}

export const politicsOptionForLook={
  addBtn:false,
  editBtn:false,
  delBtn:false,
  cellBtn:true,
  addRowBtn:true,
  column: [{
    label:'政治面貌',
    prop: 'politicsStatusId',
    type: 'select',
    dicUrl: `/basic/basicpoliticsstatusbase/getPoliticsStatusList`,
    props:{
      label:'politicsStatus',
      value:'id'
    },
    cell: true,
  },

    {
      label:'加入时间',
      prop: 'joinTime',
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      cell: true,
    },
    {
      label:'转正时间',
      prop: 'correctionTime',
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      cell: true,
    },
    {
      label:'更新时间',
      prop: 'createTime',
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },

  ]
}

//教师资格证
export const teacherZgzOption={
  keyId:'id',
  addBtn:false,
  editBtn:false,
  addRowBtn:false,
  delBtn:false,
  menu:false,
  column: [
    {
    label:'证书名称',
    prop: 'certificateConfId',
    cell: true,
    type: 'select',
    dicUrl: `/professional/professionalteachercertificateconf/getTeacherCertificateList`,
    props:{
      label:'cretificateName',
      value:'id'
    },
    rules: [
      {
        required: true,
        message: '请选择政治面貌',
        trigger: 'blur'
      }
    ]
  },
    {
      label:'证书编号',
      prop: 'certificateNumber',
      type:'date',
    },

    {
      label:'证明材料',
      prop: 'evidence',
      slot:true
    },
    {
      label:'更新时间',
      prop: 'createTime',
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
  ]
}


export const teacherMissOption={
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  addBtn:false,
  editBtn:false,
  addRowBtn:false,
  delBtn:false,
  menu:false,
  column: [{
      label:'部门',
      prop: 'deptName'
    },
    {
      label:'工号',
      prop: 'teacherNo',
      search:true
    },
    {
      label:'姓名',
      prop: 'realName',
      search:true
    },
    {
      label:'性别',
      prop: 'sex',
      // props:{
      //   label:'label',
      //   value:'value'
      // },
      // dicUrl:'/admin/dict/item/type/sexy'
    },
    {
      label:'联系电话1',
      prop: 'telPhone'
    },
    {
      label:'联系电话2',
      prop: 'telPhoneTwo'
    },
    {
      label:'缺填字段',
      prop: 'missInfo'
    }
  ]
}

export const teacherHonorOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  delBtn: false,
  editBtn: false,
  menu:false,
  addBtn: false,
  column: [
    {
      label: '荣誉',
      prop: 'honor'
    },
    {
      label: '表彰单位',
      prop: 'honorCompany'
    },
    {
      label: '年份',
      prop: 'year',
      type: 'year',
      format:'yyyy',
      valueFormat:'yyyy'
    },
    {
      label: '证明材料',
      prop: 'attachment',
      slot:true,
      formslot:true
    },
  ]
}

export const teacherPaperOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  menu:false,

  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  dialogHeight:700,
  dialogWidth:"90%",
  column: [
    {
      label:'证明材料',
      prop:"zmcl",
      slot:true,
      display:false
    },
    {
      label: '作者',
      prop: 'author',
      rules: [{
        required: true,
        message: '请输入作者',
        trigger: 'blur'
      }]
    },
    {
      label: '第二作者',
      prop: 'secondAuthor'
    },
    {
      label: '论文名称',
      prop: 'title',
      rules: [{
        required: true,
        message: '请输入论文名称',
        trigger: 'blur'
      }]
    },
    {
      label: '论文类型',
      prop: 'paperConfigId',
      type: 'select',
      dicUrl: '/professional/professionalpaperconfig/getPaperConfigList',
      props:{
        label:'typeName',
        value:'id'
      },
      rules: [{
        required: true,
        message: '请选择论文类型',
        trigger: 'blur'
      }]
    },
    {
      label: '发表刊物名称',
      prop: 'nameOfPublication'
    },
    {
      label: '发表时间',
      prop: 'dateOfPublication',
      type:'datetime',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      rules: [{
        required: true,
        message: '请填写发表时间',
        trigger: 'blur'
      }]
    },
    {
      label: '刊物主办单位',
      prop: 'publicationsCompetentUnit',
    },
    {
      label: '刊物主管单位',
      prop: 'publicationsManageUnit',
    },
    {
      label: '颁奖单位',
      prop: 'awardingUnit',
    },
    {
      label: '获奖等级',
      prop: 'rewardLevel',
    },
    {
      label: '获奖时间',
      prop: 'rewardTime',
      type:'datetime',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },
    {
      label: '备注',
      prop: 'remarks',
    },

    {
      label:'*知网截图',
      prop:"knowdgeImg",
      formslot:true,
      hide:true,
    },
    {
      label:'*刊物封面',
      prop:"pubCover",
      formslot:true,
      hide:true
    },
    {
      label:'*目录页',
      prop:"cateImg",
      formslot:true,
      hide:true
    },
    {
      label:'*内容页',
      prop:"contentImg",
      formslot:true,
      hide:true
    }
  ]
}

export const teacherMaterialOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  menu:false,

  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label:'证明材料',
      prop:"zmcl",
      slot:true,
      display:false
    },
    {
      label: '教材名称',
      prop: 'materialName',
      rules: [{
        required: true,
        message: '请填写教材名称',
        trigger: 'blur'
      }]
    },
    {
      label: '教材类别',
      prop: 'materialConfigId',
      type: 'select',
      dicUrl: '/professional/professionalteachingmaterialconfig/getTeachingMaterialList',
      props:{
        label:'typeName',
        value:'id'
      },
      rules: [{
        required: true,
        message: '请选择类别',
        trigger: 'blur'
      }]
    },
    {
      label: '主编',
      prop: 'editor',
      rules: [{
        required: true,
        message: '请填写主编',
        trigger: 'blur'
      }]
    },
    {
      label: '副主编',
      prop: 'secondEditor'
    },
    {
      label: '参编',
      prop: 'joinEditor'
    },
    {
      label: '编写字数(千字)',
      prop: 'words'
    },
    {
      label: '出版单位',
      prop: 'publishCompany'
    },
    {
      label: '出版时间',
      prop: 'publishTime',
      type:'datetime',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss'
    },
    {
      label: '备注',
      prop: 'remarks',
    },
    {
      label:'*教材封面',
      prop:"mateCover",
      formslot:true,
      hide:true,
    },
    {
      label:'*出版页',
      prop:"pubImg",
      formslot:true,
      hide:true
    },
  ]
}

export const teacherTopicListOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  menu:false,

  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  dialogHeight:700,
  dialogWidth:"90%",
  labelWidth:150,
  column: [
    {
      label:'证明材料',
      prop:"zmcl",
      slot:true,
      display:false
    },
    {
      label: '课题所属部门',
      prop: 'deptCode',
      rules: [{
        required: true,
        message: '请填写所属部门',
        trigger: 'blur'
      }]
    },
    {
      label: '课题名称',
      prop: 'topicName',
      rules: [{
        required: true,
        message: '请填写课题名称',
        trigger: 'blur'
      }]
    },
    {
      label: '课题负责人',
      prop: 'topicLeader',
      rules: [{
        required: true,
        message: '请填写课题负责人',
        trigger: 'blur'
      }]
    },
    {
      label: '课题参与人',
      prop: 'topicJoiner'
    },
    {
      label: '课题来源',
      prop: 'topicSourceConfigId',
      type: 'select',
      dicUrl: '/professional/professionaltopicsourceconfig/getTopicSourceList',
      props: {
        label:'sourceName',
        value:'id'
      },
      rules: [{
        required: true,
        message: '请选择来源',
        trigger: 'blur'
      }]
    },
    {
      label: '级别',
      prop: 'topicLevelConfigId',
      type: 'select',
      dicUrl: '/professional/professionaltopiclevelconfig/getTopicLevelList',
      props: {
        label:'levelName',
        value:'id'
      },
      rules: [{
        required: true,
        message: '请选择级别',
        trigger: 'blur'
      }]
    },
    {
      label: '结题时间',
      prop: 'finishTime',
      type:'datetime',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      rules: [{
        required: true,
        message: '请选择结题时间',
        trigger: 'blur'
      }]
    },
    {
      label: '颁奖单位',
      prop: 'awardingUnit'
    },
    {
      label: '获奖等级',
      prop: 'awardingLevel'
    },
    {
      label: '备注',
      prop: 'remarks',
      hide:true
    },
    {
      label:'*立项申报书',
      prop:"projectApp",
      formslot:true,
      hide:true
    },
    {
      label:'*结题证书',
      prop:"conclusionBook",
      formslot:true,
      hide:true
    },
    {
      label:'*结题报告',
      prop:"conclusionReport",
      formslot:true,
      hide:true
    },

    {
      label:'*其他材料',
      prop:"otherImg",
      formslot:true,
      hide:true
    },

  ]
}

export const stationChangeOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  menu:false,
  dic: [],
  column: [
    {
      label: '原部门名称',
      prop: 'oldDeptName',
    },
    {
      label: '现部门名称',
      prop: 'newDeptName'
    },
    {
      label: '调令日期',
      prop: 'changeDate',
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd'
    },
  ]
}

export const partyChangeOption = {
  border: true,
  index: true,
  menu:false,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '原支部名称',
      prop: 'oldBranchName'
    },
    {
      label: '现支部名称',
      prop: 'branchName'
    },
    // {
    //   label: '党费交至几月',
    //   prop: 'feeTime'
    // },
    {
      label:'党费',
      prop:"partyFee",
      type:'number',
      precision:2
    },
    {
      label: '变动时间',
      prop: 'changeTime',
      type:'date',
      format:'yyyy-MM-dd',

    },
    {
      label: '创建时间',
      prop: 'createTime'
    },
    {
      label: '备注',
      prop: 'remarks'
    },
  ]
}


export const simpleTableOption = {
  border: true,
  index: false,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  maxHeight:600,
  menu:false,
  column: [
    {
      label: '姓名',
      prop: 'realName',

      fixed: true,
    },
    {
      label: '工号',
      prop: 'teacherNo',
    },
    {
      label: '手机',
      prop: 'telPhone',
    },
    {
      label: '身份证',
      prop: 'idCard',
    },
    {
      label: '性别',
      prop: 'sex',
      props:{
        label:'label',
        value:'value'
      },
      type:"radio",
      dicUrl:'/admin/dict/item/type/sexy',
    },
    {
      label: '部门',
      prop: 'deptName',
    },
    {
      label: '学历',
      prop: 'dgreeName',
    },
    {
      label: '学位',
      prop: 'dgreeNameA',
    },
    {
      label:'职称等级',
      prop: 'pfTitleId',
      type:'select',
      dicUrl:`/professional/professionaltitlelevelconfig/getProfessionalTitleList`,
      props:{
        label:'professionalTitle',
        value:'id',
      },
    },
    {
      label: '岗位级别',
      prop: 'stationLevelName',
    },
    {
      label:'职业资格等级',
      prop: 'workId',
      type:'select',
      dicUrl:`/professional/professionalqualificationconfig/getLevelList`,
      props:{
        label:'levelName',
        value:'id',
      }
    },
    {
      label:'职业资格工种',
      prop: 'workName',
      hide:true
    },
    {
      label:'教师上岗证',
      prop: 'teacherCer',
    },
    {
      label:'中等教师资格证',
      prop: 'midCer',
    },
    {
      label:'高校教师资格证',
      prop: 'highCer',
    },
    {
      label: '用工性质',
      prop: 'employmentNature',
      type: 'select',
      dicUrl:`/professional/professionalemploymentnature/getEmploymentNatureList`,
      props:{
        label:'employmentNatureName',
        value:'id',
      },
    },
    {
      label: '岗位类别',
      prop: 'stationTypeId',
      type: 'select',
      dicUrl:`/professional/professionalstationtype/getStationTypeList`,
      props:{
        label:'typeName',
        value:'id',
      },
    },
    {
      label:'任现岗位职级时间',
      prop: 'stationDate',
    },

  ]

}

