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: 'tp',
    width:80,
    sorter: true,
    resizable:true,
   },
   {
    title: '项目ID',
    align:"center",
    dataIndex: 'itemid',
    width:100,
    sorter: true,
    resizable:true,
   },
   {
    title: '文档ID',
    align:"center",
    dataIndex: 'complianeNo',
    width:100,    
    sorter: true,
    resizable:true,
   },
   {
    title: '处罚文号',
    align:"left",
    dataIndex: 'docNo',
    width:100,
    sorter: true,
    resizable:true,
   },
   {
    title: '个人名称',
    align:"left",
    dataIndex: 'punishedUsers',
    width:100,
    sorter: true,
    resizable:true,
   },
   {
    title: '单位名称',
    align:"left",
    dataIndex: 'punishedOrg',
    width:150,
    sorter: true,
    resizable:true,
   },
   {
    title: '负责人',
    align:"left",
    dataIndex: 'punishedOrgHead',
    width:100,
    sorter: true,
    resizable:true,
   },
   {
    title: '违规事实',
    align:"left",
    dataIndex: 'violationFact',
    width:150,
    sorter: true,
    resizable:true,
   },
   {
    title: '行政处罚依据',
    align:"left",
    dataIndex: 'punishBasis',
    width:150,
    sorter: true,
    resizable:true,
   },
   {
    title: '行政处罚决定',
    align:"left",
    dataIndex: 'punishDecision',
    width:150,
    sorter: true,
    resizable:true,
   },
   {
    title: '处罚行政机关',
    align:"left",
    dataIndex: 'punishCom',
    width:150,
    sorter: true,
    resizable:true,
   },
   {
    title: '处罚决定日期',
    align:"left",
    dataIndex: 'punishDate',
    width:150,
    sorter: true,
    resizable:true,

   },
   {
    title: '创建时间',
    align:"left",
    dataIndex: 'createdTime',
    width:150,
    sorter: true,
    resizable:true,
   }

];
//查询数据
export const searchFormSchema: FormSchema[] = [
  {
    label: '分类',
    field: 'tp',
    component: 'Input',
  },
  {
    label: '项目ID',
    field: 'itemid',
    component: 'Input',
   },
   {
    label: '文档ID',
    field: 'complianeNo',
    component: 'Input',
   },
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '分类',
    field: 'tp',
    component: 'Input',
  },
  {
    label: '项目ID',
    field: 'itemid',
    component: 'Input',
  },
  {
    label: '文档ID',
    field: 'complianeNo',
    component: 'Input',
  },
  {
    label: '处罚文号',
    field: 'docNo',
    component: 'Input',
  },
  {
    label: '个人名称',
    field: 'punishedUsers',
    component: 'Input',
  },
  {
    label: '单位名称',
    field: 'punishedOrg',
    component: 'Input',
  },
  {
    label: '主要负责人',
    field: 'punishedOrgHead',
    component: 'Input',
  },
  {
    label: '违规事实',
    field: 'violationFact',
    component: 'Input',
  },
  {
    label: '行政处罚依据',
    field: 'punishBasis',
    component: 'Input',
  },
  {
    label: '行政处罚决定',
    field: 'punishDecision',
    component: 'Input',
  },
  {
    label: '处罚行政机关',
    field: 'punishCom',
    component: 'Input',
  },
  {
    label: '处罚决定日期',
    field: 'punishDate',
    component: 'Input',
  },
	{
	  label: '',
	  field: 'id',
	  component: 'Input',
	  show: false
	},
];



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