/*
*  @description: 竞价大厅公共字典
  @Modifier: GaoMy
  @routerPath:
  @date: 2020/5/25-15:48
  * */
/* api*/
import { queryProcurementProjectInitInfo } from '@/api/procurement/procurementProject'

export const procurementOfferGroupMixin = {
  data() {
    return {
      /* ========================基本信息部分========================*/
      ifAtlastRoundList: [{ typecode: '01', typename: '是' }, { typecode: '00', typename: '否' }], // 是否为最终轮次数据字典
      emergencyProcurementList: [{ typecode: '01', typename: '响应' }, { typecode: '00', typename: '不响应' }],
      // 竞价格与竞折扣率回显字典
      comparePriceTypeData: [{ typecode: '00', typename: '元' }, { typecode: '01', typename: '%' }],
      // 信息发送对象数据字典
      infoData: [{ typecode: '00', typename: '国信创新1' }, { typecode: '01', typename: '国信创新2' }],
      // 竞价状态字典
      biddingStatusList: [
        { typecode: '00', typename: '未开始' },
        { typecode: '01', typename: '进行中' },
        { typecode: '02', typename: '暂停中' },
        { typecode: '03', typename: '已结束' }
      ],
      // 我报价全部报价
      offerList: [
        { typecode: '00', typename: '我的报价' },
        { typecode: '01', typename: '全部报价' }
      ],
      // 评审方式线上线下
      protproject_line: [],
      // 签章状态
      signatureStatusList: [
        { typecode: '00', typename: '未签章' },
        { typecode: '01', typename: '已签章' }
      ],
      offer_use_statusList: [], // 操作类型
      // 报价大厅 填写报价数据是行项目物资回显文件
      upLoadData: {
        bizId: '', // 业务主键Id
        fileType: 'pro_procurement_project_material_requirements_base'// 文件类型
      }
    }
  },
  created() {
  },
  methods: {
    // 查询字典
    inCodes() {
      queryProcurementProjectInitInfo().then(res => {
        // 采购项目
        this.offer_use_statusList = res.data.offer_use_status.typeList // 操作类型
      }).catch(() => {
      })
    }
  }
}
