import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
    {
    title: '姓名',
    align:"center",
    dataIndex: 'name'
   },
   {
    title: '身份证号',
    align:"center",
    dataIndex: 'cerNo'
   },
   {
    title: '年龄段类型',
    align:"center",
    dataIndex: 'periodId_dictText'
   },
   {
    title: '性别',
    align:"center",
    dataIndex: 'sex_dictText'
   },
   {
    title: '手机号码',
    align:"center",
    dataIndex: 'phone'
   },
   {
    title: '微信号',
    align:"center",
    dataIndex: 'wechat'
   },
   {
    title: '学校',
    align:"center",
    dataIndex: 'school'
   },
   {
    title: '年级',
    align:"center",
    dataIndex: 'grade'
   },
   {
    title: '年龄',
    align:"center",
    dataIndex: 'age'
   },
   {
    title: '备注',
    align:"center",
    dataIndex: 'remark'
   },
   {
    title: '紧急联系人',
    align:"center",
    dataIndex: 'emergencyPhone'
   },
   {
    title: '监护联系人方式',
    align:"center",
    dataIndex: 'chaperonPhone'
   },
   {
    title: '是否默认处出行人',
    align:"center",
    dataIndex: 'isDefault_dictText'
   },
   {
    title: '关联用户id',
    align:"center",
    dataIndex: 'userId_dictText'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '姓名',
    field: 'name',
    component: 'Input',
  },
  {
    label: '身份证号',
    field: 'cerNo',
    component: 'Input',
  },
  {
    label: '年龄段类型',
    field: 'periodId',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"studytour_period,title,id"
     },
  },
  {
    label: '性别',
    field: 'sex',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"sex"
     },
  },
  {
    label: '手机号码',
    field: 'phone',
    component: 'Input',
  },
  {
    label: '微信号',
    field: 'wechat',
    component: 'Input',
  },
  {
    label: '学校',
    field: 'school',
    component: 'Input',
  },
  {
    label: '年级',
    field: 'grade',
    component: 'Input',
  },
  {
    label: '年龄',
    field: 'age',
    component: 'InputNumber',
  },
  {
    label: '备注',
    field: 'remark',
    component: 'Input',
  },
  {
    label: '紧急联系人',
    field: 'emergencyPhone',
    component: 'Input',
  },
  {
    label: '监护联系人方式',
    field: 'chaperonPhone',
    component: 'Input',
  },
  {
    label: '是否默认处出行人',
    field: 'isDefault',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"is_true"
     },
  },
  {
    label: '关联用户id',
    field: 'userId',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"han_hai_member,nick_name,id"
     },
  },
];
