Parcourir la source

Merge branch 'master' of http://192.168.1.41:3000/SmartCost/SCCommon

zhangweicheng il y a 4 ans
Parent
commit
ea63d84a4d
2 fichiers modifiés avec 43 ajouts et 10 suppressions
  1. 40 9
      types/src/interface/billGuide.ts
  2. 3 1
      types/src/interface/project.ts

+ 40 - 9
types/src/interface/billGuide.ts

@@ -1,5 +1,3 @@
-import { ITreeScm } from './base';
-
 // 指引库类型
 export enum BillGuideLibType {
   // 清单指引
@@ -43,8 +41,17 @@ export enum BillGuideItemType {
   RATION,
 }
 
+export interface IBillGuideCommonProp {
+  outputItemCharacter?: boolean;
+  required?: boolean;
+  unit?: string; // 单位,识别辅助运距功能
+  interval?: string; // 区间,辅助运距功能
+  isMaterial?: boolean; // 材料,辅助替换材料规格
+  isDefaultOption?: boolean; // 是否是默认选项
+}
+
 // 指引原数据
-export interface IBillGuideItemResult {
+export interface IBillGuideItemResult extends IBillGuideCommonProp {
   libID: string;
   ID: string;
   ParentID: string;
@@ -54,21 +61,19 @@ export interface IBillGuideItemResult {
   type: BillGuideItemType;
   rationID?: number;
   deleted?: boolean;
-  outputItemCharacter?: boolean;
-  required?: boolean;
 }
 
 // 指引数据
-export interface IBillGuideItem extends ITreeScm {
+export interface IBillGuideItem extends IBillGuideCommonProp {
   libID: string;
   ID: string;
+  parentID: string;
+  seq: number;
   billID: string;
   name: string;
   type: BillGuideItemType;
   rationID?: number;
   select?: boolean;
-  outputItemCharacter?: boolean;
-  required?: boolean;
 }
 
 // 清单精灵数据选项
@@ -76,10 +81,15 @@ export interface IBillElfOption {
   ID: string; // 选项对应原数据ID
   name: string;
   checked: boolean;
+  unit?: string; // 单位,来自父项(工序)
+  optionInputVal?: string; // 选项里可能包含用户自己输入的input(运距等情况),有单位的情况下需要显示input
 }
 
 // 清单精灵数据
-export interface IBillElfItem extends ITreeScm {
+export interface IBillElfItem extends IBillGuideCommonProp {
+  ID: string;
+  parentID: string;
+  seq: number;
   // 工序
   process: string;
   // 工序选项数据
@@ -90,6 +100,9 @@ export interface IBillElfItem extends ITreeScm {
   isAdditional: boolean;
   outputItemCharacter?: boolean;
   required?: boolean;
+  unit?: string; // 单位,识别辅助运距功能
+  isMaterial?: boolean; // 材料,辅助替换材料规格
+  isDefaultOption?: boolean; // 是否是默认选项
 }
 
 // 清单下记录的清单精灵选项数据(1.为了后续为项目特征识别提供样本 2.审核可知道插入的定额是否准确)
@@ -102,8 +115,26 @@ export interface IElfItem {
   option: string;
   // 选项对应的标准清单精灵节点ID,如果没有则说明是空行输入的
   optionID?: string;
+  // 选项里可能包含用户自己输入的input(运距等情况)
+  optionInputVal?: string;
   // 是否是额外的非标准的,这个标记只是方便前台清单精灵功能
   isAdditional: boolean;
   // 记录这个选项对应的标准定额ID(考虑其他功能可能有用)
   rationID?: number;
 }
+
+// 清单精灵单条材料
+export interface IElfGlj {
+  gljID: number;
+  name?: string;
+  specs?: string;
+}
+
+// 清单精灵材料:用于清单精灵材料替换
+export interface IElfMaterial {
+  // 清单精灵库
+  libID: string;
+  ID: string;
+  billID: string;
+  materials: IElfGlj[];
+}

+ 3 - 1
types/src/interface/project.ts

@@ -130,6 +130,7 @@ export interface IInfoItem {
   key: string;
   dispName: string;
   value?: string;
+  code?: string;
   required?: string;
   readonly?: string;
   options?: string;
@@ -245,7 +246,8 @@ export interface IProperty {
   valuationName?: string; // 计价规则名称
   maxLimitPriceRate?: number; // 设置最高限价单价浮动率
   minLimitPriceRate?: number; // 设置最低限价单价浮动率
-  period?:string;//信息价使用的信息价日期期数 "2021年-09月"
+  period?: string; // 信息价使用的信息价日期期数 "2021年-09月"
+  fileKind?: string; // 导入进来的属性,平台导出需要维持这个值不变
 }
 
 // 原来的列设置太复杂了,没什么必要