Kaynağa Gözat

feat(types): 定额,清单父类型调整

zhangweicheng 4 yıl önce
ebeveyn
işleme
a8c44fa9f5
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 1
      types/src/interface/base.ts
  2. 0 1
      types/src/interface/ration.ts

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

@@ -251,7 +251,8 @@ export interface IBRBase {
   parentID: string;
   seq: number;
   kind: BRType;
-  stdID?: string;
+  stdID?: string; // 原始数据存在库中的ID(补充定额时也共用这个字段)
+  repositoryID?: number | string; // 定额库/清单库 ID
   unit?: string;
   code?: string;
   name?: string;

+ 0 - 1
types/src/interface/ration.ts

@@ -304,7 +304,6 @@ export interface IRation extends IBRBase {
   from?: FromType; // { type: string; default: 'std' }; // std, cpt  来自标准、补充
   isSubcontract?: boolean; // 是否分包
   installationKey?: string; // 用来记录安装增加费的关联字段
-  repositoryID?: number | string; // 定额库ID
   sectionID?: number | string; // 章节ID用来定位
   maskName?: string;
   caption?: string;