| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- import { TaxType, IGLJCol } from './project';
- import { IFileRef, INumFileRef } from './base';
- import { IBillOption } from './bill';
- export interface ICptItem {
- ID: string;
- name: string;
- description: string;
- }
- export interface IProgramLib extends INumFileRef {
- displayName: string;
- }
- export interface ITaxGroup {
- programLib: IProgramLib;
- templateLib: IFileRef;
- colLib: IFileRef;
- feeLib: IFileRef;
- taxType: TaxType;
- normLib: string; // 指标分部
- }
- // 工程专业
- export interface IEngineering {
- ID: string;
- name: string;
- feeName: string;
- engineering: number;
- projectEngineering: number;
- valuationID: string;
- // 显示设置
- isAreaIncrease?: boolean; // 显示面积增加费
- isItemIncrease?: boolean; // 显示子目增加费
- isInstall?: boolean; // 显示安装增加费
- gljCol?: IGLJCol;
- overHeightLib?: IFileRef[];
- economicLib?: IFileRef[];
- mainQuantityLib?: IFileRef[];
- materialLib?: IFileRef[];
- engineerFeatureLib?: IFileRef[];
- engineerInfoLib?: IFileRef[];
- infoLib?: IFileRef[];
- featureLib?: IFileRef[];
- artificialLib?: INumFileRef[];
- billLib?: IBillOption[];
- billsGuidanceLib?: IFileRef[];
- gljLib?: INumFileRef[];
- rationLib?: INumFileRef[];
- progressiveLib?: IFileRef[];
- taxGroup: ITaxGroup[];
- indexName?: string; // 指标专业名称
- }
- export interface IValuation {
- engineeringList: IEngineering[];
- enable: boolean;
- ID: string;
- name: string;
- }
- export enum versionType {
- FREE = 'free', // 免费版
- PRO = 'pro', // 专业版
- }
- export enum LockInfo {
- DEFAULT = 0, // 默认值
- BORROW = 1, // 借用
- BUY = 2, // 销售
- }
- export interface IConsumeAmt {
- region: string;
- taxModel: number;
- consumeAmt: {
- dataCode: string;
- dataName: string;
- refPrice: string;
- };
- }
- export interface ISubPrice {
- region: string;
- taxModel: number;
- price: {
- dataCode: string;
- dataName: string;
- };
- }
- interface ISubStructuralSegment {
- dispName: string;
- key: string;
- type: string;
- subItems?: ISubStructuralSegment[];
- property?: any;
- }
- // 结构分布
- export interface IStructuralSegmentData {
- monomerType: string;
- items: ISubStructuralSegment[];
- }
- export interface IStructuralSegment {
- compilationID: string;
- data: IStructuralSegmentData;
- }
- // 单体模板
- interface ISubMonomerTemplate {
- dispName: string;
- key: string;
- monomerType: string;
- isHaveStructuralSegment: string;
- }
- export interface IMonomerTemplateData {
- dispName: string;
- key: string;
- items: ISubMonomerTemplate[];
- }
- export interface IMonomerTemplate {
- compilationID: string;
- data: IMonomerTemplateData[];
- }
- export interface ICompilation {
- ID: string;
- name: string;
- creator: string;
- createTime: number;
- releaseTime: number;
- rationValuations: any;
- billValuations: IValuation[];
- isRelease: boolean;
- description: string;
- overWriteUrl: string;
- categoryID: string;
- example: number[];
- adProjects: number[];
- consumeAmtProperties?: IConsumeAmt[]; // 多组成物时的消耗量属性来源
- priceProperties?: ISubPrice[]; // 多单价时的价格属性来源
- // 附加
- version: versionType; // 版本
- versionText: string; // 版本对应的显示文字:免费版,学习版,专业版
- lockInfo: LockInfo; // 锁信息
- monomerTemplate: IMonomerTemplateData[];
- structuralSegment: IStructuralSegmentData[];
- }
- export enum ValuationType {
- BILL = 'bill', // 清单计价
- RATION = 'ration', // 定额计价
- }
- // 专业版费用定额
- export interface IProCptItem {
- // 编办 ID
- compilationID: string;
- // 开通时间
- upgradeTime: number;
- // 备注
- remark: string;
- // 截至时间,0 代表无限制
- deadline: number;
- // 锁信息
- lock: LockInfo;
- }
|