/*
 *    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 {deviceInOutFlag, deviceStatus} from "@/const/crud/safety/cloudcardevice";
//0：进 1：出
export const isSure=[
  {
    label:'允许进入',
    value:'1'
  },
  {
    label:'禁止进入',
    value:'0'
  },
  {
    label:'允许离校',
    value:'2'
  }
]
export const comeFrom=[
  {
    label:'车牌',
    value:'0'
  },
  {
    label:'访客',
    value:'1'
  },
  {
    label:'成班',
    value:'2'
  },
  {
    label:'黑名单',
    value:'3'
  },
  {
    label:'临时',
    value:'4'
  },
  {
    label:'未匹配',
    value:'10'
  }
]
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
	  {
      label: '车牌',
      prop: 'carNum',
      search:true
    },
	  // {
    //   label: '车牌颜色',
    //   prop: 'colorType',
    // },
	  {
      label: '进出图片',
      prop: 'carPic',
      slot:true,
      editDisplay:false,
    },
	  {
      label: '进出图2',
      prop: 'carPic2',
      slot:true,
      editDisplay:false,

    },
	  {
      label: ' 部门',
      prop: 'deptName',
      search: true
    },
    {
      label: ' 姓名',
      prop: 'realName',
      search: true
    },
    {
      label: '电话',
      prop: 'phone',
      search: true
    },
    {
      label: '信息来源',
      prop: 'comeFrom',
      type:'select',
      search: true,
      dicData:comeFrom,
      props:{
        label:'label',
        value:'value'
      },
    },
    {
      label: '受访人',
      prop: 'accessPeopleName',
    },
    {
      label: '进入次数',
      prop: 'inNumber',
    },
    {
      label: '进出状态',
      prop: 'isSure',
      type:'radio',
      dicData:isSure,
      props:{
        label:'label',
        value:'value'
      },
      search:true
    },
    {
      label: '位置',
      prop: 'position',
      search:true
    },
    {
      label: '进入时间',
      prop: 'createInTime',
    },
    {
      label: '出门时间',
      prop: 'createOutTime',
    },
    {
      label: '最近进入时间',
      prop: 'lastInTime',
    },
    {
      label: '进入时间',
      prop: 'searchTime',
      type: 'date',
      search:true,
      hide:true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
    }, {
      label: '备注',
      prop: 'remarks',
    },
  ]
}
