Explorar el Código

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

zhangweicheng hace 5 años
padre
commit
65e290d226

+ 1 - 1
tree/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@sc/tree",
-  "version": "1.0.9",
+  "version": "1.0.10",
   "description": "a template for npm package coding",
   "main": "./dist/index.cjs.js",
   "module": "./dist/index.esm.js",

+ 3 - 2
tree/src/tree.ts

@@ -47,7 +47,7 @@ export class Tree {
   // 按照树结构拼装好、排好序的数据。实际只是原始数据进行排序,内部元素跟原始数据内部元素的引用是一致的
   data: TreeNode[];
 
-  readonly rootID: string = '-1';
+  rootID: string;
 
   // 默认初始顺序号。在对树结构进行操作后,没必要保证seq连号,只需保证正确排序就行,以减少需要更新的节点。
   readonly seqStartIndex = 0;
@@ -61,7 +61,8 @@ export class Tree {
   // 节点上下文与节点ID映射
   ctxMap: CtxIDMap;
 
-  constructor(rawData: TreeRaw[]) {
+  constructor(rawData: TreeRaw[], rootID = '-1') {
+    this.rootID = rootID;
     this.rawData = this.genNodeContext(rawData);
     this.rawData = Tree.sort(this.rawData);
     this.data = [];

+ 1 - 1
types/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@sc/types",
-  "version": "1.0.10",
+  "version": "1.0.11",
   "description": "共用类型文件",
   "main": "./dist/index.cjs.js",
   "module": "./dist/index.esm.js",

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

@@ -33,6 +33,8 @@ export interface IBill {
   itemCharacter?: IItemCharacter[]; // 项目特征
   itemCharacterText?: string;
   formula?: string; // 基数计算
+  formulaValue?: number; // 基数计算的值
+  tenderFormulaValue?: number; // 调价基数计算的值
   [key: string]: any; // 剩下的之后补充
 }
 

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

@@ -48,6 +48,7 @@ export interface IEngineering {
   rationLib?: INumFileRef[];
   progressiveLib?: IFileRef[];
   taxGroup: ITaxGroup[];
+  indexName?: string; // 指标专业名称
 }
 
 export interface IValuation {

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

@@ -159,7 +159,6 @@ export interface IProperty {
   rootProjectID?: string; // 建设项目ID
   valuationType?: ValuationType; // 计价类型
   valuationID?: string; // 计价规则
-  programID?: number; // 工程专业,填计算程序工程专业ID
   engineeringID?: string; // 工程专业ID
   fileType?: FileType; // 文件类型
   taxType?: TaxType; // 计税方式
@@ -167,23 +166,14 @@ export interface IProperty {
   unitFeeType?: number; // 单位工程取费专业
   calcProgramLib?: INumFileRef; // 计算程序(标准)
   calcProgramFile?: IFileRef; // 计算程序(用户数据)
-  colLibID?: string; // 列设置
-  templateLibID?: string; // 清单模板
-  unitPriceFile?: IFileRef; // 单价文件
   feeFile?: IFileRef; // 费率文件
   region?: string;
+  showAdjustPrice?: boolean; // 是否显示调整价列
   isInstall?: boolean; // 是否是安装工程
   isItemIncrease?: boolean; // 是否是子目增加
   itemIncreaseSetting?: IIncreaseSetting;
   isAreaIncrease?: boolean; // 是否是面积增加
-  featureLibID?: string; // 工程特征
   indexName?: string; // 指标名称
-  engineerInfoLibID?: string; // 工程信息指标
-  engineerFeatureLibID?: string; // 工程特征指标
-  economicLibID?: string; // 主要经济指标
-  mainQuantityLibID?: string; // 主要工程量指标
-  materialLibID?: string; // 主要工料指标
-  progressiveLibID?: string; // 累进区间库
   lockBills?: boolean; // 锁定清单
   decimal?: IDecimal; // 小数位数
   billsQuantityDecimal?: IBillsQuantityDecimal[]; // 清单工程量精度
@@ -231,7 +221,6 @@ export interface IProject extends ITreeScm {
   createDate: number;
   property?: IProperty;
   colMetas?: IColumnMeta[];
-  gljCol?: IGLJCol;
   changeMark?: string;
   remark?: string;
   fileVer?: string;