import { getYearList } from '@/views/demo/util'
import { asyncGetOptions } from '@/utils/global'

export const yearOptions = getYearList();
export const biddingtypeOptions = await asyncGetOptions('zblx');
export const biddingformOptions = await asyncGetOptions('zbxs');
export const nowStatusOptions = await asyncGetOptions('zbzt');

export const proxyColumns = [
  {
    title: '项目名称',
    dataIndex: 'projectName',
  },
  {
    title: '项目编号',
    dataIndex: 'projectNum',
  },
  {
    title: '招标类型',
    dataIndex: 'biddingType',
  },
  {
    title: '招标金额（元）',
    dataIndex: 'biddingAmount',
  },
  {
    title: '招标形式',
    dataIndex: 'biddingForm',
  },
  {
    title: '采购人',
    dataIndex: 'procuringEntity',
  },
  {
    title: '报名截止',
    dataIndex: 'registrationDeadline',
  },
  {
    title: '开标时间',
    dataIndex: 'bidOpeningTime',
  },
];
export const supplierColumns = [
  {
    title: '项目名称',
    dataIndex: 'projectName',
  },
  {
    title: '项目编号',
    dataIndex: 'projectNum',
  },
  {
    title: '招标类型',
    dataIndex: 'biddingType',
  },
  {
    title: '招标金额（元）',
    dataIndex: 'biddingAmount',
  },
  {
    title: '招标形式',
    dataIndex: 'biddingForm',
  },
  {
    title: '采购人',
    dataIndex: 'procuringEntity',
  },
  {
    title: '报名截止',
    dataIndex: 'registrationDeadline',
  },
  {
    title: '开标时间',
    dataIndex: 'bidOpeningTime',
  },
  {
    title: '当前状态',
    dataIndex: 'nowStatus',
  },
  {
    title: '中标金额（元）',
    dataIndex: 'bidWinningAmount',
  },
  {
    title: '操作',
    dataIndex: 'operate',
  },
];
export const proprietorColumns = [
  {
    title: '项目名称',
    dataIndex: 'projectName',
  },
  {
    title: '项目编号',
    dataIndex: 'projectNum',
  },
  {
    title: '招标类型',
    dataIndex: 'biddingType',
  },
  {
    title: '招标金额（元）',
    dataIndex: 'biddingAmount',
  },
  {
    title: '招标形式',
    dataIndex: 'biddingForm',
  },
  {
    title: '采购人',
    dataIndex: 'procuringEntity',
  },
  {
    title: '报名截止',
    dataIndex: 'registrationDeadline',
  },
  {
    title: '开标时间',
    dataIndex: 'bidOpeningTime',
  },
  {
    title: '当前状态',
    dataIndex: 'nowStatus',
  },
  {
    title: '中标金额（元）',
    dataIndex: 'bidWinningAmount',
  },
  {
    title: '招标代理',
    dataIndex: 'bidAgent',
  },
  {
    title: '操作',
    dataIndex: 'operate',
  },
];