/*
 *    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: 'jobFairId',
    //   search:true,
    //   searchFilterable:true,
    //   hide:true,
    //   addDisplay:false,
    //   editDisplay: false,
    //   type:'select',
    //   dicUrl:'/work/jobfair/getJobFairList',
    //   props:{
    //     label:'title',
    //     value:'id'
    //   },
    // },
    {
      label:'学院',
      prop:'deptCode',
      search:true,
      addDisplay:false,
      editDisplay: false,
      type:'select',
      dicUrl: '/basic/basicdept/getDeptList?secondFlag=1',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
    },
    {
      label:'专业',
      prop:'majorCode',
      addDisplay:false,
      editDisplay: false,
      type:'select',
      dicUrl: '/basic/major/getMajorNameList',
      props: {
        label: 'majorName',
        value: 'majorCode'
      },
    },
    {
      label: '班级',
      prop: 'classCode',
      editDisabled:true,
      formslot:true,
      search:true,
      searchFilterable:true,
      filterable:true,
      type:'select',
      dicUrl:'/basic/basicclass/list',
      props:{
        label: 'classNo',
        value: 'classCode',
      },
    },
	  {
      label: '学号',
      prop: 'stuNo',
      editDisabled:true,
      formslot:true,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择学号"
      }]
    },
	  {
      label: '姓名',
      prop: 'realName',
      search:true,
      addDisplay:false,
      editDisplay: false,
    },
    {
      label: '电话',
      prop: 'phone',
      addDisplay:false,
      editDisplay: false,
    },
	  {
      label: '月份',
      prop: 'month',
      // search:true,
      editDisabled:true,
      type:'month',
      format:'yyyy-MM',
      valueFormat:'yyyy-MM',
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择时间"
      }]
    },
	  // {
    //   label: '联系人',
    //   prop: 'contactName',
    //   rules: [{
    //     required: true,
    //     trigger: 'blur',
    //     message:"请输入联系人"
    //   }]
    // },
	  {
      label: '联系方式',
      prop: 'contactType',
      search:true,
      type:'select',
      dicUrl:'/admin/dict/item/type/contact_type',
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择联系方式"
      }]
    },
	  {
      label: '联系时间',
      prop: 'contactDate',
      type:'datetime',
      format:'yyyy-MM-dd HH:mm',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择联系时间"
      }]
    },
    {
      label: '联系内容',
      prop: 'contactContent',
      type:'textarea',
      span:24,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入联系内容"
      }]
    },
    {
      label: '是否抽查',
      prop: 'isSpotCheck',
      slot:true,
      // search:true,
      hide:true,
      addDisplay:false,
      editDisplay:false,
      type:'select',
      dicData:YES_OR_NO,
      props:{
        label:'label',
        value:'value'
      },
    },
  ]
}


export const historyTableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    // {
    //   label: '招聘会',
    //   prop: 'jobFairId',
    //   search:true,
    //   searchFilterable:true,
    //   hide:true,
    //   addDisplay:false,
    //   editDisplay: false,
    //   type:'select',
    //   dicUrl:'/work/jobfair/getJobFairList',
    //   props:{
    //     label:'title',
    //     value:'id'
    //   },
    // },
    {
      label: "实习年份",
      prop: "year"
    },
    {
      label:'学院',
      prop:'deptCode',
      search:true,
      addDisplay:false,
      editDisplay: false,
      type:'select',
      dicUrl: '/basic/basicdept/getDeptList?secondFlag=1',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
    },
    {
      label: '班级',
      prop: 'classcode',
      editDisabled:true,
      formslot:true,
      search:true,
      searchFilterable:true,
      filterable:true,
      type:'select',
      dicUrl:'/basic/basicclass/list',
      props:{
        label: 'classNo',
        value: 'classCode',
      },
    },
    {
      label: '学号',
      prop: 'stuNo',
      editDisabled:true,
      formslot:true,
      search:true,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择学号"
      }]
    },
    {
      label: '姓名',
      prop: 'realName',
      search:true,
      addDisplay:false,
      editDisplay: false,
    },
    {
      label: '就业去向',
      prop: 'workType',
      search:true,
      type:'select',
      dicUrl:'/admin/dict/item/type/work_type',
      props:{
        label:'label',
        value:'value'
      },
    },
    {
      label: '实习单位',
      prop: 'companyName',
      search:true,
      labelWidth:140,
      span:24,
    },
    {
      label: '电话',
      prop: 'phone',
      addDisplay:false,
      editDisplay: false,
    },
    {
      label: '月份',
      prop: 'month',
      // search:true,
      editDisabled:true,
      type:'month',
      format:'yyyy-MM',
      valueFormat:'yyyy-MM',
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择时间"
      }]
    },
    // {
    //   label: '联系人',
    //   prop: 'contactName',
    //   rules: [{
    //     required: true,
    //     trigger: 'blur',
    //     message:"请输入联系人"
    //   }]
    // },
    {
      label: '联系方式',
      prop: 'contactType',
      search:true,
      type:'select',
      dicUrl:'/admin/dict/item/type/contact_type',
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择联系方式"
      }]
    },
    {
      label: '联系时间',
      prop: 'contactDate',
      type:'datetime',
      format:'yyyy-MM-dd HH:mm',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择联系时间"
      }]
    },
    {
      label: '联系内容',
      prop: 'contactContent',
      type:'textarea',
      span:24,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入联系内容"
      }]
    },
    {
      label: '是否抽查',
      prop: 'isSpotCheck',
      slot:true,
      // search:true,
      hide:true,
      addDisplay:false,
      editDisplay:false,
      type:'select',
      dicData:YES_OR_NO,
      props:{
        label:'label',
        value:'value'
      },
    },
  ]
}
