Bläddra i källkod

fix(types): 标准清单的类型修改,新增libType

lishihao 4 år sedan
förälder
incheckning
c04a2629ee
2 ändrade filer med 11 tillägg och 2 borttagningar
  1. 9 1
      types/src/interface/bill.ts
  2. 2 1
      types/src/interface/compilation.ts

+ 9 - 1
types/src/interface/bill.ts

@@ -1,5 +1,5 @@
 import { IElfItem } from './billGuide';
 import { IElfItem } from './billGuide';
-import { BRType, IBRBase, ITreeScm } from './base';
+import { BRType, IBRBase, INumFileRef, ITreeScm } from './base';
 import { IQuantityDetail } from './quantityDetail';
 import { IQuantityDetail } from './quantityDetail';
 
 
 // 清单固定类别
 // 清单固定类别
@@ -278,3 +278,11 @@ export interface IBillIndex {
   minUnitPrice?: string;
   minUnitPrice?: string;
   maxUnitPrice?: string;
   maxUnitPrice?: string;
 }
 }
+
+export enum LibType {
+  BILL = '1',
+  NORM = '2'
+}
+export interface IBillOption extends INumFileRef {
+  libType?: LibType
+}

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

@@ -1,5 +1,6 @@
 import { TaxType, IGLJCol } from './project';
 import { TaxType, IGLJCol } from './project';
 import { IFileRef, INumFileRef } from './base';
 import { IFileRef, INumFileRef } from './base';
+import { IBillOption } from './bill';
 
 
 export interface ICptItem {
 export interface ICptItem {
   ID: string;
   ID: string;
@@ -42,7 +43,7 @@ export interface IEngineering {
   infoLib?: IFileRef[];
   infoLib?: IFileRef[];
   featureLib?: IFileRef[];
   featureLib?: IFileRef[];
   artificialLib?: INumFileRef[];
   artificialLib?: INumFileRef[];
-  billLib?: INumFileRef[];
+  billLib?: IBillOption[];
   billsGuidanceLib?: IFileRef[];
   billsGuidanceLib?: IFileRef[];
   gljLib?: INumFileRef[];
   gljLib?: INumFileRef[];
   rationLib?: INumFileRef[];
   rationLib?: INumFileRef[];