|
@@ -1,3 +1,5 @@
|
|
|
|
|
+import { fromType, supplyType } from './base';
|
|
|
|
|
+
|
|
|
// 工料机类型
|
|
// 工料机类型
|
|
|
export enum GljType {
|
|
export enum GljType {
|
|
|
LABOUR = 1, // 人工
|
|
LABOUR = 1, // 人工
|
|
@@ -73,3 +75,64 @@ export const DisplayType: IDisplayType = {
|
|
|
7: '利',
|
|
7: '利',
|
|
|
8: '险',
|
|
8: '险',
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
|
|
+export interface IComponent {
|
|
|
|
|
+ ID: string;
|
|
|
|
|
+ consumption: number; // 消耗量(有别于总消耗,此字段记录配合比的消耗量)
|
|
|
|
|
+ gljID: string; // 工料机总库对应id (关联用)
|
|
|
|
|
+ specs?: string; // 规格型号
|
|
|
|
|
+ unit: string; // 单位
|
|
|
|
|
+ name: string; // 名称
|
|
|
|
|
+ code: string; // 对应工料机code
|
|
|
|
|
+ type: number; // 工料机类型
|
|
|
|
|
+ model?: number; // 机型
|
|
|
|
|
+ from: fromType; // std, cpt 来自标准工料机库、补充工料机库
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface IProjectGlj {
|
|
|
|
|
+ ID: string;
|
|
|
|
|
+ gljID: string; // 工料机ID
|
|
|
|
|
+ code: string; // 编码
|
|
|
|
|
+ originalCode: string; // 原始的编码
|
|
|
|
|
+ name: string; // 名称
|
|
|
|
|
+ isEvaluate?: boolean; // 是否暂估 (false为否 true为是) //这个属性考虑放弃
|
|
|
|
|
+ supply: supplyType; // 供货方式
|
|
|
|
|
+ supplyQuantity?: number; // 甲供数量
|
|
|
|
|
+ delivery?: string; // 交货方式
|
|
|
|
|
+ deliveryAddress?: string; // 送达地点
|
|
|
|
|
+ noAdjustPrice: boolean; // 不调价 { type: boolean; default: false }
|
|
|
|
|
+ nTaxEqp: boolean; // 不计税设备 { type: boolean; default: false }
|
|
|
|
|
+ adjCoe?: number; // 调整系数ID
|
|
|
|
|
+ specs: string; // 规格型号
|
|
|
|
|
+ type: number; // 类型
|
|
|
|
|
+ model?: number; // 机型
|
|
|
|
|
+ unit: string; // 单位
|
|
|
|
|
+ isAdd: boolean; // 是否新增
|
|
|
|
|
+ basePrice: number; // 基价单价
|
|
|
|
|
+ marketPrice: number; // 市场单价
|
|
|
|
|
+ components?: IComponent[]; // 组成物
|
|
|
|
|
+ taxRate?: number; // 税率
|
|
|
|
|
+ adjustPrice?: string; // 显示调整基价
|
|
|
|
|
+ quantity?: number; // 显示关联的消耗量
|
|
|
|
|
+ techQuantity?: string; // 技术措施项目消耗量
|
|
|
|
|
+ subdivisionQuantity?: string; // 分部分项消耗量
|
|
|
|
|
+ tenderPrice?: string; // 调整后价格
|
|
|
|
|
+ materialType?: number; // 三材类别
|
|
|
|
|
+ materialCoe?: number; // 三材系数
|
|
|
|
|
+ // 经济指标数据
|
|
|
|
|
+ materialIndexType?: string; // 工料指标类别
|
|
|
|
|
+ materialIndexUnit?: string; // 工料指标单位
|
|
|
|
|
+ materialIndexCoe: number; // 单位转换系数
|
|
|
|
|
+ isMainMaterial: boolean; // 是否主要材料 (0为否 1为是) { type: boolean; default: false };
|
|
|
|
|
+ remark?: string;
|
|
|
|
|
+ originPlace?: string; // 产地
|
|
|
|
|
+ vender?: string; // 厂家
|
|
|
|
|
+ qualityGrace?: string; // 质量等级
|
|
|
|
|
+ brand?: string; // 品牌
|
|
|
|
|
+ from: fromType; // std, cpt 来自标准工料机库、补充工料机库
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export interface IProjectGljs {
|
|
|
|
|
+ projectID: string;
|
|
|
|
|
+ projectGljs: IProjectGlj[];
|
|
|
|
|
+}
|