Browse Source

feat(types): 添加清单类别和清单指标库相关类别信息

zhangweicheng 4 years ago
parent
commit
1895802b00
2 changed files with 48 additions and 4 deletions
  1. 44 0
      types/src/interface/bill.ts
  2. 4 4
      types/src/interface/glj.ts

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

@@ -212,3 +212,47 @@ export interface IStdBill extends ITreeScm {
 export interface IStdBillCodesMap {
   [libID: string]: string[];
 }
+
+export interface IBillClass {
+  compilationID: string;
+  class: number; // 类别
+  code: string;
+  name: string;
+  itemCharacter: string; // 必填特征排列组合
+  classCode: string; // 类别别名 040101001@一、二类土@人工
+}
+
+export interface IBillIndexGlj {
+  code: string;
+  name: string;
+  specs: string;
+  unit: string;
+  quantity: number;
+  marketPrice: number;
+  basePrice: number;
+  rationQuantity: number;
+}
+
+export interface IBillIndexRation {
+  code: string;
+  name: string;
+  unit: string;
+  quantity: number;
+  unitPrice: number;
+  rationGljList: IBillIndexGlj[];
+}
+
+export interface IBillIndex {
+  compilationID: string;
+  constructionName: string;
+  singleName: string;
+  unitName: string;
+  class: number; // 类别
+  code: string;
+  name: string;
+  unit: string;
+  quantity: number;
+  itemCharacter: string;
+  unitPrice: number; // 综合单价
+  rations: IBillIndexRation[];
+}

+ 4 - 4
types/src/interface/glj.ts

@@ -181,15 +181,15 @@ export const GljModelName = {
   4: '小',
 };
 
-export interface IMatchedInfoPrice{
-  basePrice:string;
+export interface IMatchedInfoPrice {
+  basePrice: string;
   key: string;
   keywordList: IInfoKeyword[];
   marketPrice: string;
   name: string;
   specs: string;
   unit: string;
-  dateRemark?:string;
+  dateRemark?: string;
 }
 
 export interface IProjectGlj {
@@ -240,7 +240,7 @@ export interface IProjectGlj {
   infoPrice?: number | null; // 信息价
   purchaseFeeRate?: number; // 采保费率
   from: FromType; // std, cpt  来自标准工料机库、补充工料机库
-  matchedInfoPrice?: IMatchedInfoPrice|null; // 材料检查后匹配到的信息价
+  matchedInfoPrice?: IMatchedInfoPrice | null; // 材料检查后匹配到的信息价
 }
 
 export interface IProjectGljs {