Browse Source

feat(types): 更新清单定额类型

zhangweicheng 5 years ago
parent
commit
d89cac9d22
3 changed files with 64 additions and 0 deletions
  1. 58 0
      types/src/interface/bill.ts
  2. 1 0
      types/src/interface/index.ts
  3. 5 0
      types/src/interface/ration.ts

+ 58 - 0
types/src/interface/bill.ts

@@ -0,0 +1,58 @@
+import { BRType } from './base';
+
+export interface IBillsItem {
+  ID: string;
+  parentID: string;
+  seq: number;
+  kind: BRType;
+  code?: string;
+  name?: string;
+  quantity?: number;
+  unit: string;
+  [key: string]: any; // 剩下的之后补充
+}
+
+export interface IBills {
+  projectID: string;
+  bills: IBillsItem[];
+}
+
+export interface IJobContents {
+  id: number;
+  code: number;
+  content: string;
+  billsLibId: number;
+  deleted: boolean;
+}
+
+export interface IItemCharacter {
+  id: number;
+  code: number;
+  content: string;
+  itemValue: any;
+  billsLibId: number;
+  deleted: boolean;
+}
+
+export interface IStdBill {
+  ID: string;
+  parentID: string;
+  seq: number;
+  code: string;
+  name: string;
+  unit: string;
+  ruleText: string;
+  engineering: number; // 工程专业,填计算程序工程专业ID
+  Expression: string;
+  comment: string; // 备注,后台清单精灵录入
+  jobs: [];
+  items: [];
+  recharge: string;
+  billsLibId: number;
+  // 经济指标属性
+  economicType: string; // 工程经济指标类别
+  quantityIndexType: string; // 工程量指标类别
+  quantityIndexUnit: string; // 工程量指标单位
+  quantityIndexCoe: number; // 单位转换系数
+  deleted: boolean;
+}

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

@@ -10,3 +10,4 @@ export * from './unitPrice';
 export * from './feeRate';
 export * from './share';
 export * from './ration';
+export * from './bill';

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

@@ -253,6 +253,11 @@ export interface IProjectGlj {
   from: fromType; // std, cpt  来自标准工料机库、补充工料机库
 }
 
+export interface IProjectGljs {
+  projectID: string;
+  projectGLJs: IProjectGlj[];
+}
+
 export interface IStdRationGlj extends IBaseRationGlj {
   ID: number;
   repositoryId: number;