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: 'reportName'
   },
   {
    title: '公司名称',
    align:"center",
    dataIndex: 'companyName'
   },
   {
    title: 'startDate',
    align:"center",
    dataIndex: '开始日期'
   },
   {
    title: 'endDate',
    align:"center",
    dataIndex: '结束日期'
   },
   {
    title: 'reportDate',
    align:"center",
    dataIndex: '报告日期'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '报告名称',
    field: 'reportName',
    component: 'Input',
  },
  {
    label: '公司名称',
    field: 'companyName',
    component: 'Input',
  },
  {
    label: '开始日期',
    field: 'startDate',
    component: 'Input',
  },
  {
    label: '结束日期',
    field: 'endDate',
    component: 'Input',
  },
  {
    label: '报告日期',
    field: 'reportDate',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
	{
	  label: '',
	  field: 'id',
	  component: 'Input',
	  show: false
	},
  {
	  label: '',
	  field: 'projectId',
	  component: 'Input',
	  show: false
	},
];



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