Просмотр исходного кода

feat(types): 增加后台配置错误代码

vian 4 лет назад
Родитель
Сommit
fc7cbfb733
2 измененных файлов с 7 добавлено и 4 удалено
  1. 1 3
      types/src/interface/base.ts
  2. 6 1
      types/src/interface/error.ts

+ 1 - 3
types/src/interface/base.ts

@@ -124,9 +124,7 @@ export enum CptModelName {
   labourCoeFile = 'labourCoeFile',
   importLogs = 'importLogs',
   cptRationSectionTpl = 'cptRationSectionTpl',
-  cptGljLib = 'cptGljLib',
-  cptGljSection = 'cptGljSection',
-  cptGljSectionTpl = 'cptGljSectionTpl',
+  cptGljTree = 'cptGljTree',
   cptRationCoeList = 'cptRationCoeList',
   cptRationInstallation = 'cptRationInstallation',
   cptRationInstallationSection = 'cptRationInstallationSection',

+ 6 - 1
types/src/interface/error.ts

@@ -85,6 +85,11 @@ export enum ErrNo {
   PROJECT_NOT_FOUND_TREE_DATA = 5026,
   CONSTRUCTION_ORG_NOT_FOUND = 5027,
   SINGLE_ORG_NOT_FOUND = 5028,
-
   GLJ_LIB_NOT_FOUND = 5029,
+
+  /* 数据配置错误(大多数为后台标准、模板数据配置问题)  6001 - 6999 */
+  // 补充人材机分类树模板 未配置
+  CPT_GLJ_TREE_TEMPLATE_EMPTY = 6001,
+  // 补充定额库章节树模板 未配置
+  CPT_RATION_TREE_TEMPLATE_EMPTY = 6002,
 }