/*
 *    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 deptAttenceOption = {
  border: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '点名类型',
      prop: 'orderType',
      hide:true,
    },
    {
      label: '日期',
      prop: 'orderDate',
      hide:true,
    },
    {
      label: '系部',
      prop: 'deptName',
      width:150
    },
    {
      label: '应到',
      prop: 'shouldNum'
    },
    {
      label: '实到',
      prop: 'realNum'
    },
    {
      label: '实到率',
      prop: 'realRate'
    },
    {
      label: '签到率',
      prop: 'signRate'
    },
    {
      label: '迟到',
      prop: 'lateNum'
    },
    {
      label: '请假晚到',
      prop: 'aflNum'
    },
    {
      label: '事假',
      prop: 'thingNum'
    },
    {
      label: '病假',
      prop: 'sickNum'
    },
    {
      label: '旷课',
      prop: 'truanceNum',
      slot: true
    },
    {
      label: '失联',
      prop: 'outContactNum',
      slot: true
    },
    {
      label: '校内请假',
      prop: 'schoolThingNum'
    },
    {
      label: '未考勤',
      prop: 'noAttendNum'
    },
    {
      label: '未考勤且未扫脸',
      prop: 'noAttendAndFace',
      slot: true
    },
    {
      label: '未扫脸',
      prop: 'noFaceNum',
      slot: true
    },
  ]
}


export const classAttenceOption = {
  border: true,
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  top:0,
  column: [
    {
      label: '班级',
      prop: 'classNo',
    },
    {
      label: '班级名称',
      prop: 'className',
      width:150
    },
    {
      label: '班主任',
      prop: 'teacherName',
    },
    {
      label: '考勤确认时间',
      prop: 'createTime',
      width:200,
      sortable:true,

    },
    {
      label: '应到',
      prop: 'shouldNum'
    },
    {
      label: '实到',
      prop: 'realNum'
    },
    {
      label: '迟到',
      prop: 'lateNum'
    },
    {
      label: '请假晚到',
      prop: 'aflNum'
    },
    {
      label: '事假',
      prop: 'thingNum'
    },
    {
      label: '病假',
      prop: 'sickNum'
    },
    {
      label: '旷课',
      prop: 'truanceNum'
    },
    {
      label: '失联',
      prop: 'outContactNum'
    },
    {
      label: '校内请假',
      prop: 'schoolThingNum'
    },
    {
      label: '未考勤',
      prop: 'noAttendNum'
    },
    {
      label: '未考勤且未扫脸',
      prop: 'noAttendAndFace'
    },
    {
      label: '未扫脸 ',
      prop: 'noFaceNum',
      slot: true
    },
  ]
}


export const classDetailAttenceOption = {
  border: true,
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  column: [
    {
      label: '姓名',
      prop: 'stuName',
    },
    {
      label: '考勤类型',
      prop: 'attendanceType',
      type:'select',
      dicUrl:'/admin/dict/item/type/attend_type',
      props:{
        label:'label',
        value:'value'
      }
    },
    {
      label: '是否住宿',
      prop: 'isStayDorm',
    },
    {
      label: '宿舍号',
      prop: 'roomNo',
    },
    {
      label: '是否扫脸',
      prop: 'isDeviceIn',
      slot:true
    },
    {
      label: '落实情况',
      prop: 'lsRemarks',
    }
  ]
}


//班主任  看 班级
export const teacherClassAttendanceOption = {
  border: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '点名类型',
      prop: 'orderType',
      hide:true,
    },
    {
      label: '日期',
      prop: 'date',
      width:150
    },
    {
      label: '应到',
      prop: 'shouldNum'
    },
    {
      label: '实到',
      prop: 'realNum'
    },
    {
      label: '实到率',
      prop: 'realRate'
    },
    {
      label: '点名率',
      prop: 'signRate'
    },
    {
      label: '迟到',
      prop: 'lateNum'
    },
    {
      label: '请假晚到',
      prop: 'aflNum'
    },
    {
      label: '事假',
      prop: 'thingNum'
    },
    {
      label: '病假',
      prop: 'sickNum'
    },
    {
      label: '旷课',
      prop: 'truanceNum'
    },
    {
      label: '失联',
      prop: 'outContactNum'
    },
    {
      label: '校内请假',
      prop: 'schoolThingNum'
    },
    {
      label: '未考勤',
      prop: 'noAttendNum'
    },
  ]
}
