/*
  @description:建设项目-字典信息
  @Modifier:sunxinman
  @routerPath:
  @date:2020-4-21 17:02
*/
export const buildingProjectGroupMixin = {
  data() {
    return {
      // 行业监管部门编码
      monitorDeptCodeTypeList: [
        { typecode: '0', typename: '交通部门' },
        { typecode: '1', typename: '水利部门'
        },
        { typecode: '4', typename: '住建部门' },
        { typecode: '9', typename: '其他部门' }],
      // 项目级别编码
      proLevelCodeTypeList: [
        { typecode: '1', typename: '省级项目' },
        { typecode: '2', typename: '市级项目' },
        { typecode: '3', typename: '县级项目' }],
      // 建设项目状态
      buildingProjectStatusList: [
        { typename: '已保存', typecode: '' },
        { typename: '待审批', typecode: '00' },
        { typename: '审批通过', typecode: '01' },
        { typename: '审批驳回', typecode: '02' }
      ],
      // 建设项目类型
      constructionProjectTypeList: [
        { typename: '基本建设项目', typecode: '00' },
        { typename: '生产运维项目', typecode: '01' }
      ],
      buildingProjectConfigType: false // true启动工作流 false普通审核
    }
  },
  created() {
    // 根据键获取正式配置
    this.$store.dispatch('getSystemConfigValue', 'buildingProject-audit-config').then(() => {
      this.buildingProjectConfigType = this.$store.getters.systemConfigVo.configType // true启动工作流 false普通审核
    }).catch(() => {
    })
  }
}
