import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
// 专家组列表
export const opinionColumns: BasicColumn[] = [
    {
        title: '姓名',
        dataIndex: 'zjxm',
        resizable: true,
        align: 'center'
    },
    {
        title: '工作单位',
        dataIndex: 'gzdw',
        resizable: true,
        align: 'center'
    },
    {
        title: '职务',
        dataIndex: 'zczw',
        resizable: true,
        align: 'center'
    },
    {
        title: '联系电话',
        dataIndex: 'lxdh',
        resizable: true,
        align: 'center'
    },
    {
        title: '邮箱',
        dataIndex: 'mail',
        resizable: true,
        align: 'center'
    },
    {
        title: '是否组长',
        dataIndex: 'isHead',
        resizable: true,
        customRender: ({ record }: any) => {
            return record.isHead == 1 ? '是' : '否'
        },
        align: 'center'
    },

]
// 参会人员信息
export const participantsColumns: BasicColumn[] = [
    {
        title: '姓名',
        dataIndex: 'zjxm',
        resizable: true,
        align: 'center'
    },
    {
        title: '工作单位',
        dataIndex: 'gzdw',
        resizable: true,
        align: 'center'
    },
    {
        title: '职务',
        dataIndex: 'zczw',
        resizable: true,
        align: 'center'
    },
    {
        title: '联系电话',
        dataIndex: 'lxdh',
        resizable: true,
        align: 'center'
    },
    {
        title: '邮箱',
        dataIndex: 'mail',
        resizable: true,
        align: 'center'
    },
]
// 下达指导意见
export const AdviceFormSchema: FormSchema[] = [
    { label: '污染地块ID', field: 'wrdkid', required: true, component: 'Input', show: false },

    { label: '下达意见', field: 'clyj', required: true, component: 'Input' },
    { label: '阶段编码', field: 'scjdbm', required: true, component: 'Input', show: false },
    {
        label: '文件',
        field: 'clyjfj',
        required: true,
        component: 'JUpload',
        componentProps: {
            fileName: '下达意见',
            showUploadList: false,
        },
    },
]
// 历史评审
export const histroyColumns: BasicColumn[] = [
    {
        title: '参会成员类型',
        dataIndex: 'chcylx',
        resizable: true,
        align: 'center'
    },
    {
        title: '工作单位',
        dataIndex: 'gzdw',
        resizable: true,
        align: 'center'
    },
    {
        title: '是否专家组长',
        dataIndex: 'isHead',
        resizable: true,
        align: 'center'
    },
    {
        title: '联系电话',
        dataIndex: 'lxdh',
        resizable: true,
        align: 'center'
    },
    {
        title: '邮箱',
        dataIndex: 'mail',
        resizable: true,
        align: 'center'
    },
    {
        title: '职称',
        dataIndex: 'zczw',
        resizable: true,
        align: 'center'
    },
    {
        title: '专家姓名',
        dataIndex: 'zjxm',
        resizable: true,
        align: 'center'
    },
]
// 最近一次
export const zjpsColumns: BasicColumn[] = [
    {
        title: '参会成员类型',
        dataIndex: 'chcylx',
        resizable: true,
        align: 'center'
    },
    {
        title: '工作单位',
        dataIndex: 'gzdw',
        resizable: true,
        align: 'center'
    },
    {
        title: '是否专家组长',
        dataIndex: 'isHead',
        resizable: true,
        align: 'center'
    },
    {
        title: '联系电话',
        dataIndex: 'lxdh',
        resizable: true,
        align: 'center'
    },
    {
        title: '邮箱',
        dataIndex: 'mail',
        resizable: true,
        align: 'center'
    },
    {
        title: '职称',
        dataIndex: 'zczw',
        resizable: true,
        align: 'center'
    },
    {
        title: '专家姓名',
        dataIndex: 'zjxm',
        resizable: true,
        align: 'center'
    },
]
