/*
 *    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 global from "@/components/tools/commondict";

export const educationOptionForDialog={
 labelWidth: 120,
  column: [{
    label:'毕业时间',
    prop: 'graduateTime',
    type:'date',
    format:'yyyy-MM-dd',
    valueFormat:'yyyy-MM-dd HH:mm:ss',
    rules: [
      {
        required: true,
        message: '请输入毕业时间',
        trigger: 'blur'
      }
    ]
  },
    {
      label: '教育类型',
      prop: 'type',
      props:{
        label:'name',
        value:'id'
      },
      type:"select",
      dicUrl:'/professional/professionalacademiceducationtypeconfig/getAllTypeList',
      rules: [
        {
          required: true,
          message: '请选择教育类型',
          trigger: 'blur'
        }
      ]
    },
    {
      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: 'graduateSchool',
      rules: [
        {
          required: true,
          message: '请输入毕业学校',
          trigger: 'blur'
        }
      ]
    },
    {
      label:'所学专业',
      prop: 'major',
      rules: [
        {
          required: true,
          message: '请输入所学专业',
          trigger: 'blur'
        }
      ]
    },
    {
      label:'证书编码',
      prop: 'certificateNumber',
      row:true,
      span:24,
      rules: [
        {
          required: true,
          message: '请输入证书编码',
          trigger: 'blur'
        }
      ]
    },
    {
      label:'学历证书',
      prop: 'materialA',
      formslot:true
    },
    {
      label:'学位证书',
      prop: 'materialB',
      formslot:true,
    },
  ]
}


//职称
export const proOptionForDialog={
 labelWidth: 120,
  column: [
    {
    label:'职称等级',
    prop: 'professionalTitleConfigId',
    formslot:true,
    rules: [
      {
        required: true,
        message: '请选择职称等级',
        trigger: 'blur'
      }
      ]
    },
    {
      label:'专业技术职务',
      prop: 'majorStation',
      formslot:true,
      rules: [
        {
          required: true,
          message: '请选择专业技术职务',
          trigger: 'blur'
        }
      ]
    },
    {
      label:'取证时间',
      prop: 'certificateTime',
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      rules: [
        {
          required: true,
          message: '请选择取证时间',
          trigger: 'blur'
        }
      ]

    },
    {
      label:'职称任职时间',
      prop: 'inOfficeDate',
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss'

    },
    {
      label:'证书编号',
      prop: 'certificateNumber',
      rules: [
        {
          required: true,
          message: '请输入证书编号',
          trigger: 'blur'
        }
      ]
    },
    {
      label:'证明材料',
      prop: 'materialA',
      formslot:true
    },
  ]
}

//职业
export const workOptionForDialog={
 labelWidth: 120,
  column: [

    {
      label:'职业工种',
      prop: 'worker',
      formslot:true,
      rules: [
        {
          required: true,
          message: '请选择职业工种',
          trigger: 'blur'
        }
      ]
    },
    {
    label:'等级',
    prop: 'qualificationConfigId',
    formslot:true,
    rules: [
      {
        required: true,
        message: '请选择等级',
        trigger: 'blur'
      }
    ]
  },
    {
      label:'取证时间',
      prop: 'certificateTime',
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      rules: [
        {
          required: true,
          message: '请选择取证时间',
          trigger: 'blur'
        }
      ]

    },
    {
      label:'证书编号',
      prop: 'certificateNumber',
      rules: [
        {
          required: true,
          message: '请输入证书编号',
          trigger: 'blur'
        }
      ]
    },
    {
      label:'材料1',
      prop: 'materialA',
      formslot:true
    },
    // {
    //   label:'材料2',
    //   prop: 'materialB',
    // formslot:true,
    // },
    // {
    //   label:'材料3',
    //   prop: 'materialC',
    // formslot:true,
    // },
  ]
}


//教师资格证
export const teacherCertificate ={
 labelWidth: 120,
  column: [

    {
      label:'类型',
      prop: 'certificateConfId',
      type:'select',
      dicUrl:'/professional/professionalteachercertificateconf/getTeacherCertificateList',
      props:{
        label:'cretificateName',
        value:'id',
      },
      rules: [
        {
          required: true,
          message: '请选择学历',
          trigger: 'blur'
        }
      ]
    },
    {
      label:'证书编号',
      prop: 'certificateNumber',
      rules: [
        {
          required: true,
          message: '请输入证书编号',
          trigger: 'blur'
        }
      ]
    },
    {
      label:'证明材料',
      prop: 'materialA',
      formslot:true
    },
    // {
    //   label:'证明材料2',
    //   prop: 'materialB',
    //   formslot:true
    // },
  ]
}

//荣誉
export const honorForDialog = {
  labelWidth: 120,
  column: [
	  {
      label: '荣誉',
      prop: 'honor',
      rules: [
        {
          required: true,
          message: '请填写荣誉',
          trigger: 'blur'
        }
      ]
    },
	  {
      label: '表彰单位',
      prop: 'honorCompany',
      rules: [
        {
          required: true,
          message: '请填写表彰单位',
          trigger: 'blur'
        }
      ]
    },
	  {
      label: '年份',
      prop: 'year',
      type: 'year',
      format:'yyyy',
      valueFormat:'yyyy',
      rules: [
        {
          required: true,
          message: '请输入年份',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '证明材料',
      prop: 'materialA',
      formslot:true
    },
  ]
}

//人员调动
export const stationChangeDialog = {
    labelWidth: 120,
    column: [
      {
        label: '工号',
        prop: 'teacherNo',
        formslot:true,
      },
      {
        label: '姓名',
        prop: 'realName',
        formslot:true
      },
      {
        label: '原部门名称',
        prop: 'deptCode',
        row:true,
        formslot:true,
      },
      {
        label: '现二级部门*',
        prop:'newDeptCode',
         formslot:true,

      },
      {
        label: '现子级部门',
        prop:'newSecDeptCode',
        formslot:true

      },
      {
        label: '调令日期',
        prop: 'changeDate',
        type:'date',
        format:'yyyy-MM-dd',
        valueFormat:'yyyy-MM-dd',
        rules: [
          {
            required: true,
            message: '请选择日期',
            trigger: 'blur'
          }
        ]

      },
      {
        label: '岗位类型',
        prop: 'pos',
        type:'select',
        dicData:global.STATION_TYPE,
        props:{
          label:'label',
          value:'value'
        },
        rules: [
          {
            required: true,
            message: '请选择岗位类型',
            trigger: 'blur'
          }
        ]

      },
       {
        label: '备注',
        prop: 'remarks',
        type:"textarea",
        span:24,
       },
    ]
  }

//党员调动
export const partChangeOption = {
  column: [
    {
      label: '工号',
      prop: 'teacherNo',
      formslot:true
    },
    {
      label: '用户名',
      prop: 'realName',
      formslot:true
    },
    {
      label: '原支部名',
      prop: 'oldBranchName',
      formslot:true,
    },
    {
      label: '现支部名',
      prop: 'branchName',
      formslot:true,
      rules: [
        {
          required: true,
          message: '请选择现支部',
          trigger: 'blur'
        }
      ]
    },
    // {
    //   label: '党费交至几月',
    //   prop: 'feeTime',
    //   type:'month',
    //   format:'yyyy-MM',
    //   valueFormat:'yyyy-MM-dd HH:mm:ss',
    //   rules: [
    //     {
    //       required: true,
    //       message: '请选择时间',
    //       trigger: 'blur'
    //     }
    //   ]
    // },
    {
      label:'党费',
      prop:"partyFee",
      type:'number',
      precision:2
    },
    {
      label: '变动时间',
      prop: 'changeTime',
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      rules: [
        {
          required: true,
          message: '请选择变动时间',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '备注',
      prop: 'remarks',
      type:'text'
    },
  ]
}
