/*
 *    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.
 *
 */
const YES_OR_NO=[
  {
    label:'是',
    value:'1'
  },
  {
    label:'否',
    value:'0'
  }
]
const ROLE_TYPE=[
  {
    label:'教职工',
    value:'1'
  },
  {
    label:'学生',
    value:'2'
  },
  {
    label:'校外人员',
    value:'3'
  },
]

const NUCLE_TYPE=[
  {
    label:'待指定核酸类型',
    value:'0'
  },
  {
    label:'不需要',
    value:'1'
  },
  {
    label:'三天两检',
    value:'2'
  },
  {
    label:'七天五检',
    value:'3'
  },
]
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
	  // {
    //   label: '主键',
    //   prop: 'id'
    // },
	  // {
    //   label: '创建人',
    //   prop: 'createBy'
    // },
	  // {
    //   label: '创建时间',
    //   prop: 'createTime'
    // },
	  // {
    //   label: '更新人',
    //   prop: 'updateBy'
    // },
	  // {
    //   label: '更新时间',
    //   prop: 'updateTime'
    // },
	  // {
    //   label: '删除标志位',
    //   prop: 'delFlag'
    // },
	  // {
    //   label: '备注',
    //   prop: 'remarks'
    // },
	  // {
    //   label: '租户id',
    //   prop: 'tenantId'
    // },
	  {
      label: '姓名',
      prop: 'teacherNo',
      labelWidth:120,
      addDisplay:false,
      editDisplay:false,
      hide:true,
      type:'select',
      filterable:true,
      dicUrl:'/professional/teacherbase/TeacherBaseList',
      props:{
        label:'realName',
        value:'teacherNo'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择姓名"
      }]
    },
	  {
      label: '姓名',
      prop: 'realName',
      search:true,
      // hide:true,
      addDisplay:false,
      editDisplay:false,
    },
	  {
      label: '归属部门',
      prop: 'deptCode',
      search:true,
      addDisplay:false,
      editDisplay:false,
      slot: true,
      type:'select',
      dicUrl: '/basic/basicdept/getDeptList?deptLevel=2',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
    },
	  {
      label: '身份证号',
      prop: 'idCard',
      addDisplay:false,
      editDisplay:false,
      hide:true
    },
	  {
      label: '联系电话',
      prop: 'telPhone',
      editDisabled:true,
      labelWidth:120,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入联系电话"
      }]
    },
	  {
      label: '出行原因',
      prop: 'travelReason',
      labelWidth:120,
      editDisabled:true,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入出行原因"
      }]
    },
	  {
      label: '目的地',
      prop: 'destination',
      search:true,
      labelWidth:120,
      editDisabled:true,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入目的地"
      }]
    },
    {
      label: '出行交通工具',
      prop: 'tripVehicle',
      addDisplay:false,
      editDisplay:false,
    },
    {
      label: '返程交通工具',
      prop: 'returnVehicle',
      addDisplay:false,
      editDisplay:false,
    },
	  {
      label: '出行交通工具',
      prop: 'teacherTravelLeaveList',
      labelWidth:120,
      editDisabled:true,
      hide:true,
      formslot: true,
    },
    {
      label: '返程交通工具',
      prop: 'teacherTravelReturnList',
      labelWidth:120,
      addDisplay:false,
      editDisabled:true,
      hide:true,
      formslot: true,
    },
	  {
      label: '是否外省',
      prop: 'isProvince',
      search:true,
      labelWidth:120,
      editDisabled:true,
      type:'select',
      dicData:YES_OR_NO,
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择是否外省"
      }]
    },
    // {
    //   label: '是否核酸检测',
    //   prop: 'isNat',
    //   search:true,
    //   type:'select',
    //   dicData:YES_OR_NO,
    //   props:{
    //     label:'label',
    //     value:'value'
    //   },
    //   rules: [{
    //     required: true,
    //     trigger: 'blur',
    //     message:"请选择是否核酸检测"
    //   }]
    // },
    // {
    //   label: '核酸检测情况',
    //   prop: 'natState',
    // },

	  {
      label: '开始时间',
      prop: 'startTime',
      labelWidth:120,
      editDisabled:true,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入开始时间"
      }]
    },
	  {
      label: '结束时间',
      prop: 'endTime',
      editDisabled:true,
      labelWidth:120,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入结束时间"
      }]
    },
    {
      label: '开始时间',
      prop: 'startTimeSearch',
      search:true,
      hide:true,
      addDisplay:false,
      editDisplay:false,
      type:'date',
      valueFormat: 'yyyy-MM-dd',
    },
    {
      label: '结束时间',
      prop: 'endTimeSearch',
      search:true,
      hide:true,
      addDisplay:false,
      editDisplay:false,
      type:'date',
      valueFormat: 'yyyy-MM-dd',
    },
    {
      label: '核酸检测报告',
      prop: 'attachment',
      addDisplay:false,
      slot: true,
      formslot: true
    },
    {
      label: '健康码',
      prop: 'heathImg',
      addDisplay:false,
      slot: true,
      formslot: true
    },
    {
      label: '行程码',
      prop: 'travelImg',
      addDisplay:false,
      slot: true,
      formslot: true
    },

	  {
      label: '部门领导审批',
      prop: 'deptApproval',
      search:true,
      addDisplay:false,
      editDisplay:false,
      type: 'select',
      dicUrl: '/admin/dict/item/type/dept_approval',
      props:{
        label:'label',
        value:'value'
      }
    },
	  {
      label: '分管领导审批',
      prop: 'leaderApproval',
      search:true,
      slot: true,
      addDisplay:false,
      editDisplay:false,
      type: 'select',
      dicUrl: '/admin/dict/item/type/dept_approval',
      props:{
        label:'label',
        value:'value'
      }
    },
    // {
    //   label: '审核状态',
    //   prop: 'auditStatus',
    //   addDisplay:false,
    //   editDisplay:false,
    //   hide:true,
    //   search:true,
    //   type: 'select',
    //   dicUrl: '/admin/dict/item/type/dept_approval',
    //   props:{
    //     label:'label',
    //     value:'value'
    //   }
    // },
    {
      label: '驳回原因',
      prop: 'remarks',
      addDisplay:false,
      editDisplay:false,
    },
    {
      label: '部门领导审批(返程)',
      prop: 'attachmentVerify',
      search:true,
      addDisplay:false,
      editDisplay:false,
      type: 'select',
      dicUrl: '/admin/dict/item/type/dept_approval',
      props:{
        label:'label',
        value:'value'
      }
    },
    {
      label: '分管领导审批(返程)',
      prop: 'attachmentLeaderVerify',
      search:true,
      addDisplay:false,
      editDisplay:false,
      type: 'select',
      dicUrl: '/admin/dict/item/type/dept_approval',
      props:{
        label:'label',
        value:'value'
      }
    },
    {
      label: '销假核酸类型',
      prop: 'nucleType',
      search:true,
      display:false,
      type:'select',
      dicData:NUCLE_TYPE,
      props:{
        label:'label',
        value:'value'
      },
    },
    {
      label: '角色类型',
      prop: 'roleType',
      search:true,
      addDisplay:false,
      editDisplay:false,
      type:'select',
      dicData:ROLE_TYPE,
      props:{
        label:'label',
        value:'value'
      },
    }
  ]
}
