/*
 *    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,
  dialogHeight:700,
  dic: [],
  column: [
	  // {
    //   label: '主键',
    //   prop: 'id'
    // },
	  // {
    //   label: '创建人',
    //   prop: 'createBy'
    // },
	  // {
    //   label: '创建时间',
    //   prop: 'createTime'
    // },
	  // {
    //   label: '更新人',
    //   prop: 'updateBy'
    // },
	  // {
    //   label: '更新时间',
    //   prop: 'updateTime'
    // },
	  // {
    //   label: '删除标记',
    //   prop: 'delFlag'
    // },
	  // {
    //   label: '租户ID',
    //   prop: 'tenantId'
    // },
	  // {
    //   label: '备注',
    //   prop: 'remarks'
    // },
	  {
      label: '学年',
      prop: 'schoolYear',
      addDisplay:false,
      editDisplay:false,
      searchFilterable:true,
      search:true,
      type:'select',
      dicUrl:'/basic/basicyear/queryAllSchoolYear',
      props:{
        label:'year',
        value:'year'
      },
    },
	  {
      label: '学院',
      prop: 'deptCode',
      addDisplay:false,
      editDisplay:false,
      search:true,
      type:"select",
      dicUrl: '/basic/basicdept/getDeptList?secondFlag=1',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
    },
	  {
      label: '班级',
      prop: 'classCode',
      labelWidth:120,
      search:true,
      searchFilterable:true,
      formslot: true,
      type:"select",
      dicUrl:'/basic/basicclass/list',
      props:{
        label: 'classNo',
        value: 'classCode',
      },
      rules: [{
        required: true,
        message: "请选择班级",
        trigger: "blur"
      }],
    },
	  {
      label: '学号',
      prop: 'stuNo',
      addDisplay:false,
      editDisplay:false,
    },
	  {
      label: '受访学生',
      prop: 'realName',
      labelWidth:120,
      formslot: true,
      rules: [{
        required: true,
        message: "请选择",
        trigger: "blur"
      }],
    },
	  {
      label: '访问时间',
      prop: 'visitDate',
      labelWidth:120,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd',
      rules: [{
        required: true,
        message: "请选择访问时间",
        trigger: "blur"
      }],
    },
	  {
      label: '企业名称',
      prop: 'companyName',
      labelWidth:120,
      rules: [{
        required: true,
        message: "请输入企业名称",
        trigger: "blur"
      }],
    },
	  {
      label: '企业地址',
      prop: 'companyAddress',
      labelWidth:120,
      hide:true,
      rules: [{
        required: true,
        message: "请输入企业地址",
        trigger: "blur"
      }],
    },
	  {
      label: '是否有师傅',
      prop: 'isMaster',
      labelWidth:120,
      search:true,
      type:'radio',
      dicData:YES_OR_NO,
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        message: "请选择",
        trigger: "blur"
      }],
    },
	  {
      label: '是否专业对口',
      prop: 'isMajor',
      labelWidth:120,
      search:true,
      type:'radio',
      dicData:YES_OR_NO,
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        message: "请选择",
        trigger: "blur"
      }],
    },
	  {
      label: '工作地点是否在常州',
      prop: 'isChangZhou',
      labelWidth:120,
      search:true,
      type:'radio',
      dicData:YES_OR_NO,
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        message: "请选择",
        trigger: "blur"
      }],
    },
	  {
      label: '企业概况',
      prop: 'companyProfile',
      labelWidth:120,
      hide:true,
      type:'textarea',
      row:true,
      span:15,
      rules: [{
        required: true,
        message: "请输入企业概况",
        trigger: "blur"
      }],
    },
	  {
      label: '实习困难',
      prop: 'jobDifficulty',
      labelWidth:120,
      hide:true,
      type:'textarea',
      row:true,
      span:15,
      rules: [{
        required: true,
        message: "请输入实习困难",
        trigger: "blur"
      }],
    },
	  {
      label: '技能培训或拓展情况',
      prop: 'jobProgress',
      labelWidth:120,
      hide:true,
      type:'textarea',
      row:true,
      span:15,
      rules: [{
        required: true,
        message: "请输入",
        trigger: "blur"
      }],
    },
	  {
      label: '关爱、安全、文明教育',
      prop: 'jobEducation',
      labelWidth:120,
      hide:true,
      type:'textarea',
      row:true,
      span:15,
      rules: [{
        required: true,
        message: "请输入",
        trigger: "blur"
      }],
    },
	  {
      label: '图片一',
      prop: 'attachmentOne',
      labelWidth:120,
      formslot: true,
      slot: true,
      rules: [{
        required: true,
        message: "请上传附件",
        trigger: "blur"
      }],
    },
	  {
      label: '图片二',
      prop: 'attachmentTwo',
      labelWidth:120,
      formslot: true,
      slot: true,
    },
	  {
      label: '审批状态',
      prop: 'auditStatus',
      labelWidth:120,
      search:true,
      addDisplay:false,
      editDisplay:false,
      type:'select',
      dicUrl: '/admin/dict/item/type/interview_audit_status',
      props:{
        label:'label',
        value:'value'
      },

    },
    {
      label: '审核意见',
      prop: 'remarks',
      addDisplay:false,
      editDisplay:false
    },
  ]
}
