/*
 *    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 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: '租户ID',
    //   prop: 'tenantId'
    // },
	  // {
    //   label: '备注',
    //   prop: 'remarks'
    // },
	  {
      label: '学号',
      prop: 'stuNo'
    },
    {
      label: '姓名',
      prop: 'realName'
    },
	  {
      label: '曾用名',
      prop: 'oldName'
    },
	  {
      label: '身份证号',
      prop: 'idCard'
    },
	  {
      label: '出生年月',
      prop: 'birthday',
      type:'datetime',
      format:'yyyy-MM-dd'
    },
	  {
      label: '户口所在地',
      prop: 'householdAddress'
    },
	  {
      label: '政治面貌',
      prop: 'politicsStatus',
      type:'select',
      cell: true,
      dicUrl:`/basic/basicpoliticsstatusbase/getPoliticsStatusDict`,
      props:{
        label:'name',
        value:'id',
      }
    },
	  {
      label: '民族',
      prop: 'national',
      type:'select',
      dicUrl:'/basic/basicnation/getNationalList',
      props:{
        label:'nationName',
        value:'nationCode'
      },
    },
	  {
      label: '辩色力',
      prop: 'colourSense'
    },
	  {
      label: '裸眼视力（左）',
      prop: 'eyeLeft'
    },
	  {
      label: '裸眼视力（右）',
      prop: 'eyeRight'
    },
	  {
      label: '身高',
      prop: 'height'
    },
	  {
      label: '体重',
      prop: 'weight'
    },
	  {
      label: '需关爱类型',
      prop: 'careType',
      type: 'select',
      dicUrl: '/admin/dict/item/type/care_type',
      props:{
        label:'label',
        value:'value'
      }
    },
	  {
      label: '电子邮箱',
      prop: 'email'
    },
	  {
      label: 'qq/微信号',
      prop: 'qq'
    },
	  {
      label: '本人电话',
      prop: 'phone'
    },
	  {
      label: '退伍军人',
      prop: 'veteran',
      type: 'select',
      dicUrl: '/admin/dict/item/type/veteran_status',
      props:{
        label:'label',
        value:'value'
      }
    },
	  {
      label: '既往病史',
      prop: 'seekText'
    },
	  {
      label: '本人特长',
      prop: 'advantage'
    }]
}

//家庭成员
export const relationHomeOption={
  keyId:'id',
  addBtn:false,
  editBtn:false,
  addRowBtn:true,
  cellBtn:true,
  column: [{
    label:'称谓',
    prop: 'appellation',
    cell: true,
    type:'select',
    dicUrl:`/admin/dict/item/type/family_member_type`,
    props:{
      label:'label',
      value:'value',
    },
    rules: [
      {
        required: true,
        message: '请输入称谓',
        trigger: 'blur'
      }
    ]
  },
    {
      label:'姓名',
      prop: 'realName',
      cell: true,
      rules: [
        {
          required: true,
          message: '请输入姓名',
          trigger: 'blur'
        }
      ]
    },
    {
      label:'电话',
      prop: 'tel',
      cell: true,
      rules: [
        {
          required: true,
          message: '请输入电话',
          trigger: 'blur'
        },
        { min:8 ,max: 12, message: '电话号码应为 8-12位数字', trigger: 'blur' }
      ]
    },
    {
      label:'身份证号',
      prop: 'idCard',
      cell: true,
      rules: [
        {
          required: true,
          message: '请输入身份证号',
          trigger: 'blur'
        },
        { min:11 ,max:18 , message: '身份证号码应为 18位', trigger: 'blur' }
      ]
    },
    {
      label:'工作单位',
      prop: 'workAddress',
      cell: true,
      rules: [
        {
          required: true,
          message: '请输入工作单位',
          trigger: 'blur'
        }
      ]
    },
    {
      label:'政治面貌',
      prop: 'politicsStatus',
      type:'select',
      cell: true,
      dicUrl:`/admin/dict/item/type/political_family`,
      props:{
        label:'label',
        value:'value',
      }
    },
    {
      label:'身体状况',
      prop: 'health',
      type:'select',
      cell: true,
      dicUrl:`/admin/dict/item/type/health_status`,
      props:{
        label:'label',
        value:'value',
      }
    },
  ]
}
