Parcourir la source

feat(type): 添加工程量明细类型

zhangweicheng il y a 5 ans
Parent
commit
7e786e0126

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

@@ -1,4 +1,5 @@
 import { BRType } from './base';
+import { IQuantityDetail } from './quantityDetail';
 
 export interface IJobContent {
   serialNo: number;
@@ -31,6 +32,7 @@ export interface IBill {
   name?: string;
   flag?: number; // 清单固定类别
   quantity?: number;
+  quantityDetails?: IQuantityDetail[]; // 工程量明细 -- 原先保存在另外的表中
   recharge?: string; // 补注
   ruleText?: string; // 工程量计算规则
   jobContent?: IJobContent[]; // 工作内容

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

@@ -12,3 +12,4 @@ export * from './ration';
 export * from './bill';
 export * from './glj';
 export * from './option';
+export * from './quantityDetail';

+ 9 - 0
types/src/interface/quantityDetail.ts

@@ -0,0 +1,9 @@
+export interface IQuantityDetail {
+  ID: string;
+  name?: string;
+  regex?: string;
+  result?: number;
+  isSummation: boolean; // 0:false 1:true
+  referenceIndexes: [number];
+  seq: number;
+}

+ 2 - 2
types/src/interface/ration.ts

@@ -3,10 +3,10 @@ import {
   prefix,
   fromType,
   gljCreateType,
-  supplyType,
   createLocation,
   BRType,
 } from './base';
+import { IQuantityDetail } from './quantityDetail';
 
 export interface IStdRationChapter {
   rationRepId: number; // 标准库的属性
@@ -331,7 +331,7 @@ export interface IRation {
   // 定额子项
   rationGljList?: IRationGlj[]; // 定额工料机
   rationAssList?: IRationAss[]; // 辅助定额
-  quantityDetails?: any; // 工程量明细 -- 原先保存在另外的表中
+  quantityDetails?: IQuantityDetail[]; // 工程量明细 -- 原先保存在另外的表中
   rationCoeList?: IRationCoe[]; // 定额调整系数
   rationTemplate?: IRationTemplate; // 定额模板
   rationInstallList?: IRationInstall[]; // 定额安装增加