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: 'schoolCode'
   },
   {
    title: '专业代码',
    align:"center",
    dataIndex: 'majorCode'
   },
   {
    title: '专业名称',
    align:"center",
    dataIndex: 'majorName'
   },
   {
    title: '招生代码',
    align:"center",
    dataIndex: 'enrollmentCode'
   },
   {
    title: '学费',
    align:"center",
    dataIndex: 'tuition'
   },
   {
    title: '备注',
    align:"center",
    dataIndex: 'detail'
   },
   {
    title: '科类(文科/理科)',
    align:"center",
    dataIndex: 'category'
   },
   {
    title: '录取方式',
    align:"center",
    dataIndex: 'rulesEnrollProbability'
   },
   {
    title: '批次',
    align:"center",
    dataIndex: 'batch'
   },
   {
    title: '录取概率计算规则运算符',
    align:"center",
    dataIndex: 'probabilityOperator'
   },
   {
    title: '文化分省控线',
    align:"center",
    dataIndex: 'culturalControlLine'
   },
   {
    title: '专项分数线',
    align:"center",
    dataIndex: 'specialControlLine'
   },
   {
    title: '专业类型',
    align:"center",
    dataIndex: 'majorType'
   },
   {
    title: '二级专业类型',
    align:"center",
    dataIndex: 'majorTypeChild'
   },
   {
    title: '计划招生人数',
    align:"center",
    dataIndex: 'planNum'
   },
   {
    title: '是否使用主项成绩',
    align:"center",
    dataIndex: 'checkMaster'
   },
   {
    title: '主考科目',
    align:"center",
    dataIndex: 'mainSubjects'
   },
   {
    title: '学制',
    align:"center",
    dataIndex: 'semester'
   },
   {
    title: '院校限制',
    align:"center",
    dataIndex: 'limitation'
   },
   {
    title: '文化分数限制',
    align:"center",
    dataIndex: 'culturalScoreLimitation'
   },
   {
    title: '专业分数限制',
    align:"center",
    dataIndex: 'professionalScoreLimitation'
   },
   {
    title: '语文成绩限制',
    align:"center",
    dataIndex: 'chineseScoreLimitation'
   },
   {
    title: '英语成绩限制',
    align:"center",
    dataIndex: 'englishScoreLimitation'
   },
   {
    title: '录取方式缩写',
    align:"center",
    dataIndex: 'rulesEnrollProbabilitySx'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '学校代码',
    field: 'schoolCode',
    component: 'Input',
  },
  {
    label: '专业代码',
    field: 'majorCode',
    component: 'Input',
  },
  {
    label: '专业名称',
    field: 'majorName',
    component: 'Input',
  },
  {
    label: '招生代码',
    field: 'enrollmentCode',
    component: 'Input',
  },
  {
    label: '学费',
    field: 'tuition',
    component: 'InputNumber',
  },
  {
    label: '备注',
    field: 'detail',
    component: 'Input',
  },
  {
    label: '科类(文科/理科)',
    field: 'category',
    component: 'Input',
  },
  {
    label: '录取方式',
    field: 'rulesEnrollProbability',
    component: 'Input',
  },
  {
    label: '批次',
    field: 'batch',
    component: 'Input',
  },
  {
    label: '录取概率计算规则运算符',
    field: 'probabilityOperator',
    component: 'Input',
  },
  {
    label: '文化分省控线',
    field: 'culturalControlLine',
    component: 'InputNumber',
  },
  {
    label: '专项分数线',
    field: 'specialControlLine',
    component: 'InputNumber',
  },
  {
    label: '专业类型',
    field: 'majorType',
    component: 'Input',
  },
  {
    label: '二级专业类型',
    field: 'majorTypeChild',
    component: 'Input',
  },
  {
    label: '计划招生人数',
    field: 'planNum',
    component: 'InputNumber',
  },
  {
    label: '是否使用主项成绩',
    field: 'checkMaster',
    component: 'Input',
  },
  {
    label: '主考科目',
    field: 'mainSubjects',
    component: 'Input',
  },
  {
    label: '学制',
    field: 'semester',
    component: 'Input',
  },
  {
    label: '院校限制',
    field: 'limitation',
    component: 'Input',
  },
  {
    label: '文化分数限制',
    field: 'culturalScoreLimitation',
    component: 'InputNumber',
  },
  {
    label: '专业分数限制',
    field: 'professionalScoreLimitation',
    component: 'InputNumber',
  },
  {
    label: '语文成绩限制',
    field: 'chineseScoreLimitation',
    component: 'InputNumber',
  },
  {
    label: '英语成绩限制',
    field: 'englishScoreLimitation',
    component: 'InputNumber',
  },
  {
    label: '录取方式缩写',
    field: 'rulesEnrollProbabilitySx',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
	{
	  label: '',
	  field: 'id',
	  component: 'Input',
	  show: false
	},
];



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