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: 'phone'
  },
  {
    title: '用户名',
    align:"center",
    dataIndex: 'username'
  },
   {
    title: '专业类别',
    align:"center",
    dataIndex: 'professionalCategory'
   },
   {
    title: '子级专业类别',
    align:"center",
    dataIndex: 'professionalCategoryChildren'
   },
   {
    title: '文理分班',
    align:"center",
    dataIndex: 'cognitioPolyclinic'
   },
   {
    title: '统考成绩',
    align:"center",
    dataIndex: 'professionalScore'
   },
  {
    title: '文化成绩',
    align:"center",
    dataIndex: 'culturalScore',
  },

   {
    title: '创建时间',
    align:"center",
    dataIndex: 'createTime'
   },
   {
    title: '高考省份',
    align:"center",
    dataIndex: 'province'
   },
   {
    title: '语文成绩',
    align:"center",
    dataIndex: 'chineseScore'
   },
   {
    title: '英语成绩',
    align:"center",
    dataIndex: 'englishScore'
   },
   {
    title: '音乐表演声乐',
    align:"center",
    dataIndex: 'yybysy'
   },
   {
    title: '音乐表演器乐',
    align:"center",
    dataIndex: 'yybyqy'
   },
   {
    title: '音乐教育',
    align:"center",
    dataIndex: 'yyjy'
   },
   {
    title: '服装表演',
    align:"center",
    dataIndex: 'fzby'
   },
   {
    title: '戏剧影视导演',
    align:"center",
    dataIndex: 'xjysdy'
   },
   {
    title: '戏剧影视表演',
    align:"center",
    dataIndex: 'xjysby'
   },
   {
    title: '可冲击专业数量',
    align:"center",
    dataIndex: 'kcjNum'
   },
   {
    title: '较稳妥专业数量',
    align:"center",
    dataIndex: 'jwtNum'
   },
   {
    title: '可保底专业数量',
    align:"center",
    dataIndex: 'kbdNum'
   },
   {
    title: '难录取专业数量',
    align:"center",
    dataIndex: 'nlqNum'
   },
   {
    title: '记录结果表名',
    align:"center",
    dataIndex: 'calculationTableName'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '主键',
    field: 'id',
    component: 'Input',
  },
  {
    label: '专业类别(美术类/...)',
    field: 'professionalCategory',
    component: 'Input',
  },
  {
    label: '子级专业类别',
    field: 'professionalCategoryChildren',
    component: 'Input',
  },
  {
    label: '文理分班(文科/理科)',
    field: 'cognitioPolyclinic',
    component: 'Input',
  },
  {
    label: '专业成绩分(语文,数学,英语...)',
    field: 'professionalScore',
    component: 'InputNumber',
  },
  {
    label: '创建人',
    field: 'createBy',
    component: 'Input',
  },
  {
    label: '创建时间',
    field: 'createTime',
    component: 'DatePicker',
    componentProps: {
       showTime: true,
       valueFormat: 'YYYY-MM-DD HH:mm:ss'
     },
  },
  {
    label: '修改人',
    field: 'updateBy',
    component: 'Input',
  },
  {
    label: '修改时间',
    field: 'updateTime',
    component: 'DatePicker',
    componentProps: {
       showTime: true,
       valueFormat: 'YYYY-MM-DD HH:mm:ss'
     },
  },
  {
    label: '状态(0-未使用,1-使用中)',
    field: 'state',
    component: 'Input',
  },
  {
    label: '高考省份',
    field: 'province',
    component: 'Input',
  },
  {
    label: '录取批次',
    field: 'batch',
    component: 'Input',
  },
  {
    label: '语文成绩',
    field: 'chineseScore',
    component: 'InputNumber',
  },
  {
    label: '英语成绩',
    field: 'englishScore',
    component: 'InputNumber',
  },
  {
    label: '音乐表演声乐',
    field: 'yybysy',
    component: 'InputNumber',
  },
  {
    label: '音乐表演器乐',
    field: 'yybyqy',
    component: 'InputNumber',
  },
  {
    label: '音乐教育',
    field: 'yyjy',
    component: 'InputNumber',
  },
  {
    label: '服装表演',
    field: 'fzby',
    component: 'InputNumber',
  },
  {
    label: '戏剧影视导演',
    field: 'xjysdy',
    component: 'InputNumber',
  },
  {
    label: '戏剧影视表演',
    field: 'xjysby',
    component: 'InputNumber',
  },
  {
    label: '可冲击专业数量',
    field: 'kcjNum',
    component: 'InputNumber',
  },
  {
    label: '较稳妥专业数量',
    field: 'jwtNum',
    component: 'InputNumber',
  },
  {
    label: '可保底专业数量',
    field: 'kbdNum',
    component: 'InputNumber',
  },
  {
    label: '难录取专业数量',
    field: 'nlqNum',
    component: 'InputNumber',
  },
  {
    label: '记录结果表名',
    field: 'calculationTableName',
    component: 'Input',
  },
];



/**
* 流程表单调用这个方法获取formSchema
* @param param
*/
export function getBpmFormSchema(_formData): FormSchema[]{
  // 默认和原始表单保持一致 如果流程中配置了权限数据，这里需要单独处理formSchema
  return formSchema;
}
