|
@@ -1,6 +1,13 @@
|
|
|
|
|
+import { ValuationType } from './compilation';
|
|
|
import { ILabourCoeFile } from './labourCoe';
|
|
import { ILabourCoeFile } from './labourCoe';
|
|
|
import { IIncreaseSetting } from './increaseFee';
|
|
import { IIncreaseSetting } from './increaseFee';
|
|
|
-import { ITreeScm, IFileRef, DeleteEnum, INumFileRef } from './base';
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ ITreeScm,
|
|
|
|
|
+ IFileRef,
|
|
|
|
|
+ DeleteEnum,
|
|
|
|
|
+ INumFileRef,
|
|
|
|
|
+ IColumnMeta,
|
|
|
|
|
+} from './base';
|
|
|
import { ICalcOption, ITenderSetting } from './calculation';
|
|
import { ICalcOption, ITenderSetting } from './calculation';
|
|
|
|
|
|
|
|
export enum ProjectType {
|
|
export enum ProjectType {
|
|
@@ -95,7 +102,7 @@ export enum FileTypeName {
|
|
|
|
|
|
|
|
export const FileTypeMap = {
|
|
export const FileTypeMap = {
|
|
|
[FileType.SUBMISSION]: FileTypeName.SUBMISSION,
|
|
[FileType.SUBMISSION]: FileTypeName.SUBMISSION,
|
|
|
- [FileType.INVITATION]: FileTypeName.SUBMISSION,
|
|
|
|
|
|
|
+ [FileType.INVITATION]: FileTypeName.INVITATION,
|
|
|
[FileType.CONTROL]: FileTypeName.CONTROL,
|
|
[FileType.CONTROL]: FileTypeName.CONTROL,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -149,36 +156,25 @@ export interface IEconomicIndex {
|
|
|
|
|
|
|
|
// 项目属性
|
|
// 项目属性
|
|
|
export interface IProperty {
|
|
export interface IProperty {
|
|
|
- rootProjectID?: string; // 建设项目ID
|
|
|
|
|
|
|
+ constructionID?: string; // 建设项目ID
|
|
|
|
|
+ valuationType?: ValuationType; // 计价类型
|
|
|
valuationID?: string; // 计价规则
|
|
valuationID?: string; // 计价规则
|
|
|
- programID?: number; // 工程专业,填计算程序工程专业ID
|
|
|
|
|
engineeringID?: string; // 工程专业ID
|
|
engineeringID?: string; // 工程专业ID
|
|
|
fileType?: FileType; // 文件类型
|
|
fileType?: FileType; // 文件类型
|
|
|
taxType?: TaxType; // 计税方式
|
|
taxType?: TaxType; // 计税方式
|
|
|
rationFeeType?: number; // 定额取费专业
|
|
rationFeeType?: number; // 定额取费专业
|
|
|
unitFeeType?: number; // 单位工程取费专业
|
|
unitFeeType?: number; // 单位工程取费专业
|
|
|
calcProgramLib?: INumFileRef; // 计算程序(标准)
|
|
calcProgramLib?: INumFileRef; // 计算程序(标准)
|
|
|
- calcProgramFile?: IFileRef; // 计算程序(用户数据)
|
|
|
|
|
- colLibID?: string; // 列设置
|
|
|
|
|
- templateLibID?: string; // 清单模板
|
|
|
|
|
- unitPriceFile?: IFileRef; // 单价文件
|
|
|
|
|
- feeFile?: IFileRef; // 费率文件
|
|
|
|
|
region?: string;
|
|
region?: string;
|
|
|
|
|
+ showAdjustPrice?: boolean; // 是否显示调整价列
|
|
|
isInstall?: boolean; // 是否是安装工程
|
|
isInstall?: boolean; // 是否是安装工程
|
|
|
isItemIncrease?: boolean; // 是否是子目增加
|
|
isItemIncrease?: boolean; // 是否是子目增加
|
|
|
itemIncreaseSetting?: IIncreaseSetting;
|
|
itemIncreaseSetting?: IIncreaseSetting;
|
|
|
isAreaIncrease?: boolean; // 是否是面积增加
|
|
isAreaIncrease?: boolean; // 是否是面积增加
|
|
|
- featureLibID?: string; // 工程特征
|
|
|
|
|
indexName?: string; // 指标名称
|
|
indexName?: string; // 指标名称
|
|
|
- engineerInfoLibID?: string; // 工程信息指标
|
|
|
|
|
- engineerFeatureLibID?: string; // 工程特征指标
|
|
|
|
|
- economicLibID?: string; // 主要经济指标
|
|
|
|
|
- mainQuantityLibID?: string; // 主要工程量指标
|
|
|
|
|
- materialLibID?: string; // 主要工料指标
|
|
|
|
|
- progressiveLibID?: string; // 累进区间库
|
|
|
|
|
lockBills?: boolean; // 锁定清单
|
|
lockBills?: boolean; // 锁定清单
|
|
|
decimal?: IDecimal; // 小数位数
|
|
decimal?: IDecimal; // 小数位数
|
|
|
- billsQuantityDecimal: IBillsQuantityDecimal[]; // 清单工程量精度
|
|
|
|
|
|
|
+ billsQuantityDecimal?: IBillsQuantityDecimal[]; // 清单工程量精度
|
|
|
displaySetting?: IDisplaySetting; // 呈现选项
|
|
displaySetting?: IDisplaySetting; // 呈现选项
|
|
|
billsCalcMode?: number; // 清单计费取费方式
|
|
billsCalcMode?: number; // 清单计费取费方式
|
|
|
zanguCalcMode?: number; // 暂估合价计算方式
|
|
zanguCalcMode?: number; // 暂估合价计算方式
|
|
@@ -191,7 +187,6 @@ export interface IProperty {
|
|
|
progressiveInterval?: IProgressiveInterval[]; // 累进区间
|
|
progressiveInterval?: IProgressiveInterval[]; // 累进区间
|
|
|
gljAdjustType?: GLJAdjustType; // 承包人材料调整类型
|
|
gljAdjustType?: GLJAdjustType; // 承包人材料调整类型
|
|
|
cptIllustration?: string; // 编制说明
|
|
cptIllustration?: string; // 编制说明
|
|
|
- labourCoeFile?: ILabourCoeFile; // 人工系数文件
|
|
|
|
|
engineerInfos?: IInfoItem[];
|
|
engineerInfos?: IInfoItem[];
|
|
|
engineerFeatures?: IEngineerFeature[];
|
|
engineerFeatures?: IEngineerFeature[];
|
|
|
materials?: IMaterialIndex[];
|
|
materials?: IMaterialIndex[];
|
|
@@ -199,6 +194,7 @@ export interface IProperty {
|
|
|
economics?: IEconomicIndex[];
|
|
economics?: IEconomicIndex[];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 原来的列设置太复杂了,没什么必要
|
|
|
export interface IMainTreeCol {
|
|
export interface IMainTreeCol {
|
|
|
cols: Array<any>;
|
|
cols: Array<any>;
|
|
|
headRowHeight: Array<number>;
|
|
headRowHeight: Array<number>;
|
|
@@ -221,8 +217,7 @@ export interface IProject extends ITreeScm {
|
|
|
code?: string;
|
|
code?: string;
|
|
|
createDate: number;
|
|
createDate: number;
|
|
|
property?: IProperty;
|
|
property?: IProperty;
|
|
|
- mainTreeCol?: IMainTreeCol;
|
|
|
|
|
- gljCol?: IGLJCol;
|
|
|
|
|
|
|
+ colMetas?: IColumnMeta[];
|
|
|
changeMark?: string;
|
|
changeMark?: string;
|
|
|
remark?: string;
|
|
remark?: string;
|
|
|
fileVer?: string;
|
|
fileVer?: string;
|
|
@@ -231,9 +226,24 @@ export interface IProject extends ITreeScm {
|
|
|
deleteType?: DeleteEnum;
|
|
deleteType?: DeleteEnum;
|
|
|
deleteDate?: number;
|
|
deleteDate?: number;
|
|
|
deleteBy?: string;
|
|
deleteBy?: string;
|
|
|
|
|
+ // 只是为了显示,不是自身的正在数据,比如汇总信息等
|
|
|
|
|
+ external?: {
|
|
|
|
|
+ cost: number; // 工程造价
|
|
|
|
|
+ };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export interface IProjectBulkRst {
|
|
export interface IProjectBulkRst {
|
|
|
create: IProject[];
|
|
create: IProject[];
|
|
|
remove: string[];
|
|
remove: string[];
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+// 建设项目默认设置项(可以被恢复的)
|
|
|
|
|
+export interface IConstructionDefaultSetting {
|
|
|
|
|
+ decimal: IProperty['decimal'];
|
|
|
|
|
+ billsQuantityDecimal: IProperty['billsQuantityDecimal'];
|
|
|
|
|
+ displaySetting: IProperty['displaySetting'];
|
|
|
|
|
+ billsCalcMode: IProperty['billsCalcMode'];
|
|
|
|
|
+ zanguCalcMode: IProperty['zanguCalcMode'];
|
|
|
|
|
+ calcOption: IProperty['calcOption'];
|
|
|
|
|
+ colMetas: IProject['colMetas'];
|
|
|
|
|
+}
|