/*
  @description: 报表统计-字典信息
  @Modifier: 肖文龙
  @routerPath:
  @date: 2021-01-30
  */
import { queryBiddingAndPurchaseException } from '@/api/statisticalAnalysis/reportChart'// 获取信息 字典信息
export const reportChartGroupMixin = {
  // 招标方式和采购方式集合
  bidAndprocForMethod: [
    { typename: '公开招标', typecode: '00' },
    { typename: '邀请招标', typecode: '01' },
    { typename: '询比采购', typecode: '11' },
    { typename: '单一来源', typecode: '12' },
    { typename: '竞争性谈判', typecode: '13' },
    { typename: '竞价', typecode: '14' }
  ]
}
export const timeDateGroupMixin = {
  // 月份集合
  monthList: [
    { typename: '1月', typecode: '01' },
    { typename: '2月', typecode: '02' },
    { typename: '3月', typecode: '03' },
    { typename: '4月', typecode: '04' },
    { typename: '5月', typecode: '05' },
    { typename: '6月', typecode: '06' },
    { typename: '7月', typecode: '07' },
    { typename: '8月', typecode: '08' },
    { typename: '9月', typecode: '09' },
    { typename: '10月', typecode: '10' },
    { typename: '11月', typecode: '11' },
    { typename: '12月', typecode: '12' }
  ]
}

export const itemsGroupMixin = {
  // 品目方式
  itemsTypeList: [
    { typename: '货物', typecode: 'A' },
    { typename: '工程', typecode: 'B' },
    { typename: '服务', typecode: 'C' }
  ]
}
export const procTypeGroupMixin = {
  // 常规采购Or紧急采购
  procTypeList: [
    { typename: '常规采购', typecode: '00' },
    { typename: '紧急采购', typecode: '01' }
  ],
  // 自采Or紧集采
  procTypeTowList: [
    { typename: '集采', typecode: '00' },
    { typename: '自采', typecode: '01' }
  ]
}

export const expertGroupMixin = {
  // 专家等级占比
  expertClassList: [
    { typename: '一级', typecode: '00' },
    { typename: '二级', typecode: '01' },
    { typename: '三级', typecode: '03' },
    { typename: '部长', typecode: '04' }
  ]
}
export const supplierTypeGroupMixin = {
  // 供应商类别
  supplierCategoryList: [
    { typename: '生产商', typecode: 'type00' },
    { typename: '贸易商', typecode: 'type01' },
    { typename: '工程承包商', typecode: 'type02' },
    { typename: '服务商', typecode: 'type03' }
  ]
}
export const indexPurGroupMixin = {
  // 采购系统完成项目及成交金额-指标
  indexPurchaseList: [
    { typename: '非招', typecode: '00' },
    { typename: '招标', typecode: '01' }
  ]
}
export const purchaseExceptionStatusGroupMixin = {
  data() {
    return {
      purchaseExceptionStatus: []
    }
  },
  methods: {
    // 字典信息
    initTpList() {
      queryBiddingAndPurchaseException().then(res => {
        this.purchaseExceptionStatus = res.data['BIDDING_AND_PURCHASE_EXCEPTION_STATUS'].typeList
      })
    }
  }
}
