import { getYearList } from '@/views/demo/util'

export const yearOptions = getYearList();

export const proxyColumns = [
  {
    title: '企业名称',
    dataIndex: 'name',
  },
  {
    title: '信用代码',
    dataIndex: 'code',
  },
  {
    title: '营业执照',
    dataIndex: 'license',
  },
  {
    title: '企业法人',
    dataIndex: 'legalPerson',
  },
  {
    title: '联系人',
    dataIndex: 'contactPerson',
  },
  {
    title: '联系方式',
    dataIndex: 'phone',
  },
];
export const supplierColumns = [
  {
    title: '企业名称',
    dataIndex: 'name',
  },
  {
    title: '信用代码',
    dataIndex: 'code',
  },
  {
    title: '营业执照',
    dataIndex: 'license',
  },
  {
    title: '企业法人',
    dataIndex: 'legalPerson',
  },
  {
    title: '联系人',
    dataIndex: 'contactPerson',
  },
  {
    title: '联系方式',
    dataIndex: 'phone',
  },
  {
    title: '企业资质',
    dataIndex: 'qualification',
  },
  {
    title: '操作',
    dataIndex: 'operate',
  },
];
export const proprietorColumns = [
  {
    title: '企业名称',
    dataIndex: 'name',
  },
  {
    title: '信用代码',
    dataIndex: 'code',
  },
  {
    title: '营业执照',
    dataIndex: 'license',
  },
  {
    title: '企业法人',
    dataIndex: 'legalPerson',
  },
  {
    title: '联系人',
    dataIndex: 'contactPerson',
  },
  {
    title: '联系方式',
    dataIndex: 'phone',
  },
  {
    title: '账号状态',
    dataIndex: 'accountState',
  },
  {
    title: '企业资质',
    dataIndex: 'qualification',
  },
  {
    title: '操作',
    dataIndex: 'operate',
  },
];
export const data = [
  {
    key: '1',
    name: 'XXXX有限公司',
    no: '91110302****015136',
    businesslicense: '文件名.jpg/png/pdf…',
    legalPerson: '李XX',
    user: '李XX',
    usernumber: '1877999966',
    certification: '材料类/工程类/服务类',
    status: '正常',
  },
  {
    key: '2',
    name: 'XXXX有限公司',
    no: '91110302****015136',
    businesslicense: '文件名.jpg/png/pdf…',
    legalPerson: '李XX',
    user: '李XX',
    usernumber: '1877999966',
    certification: '材料类/工程类/服务类',
    status: '禁用',
  },
  {
    key: '3',
    name: 'XXXX有限公司',
    no: '91110302****015136',
    businesslicense: '文件名.jpg/png/pdf…',
    legalPerson: '李XX',
    user: '李XX',
    usernumber: '1877999966',
    certification: '材料类/工程类/服务类',
    status: '正常',
  },
  {
    key: '4',
    name: 'XXXX有限公司',
    no: '91110302****015136',
    businesslicense: '文件名.jpg/png/pdf…',
    legalPerson: '李XX',
    user: '李XX',
    usernumber: '1877999966',
    certification: '材料类/工程类/服务类',
    status: '禁用',
  },
  {
    key: '5',
    name: 'XXXX有限公司',
    no: '91110302****015136',
    businesslicense: '文件名.jpg/png/pdf…',
    legalPerson: '李XX',
    user: '李XX',
    usernumber: '1877999966',
    certification: '材料类/工程类/服务类',
    status: '正常',
  },
  {
    key: '6',
    name: 'XXXX有限公司',
    no: '91110302****015136',
    businesslicense: '文件名.jpg/png/pdf…',
    legalPerson: '李XX',
    user: '李XX',
    usernumber: '1877999966',
    certification: '材料类/工程类/服务类',
    status: '禁用',
  },
];

export const accountStateOptions = [
  {label: '正常', value: 0},
  {label: '停用', value: 1},
]